Repository navigation
Switch the workspace from npm to pnpm - #7
Conversation
Pin packageManager to pnpm@10.34.5, add pnpm-workspace.yaml, and import the existing lockfile so worktrees no longer rewrite a full node_modules tree. CI and contributor docs now install and run through pnpm; npm remains only for registry pack, view, and trusted-publisher OIDC. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
prettier --check was rewriting pnpm-lock.yaml, and npm pack --json could not parse prepack output from pnpm run build. 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: 997e192849
ℹ️ 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".
Keep pack, registry view, the trusted-publishing version gate, and npm publish --provenance on a real npm CLI that ignores npm_execpath. Compare each lockfile importer pin to both its specifier and resolved version, document corepack enable, and invoke the OIDC publish helper with node so that job never downloads Corepack pnpm. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Accept resolved versions that satisfy a specifier range, decode YAML scalars before comparing lockfile fields, and include peerDependencies in the importer check. Document installing Corepack before enabling it. 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 a606761. Configure here.
pnpm importers do not record a peerDependencies section, so comparing manifest peers to that missing map fails a valid lockfile. Exact prerelease pins still match; a prerelease no longer satisfies an exact stable pin or a caret of another tuple. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

This repository used npm workspaces (
package-lock.json,packageManager: npm@11.18.0). Local git worktrees were rewriting a fullnode_modulestree on every create/delete.What changed
packageManagertopnpm@10.34.5via Corepack (latest 10.x; engines/CI do not require 9).pnpm-workspace.yamlmatching the existingpackages/*workspace.pnpm importand removepackage-lock.json.pnpm/pnpm run/pnpm test.pnpm-lock.yamlandpnpm-workspace.yaml.npm pack,npm view, andnpm publish --provenancestay on the npm CLI because trusted-publisher OIDC still requires npm 11.5.1+.pnpm-lock.yamlin Prettier.prepackusespnpm run --silent buildsonpm pack --jsonstays valid JSON.shamefully-hoistis not enabled.Review-template follow-up
Aligned with sibling Pegma pnpm reviews:
runNpm()invokes the realnpmbinary and stripsnpm_execpath.npm@11.18.0.release:checkmatches each importer dependency to its own specifier and a resolved version that satisfies that specifier (exact pins still match exactly, including prerelease pins). YAML scalars are decoded before comparison. The gate does not look up apeerDependenciesimporter section — pnpm does not record one; withautoInstallPeers, peers fold intodependencies. Caret-zero / partial ranges (^0,^0.0,^0.0.x) follow npm/pnpm rules. A prerelease does not satisfy an exact stable pin or a caret of another tuple.npm install -g corepack) beforecorepack enable, then run the firstpnpmcommand. That covers Node 25+, which no longer bundles Corepack.0.1.0release checklist regeneratespnpm-lock.yaml. The immutablev0.0.0bootstrap ceremony keeps its npm commands.node scripts/release-package.mjs publishand does not enable Corepack.cache: pnpm, then activates pnpm again on the selected Node.Verification
Passed locally on this revision:
pnpm run format:checkpnpm run checkpnpm test(56 tests)pnpm run release:checkversion: 999.0.0is rejected; a pnpm peer-suffix resolved version still satisfies the exact pin.