Skip to content

Conversation

@LucDeCaf
Copy link
Contributor

@LucDeCaf LucDeCaf commented Nov 26, 2025

Currently, the demos in the demos folder 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.xx is 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-todolist demo 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.

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

⚠️ No Changeset found

Latest commit: 3aefd18

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@LucDeCaf LucDeCaf self-assigned this Nov 26, 2025
@LucDeCaf LucDeCaf removed their assignment Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants