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 replaces the @powersync/* package versions from workspace:* to the latest published releases and adds a pnpm-workspace.yaml file to each demo. This isolates the demos from the rest of the workspace and ensures that each demo can run independently from the powersync-js repo's context. For convenience, this PR also adds a set of scripts for re-linking the @powersync/* packages to the workspace (for ease of development and testing) and for upgrading @powersync/* package versions across demos.

Importantly, this PR also includes a partial rewrite of the react-native-supabase-group-chat demo, which was using old packages and failing to build on my system. The PR which made these changes was merged into this branch, since it also used published PowerSync package versions instead of workspace versions.

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

⚠️ No Changeset found

Latest commit: 21fbf58

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
@simolus3
Copy link
Contributor

Can we add demo lockfiles to .gitignore? I imagine they make up the bulk of this PR, and I'm not sure they're that helpful (we should definitely keep the root lockfile to ensure we're all using the same version of tools).

Copy link
Contributor

@Chriztiaan Chriztiaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last bit of reverting version drops, then it can go in.

@LucDeCaf LucDeCaf requested a review from Chriztiaan December 12, 2025 11:25
Copy link
Contributor Author

@LucDeCaf LucDeCaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, fixed the misversioned packages

@Chriztiaan
Copy link
Contributor

Happy with the changes.

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.

4 participants