Skip to content

Convert the workspace from npm to pnpm 10 - #9

Merged
FlyOverCoderKY merged 3 commits into
mainfrom
cursor/convert-to-pnpm-f5cd
Aug 14, 2026
Merged

FlyOverCoderKY merged 3 commits into
mainfrom
cursor/convert-to-pnpm-f5cd

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

This repository used npm workspaces (package-lock.json, packageManager: npm@11.18.0). Local git worktrees were rewriting a full node_modules tree on every create/delete. This PR switches the source of truth to Corepack-pinned pnpm 10.34.5.

What changed

  • Set package.json packageManager to pnpm@10.34.5 and added pnpm-workspace.yaml for packages/*.
  • Created pnpm-lock.yaml with pnpm import from the existing npm lockfile, then removed package-lock.json.
  • CI and the publish prepare job now corepack enable, activate the reviewed package manager, and run pnpm install --frozen-lockfile, pnpm audit --prod --audit-level=high, and pnpm run / pnpm test.
  • The release gate validates pnpm-lock.yaml v9: exact pins match exactly, ranged specifiers accept a satisfying resolved version, YAML scalars are unquoted before compare, and peerDependencies are checked when present.
  • Contributor and root README start with npm install -g corepack then corepack enable (required on Node 25+). The historical 0.0.0 bootstrap receipt keeps its npm-compatible commands.

Release-path follow-up

  • runNpm() always invokes the npm binary and never process.env.npm_execpath. Isolated release env also drops npm_execpath.
  • Pack, registry view, and publish go through a trusted-publishing npm version gate (>= 11.5.1).
  • publish.yml restores the reviewed npm@11.18.0 pin.
  • The OIDC publish job does not download Corepack pnpm; it runs node scripts/release-package.mjs publish.

Intentionally unchanged

  • Registry publish stays npm publish --provenance.
  • Dependency versions are unchanged. shamefully-hoist is not enabled.
  • Shipped prepack was already pnpm run build in this conversion; left as-is.

Verification

Locally, matching the CI gate after this second-pass revision.

Open in Web Open in Cursor 

Use Corepack-pinned pnpm@10.34.5 as the package manager so git worktrees
share a content-addressed store instead of rewriting a full node_modules
tree. Import the existing lockfile, keep trusted-publisher npm publish,
and teach the release gate to validate pnpm-lock.yaml provenance.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY marked this pull request as ready for review August 14, 2026 19:55
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1af5d9a919

ℹ️ 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".

Comment thread scripts/release-package.mjs Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1af5d9a. Configure here.

Comment thread .github/workflows/publish.yml Resolved
cursoragent and others added 2 commits August 14, 2026 21:15
Keep pack, registry view, the trusted-publishing npm version gate, and
npm publish --provenance on a real npm CLI (never npm_execpath/pnpm).
Restore the reviewed npm@11.18.0 pin, compare lockfile specifier and
resolved version, document corepack enable, and run the OIDC publish
helper with node instead of Corepack pnpm.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Unquote YAML specifiers/versions before comparing, treat exact pins as
exact, and accept resolved versions that satisfy a declared range. Check
peerDependencies when present. Document npm install -g corepack before
corepack enable because Node 25+ no longer bundles it.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY merged commit 392c9a3 into main Aug 14, 2026
5 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/convert-to-pnpm-f5cd branch August 14, 2026 23:20
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.

2 participants