Repository navigation
Switch the workspace from npm to pnpm - #4
Conversation
Pin pnpm 10.34.5 via Corepack, import the lockfile, and run CI and local scripts through pnpm. Pack and publish still use the reviewed npm CLI so trusted publishing is unchanged. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Resolve npm-cli.js from Node and PATH when pnpm run sets npm_execpath to pnpm, keep prepack on npm run build so npm pack --json stays clean, and export REVIEWED_PNPM from the release script types. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a486b28c1e
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Refuse npm_execpath when it points at pnpm, match each lockfile dependency to its own specifier and resolved version, and invoke the publish helper with node so the privileged job never downloads Corepack pnpm. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Accept resolved versions that satisfy semver ranges, unquote YAML scalars before comparing specifier and version, include public peerDependencies in the pin check, and document installing Corepack on Node 25+ before enabling pnpm. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Treat any non-range specifier as an exact pin so 1.0.0-rc.1 matches itself, reject a prerelease as a prefix of a stable pin, follow npm caret rules for 0.x, and stop comparing peerDependencies to importer sections pnpm does not record. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a3facf. Configure here.

This repository used npm workspaces (
packageManager: npm@11.18.0andpackage-lock.json). Local git worktrees were rewriting a fullnode_modulestree on every create/delete. The workspace package manager is now pnpm, pinned through Corepack.What changed
packageManagertopnpm@10.34.5(current pnpm 10; 11 exists but is not required here).pnpm-workspace.yamlforpackages/*, matching the old npm workspaces field.pnpm-lock.yamlfrom the existingpackage-lock.jsonand remove the npm lockfile.pnpm/pnpm run/pnpm install --frozen-lockfile.runNpmrefusesnpm_execpathwhen it points at pnpm (aspnpm rundoes) and resolvesnpm-cli.jswithout a shell.prepackstaysnpm run buildbecausenpm packruns it.id-token: writejob invokesnode scripts/release-packages.mjs publishand does not download Corepack pnpm.release:checkmatches each dependency to its own lockfile specifier and resolved version. Exact pins must match exactly; ranges such as^1.2.0accept a satisfying resolved version. YAML-quoted scalars are unquoted before comparison.npm install -g corepackbeforecorepack enable(Node 25+ does not bundle Corepack). The documented/CI Node versions are 22 and 24.Dependency versions are unchanged.
shamefully-hoistis not enabled.Checks
All pass locally on Node 22.14.0 with pnpm 10.34.5:
pnpm install --frozen-lockfilepnpm run format:checkpnpm run checkpnpm test(32/32)pnpm run release:check