fix(cli): watcher deps#5520
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec68f1a372
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| "@parcel/watcher-darwin-arm64": "2.5.6", | ||
| "@parcel/watcher-darwin-x64": "2.5.6", | ||
| "@parcel/watcher-linux-arm64-glibc": "2.5.6", | ||
| "@parcel/watcher-linux-arm64-musl": "2.5.6", | ||
| "@parcel/watcher-linux-x64-glibc": "2.5.6", |
There was a problem hiding this comment.
Ship watcher natives with the executed binary
When users run the release archives or Linux packages, the release script packages only packages/cli-{platform}/bin/supabase into the tar/zip/deb/rpm/apk artifacts (apps/cli/scripts/build.ts), so these optional deps declared on the npm shim package are not present beside the compiled Bun binary. In that distribution path, functions dev reaches loadParcelWatcher() and the runtime require("@parcel/watcher-...") fails because there is no node_modules from apps/cli; the native watcher deps need to be shipped with or declared by the platform packages/artifacts that actually contain the executable, not only by apps/cli.
Useful? React with 👍 / 👎.
No description provided.