-
Notifications
You must be signed in to change notification settings - Fork 60
Isolate demos folder
#784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Isolate demos folder
#784
Conversation
|
Currently, the demos in the
demosfolder use pnpm's workspace feature to link to workspace packages. This is convenient for testing changes to workspace packages, as demos will automatically use the local version - however, it causes issues for other users of the demos, as they are required to install all demos and all packages' dependencies in order to run even a single demo. Also, copying demos out of the monorepo requires one to figure out the correct package versions manually.This PR adds a set of scripts for replacing
'workspace:*'with^x.xx.xx, where^x.xx.xxis the latest published version of a package. This isolates the demo from the workspace and makes it more convenient to work with as a user. The PR also adds a script for replacing the published versions with'workspace:*'to make SDK development more convenient.The scripts have been run for the
react-supabase-todolistdemo in order to test them. Eventually, the scripts will be ran for all demos and demos should be completely independent from the pnpm workspace.NB: Don't be alarmed by the massive "lines changed" number - this migration involved a lot of lockfiles being modified.