Repository navigation
Convert the workspace from npm to pnpm - #9
Conversation
Pin pnpm 10.34.5 through Corepack, import the existing lockfile, and switch install plus CI script runners to pnpm while leaving reviewed npm in place for registry pack, audit, and trusted publish. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Ignore pnpm's npm_execpath so pack, view, and publish still invoke npm. Audit the lockfile with pnpm audit --prod, keep npm pack metadata intact, and point release fixtures at the pnpm workspace layout. 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: 5f8eab026a
ℹ️ 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. Leave the immutable v0.0.0 bootstrap on npm-era commands, require lockfile specifier plus resolved version, and stop the OIDC publish job from downloading Corepack pnpm. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Accept resolved versions that satisfy caret/tilde ranges, decode YAML scalars before comparing specifier/version, and include public-package peerDependencies in the pin check. Document npm install -g corepack before corepack enable because Node 25+ no longer bundles 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 52d2d4d. Configure here.
Treat prerelease specifiers as exact pins so 1.2.3-rc.1 matches itself. Keep the peer-suffix prefix (`1.2.3(`) from treating 1.2.3-rc.1 as a stable pin. Apply npm/pnpm caret rules for ^0 / ^0.0 / ^0.0.3, and only check peerDependencies when the importer recorded that section. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

This repository used npm workspaces and
package-lock.json. Local git worktrees were rewriting a fullnode_modulestree on every create/delete.What changed
packageManagerto Corepack's current pnpm 10 (pnpm@10.34.5with integrity hash).pnpm-workspace.yamlfor the existingpackages/*workspace.pnpm-lock.yamlfrom the previouspackage-lock.jsonviapnpm import.package-lock.json.npm ci/npm runtopnpm install --frozen-lockfile/pnpm run.npm@11.18.0fornpm pack,npm view, the trusted-publishing version gate, andnpm publish --provenance.runNpm()ignores pnpm'snpm_execpath.npm run release:publishand does not enable Corepack.release:checkmatches each runtime dependency to its own lockfile specifier and resolved version. YAML scalars are unquoted/decoded first. Exact pins (including prereleases) match exactly; a prerelease does not satisfy a stable pin via prefix. Caret/tilde ranges accept a resolved version that satisfies npm/pnpm rules, including caret-zero (^0,^0.0,^0.0.3). Peer dependencies are checked only when the importer recorded that section.npm install -g corepack) beforecorepack enable, because Node 25+ (allowed byengines.node: >=22) no longer bundles it.v0.0.0bootstrap procedure stays on npm-era commands (package-lock.json+packageManager: npm@11.18.0). Current-main docs usepnpm-lock.yaml.pnpm audit --prod. Repeat theuuid@^11.1.1override underpnpm.overrides.shamefully-hoist.Intentionally not changed
workspace:protocol, or CLA edits.prepackstay as this conversion already left them.Gate
pnpm run format:check,pnpm run check, andpnpm teston this branch.