Skip to content

Switch the workspace from npm to pnpm - #4

Merged
FlyOverCoderKY merged 5 commits into
mainfrom
cursor/convert-to-pnpm-cc9d
Aug 15, 2026
Merged

FlyOverCoderKY merged 5 commits into
mainfrom
cursor/convert-to-pnpm-cc9d

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

This repository used npm workspaces (packageManager: npm@11.18.0 and package-lock.json). Local git worktrees were rewriting a full node_modules tree on every create/delete. The workspace package manager is now pnpm, pinned through Corepack.

What changed

  • Pin packageManager to pnpm@10.34.5 (current pnpm 10; 11 exists but is not required here).
  • Add pnpm-workspace.yaml for packages/*, matching the old npm workspaces field.
  • Import pnpm-lock.yaml from the existing package-lock.json and remove the npm lockfile.
  • CI, docs, and root scripts now use pnpm / pnpm run / pnpm install --frozen-lockfile.
  • Release pack and publish still use the reviewed npm 11.18.0 CLI. Trusted publishing, provenance, and the integrity pin are unchanged. runNpm refuses npm_execpath when it points at pnpm (as pnpm run does) and resolves npm-cli.js without a shell. prepack stays npm run build because npm pack runs it.
  • The OIDC id-token: write job invokes node scripts/release-packages.mjs publish and does not download Corepack pnpm.
  • release:check matches each dependency to its own lockfile specifier and resolved version. Exact pins must match exactly; ranges such as ^1.2.0 accept a satisfying resolved version. YAML-quoted scalars are unquoted before comparison.
  • README and CONTRIBUTING document npm install -g corepack before corepack enable (Node 25+ does not bundle Corepack). The documented/CI Node versions are 22 and 24.

Dependency versions are unchanged. shamefully-hoist is not enabled.

Checks

All pass locally on Node 22.14.0 with pnpm 10.34.5:

  • pnpm install --frozen-lockfile
  • pnpm run format:check
  • pnpm run check
  • pnpm test (32/32)
  • pnpm run release:check
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 14, 2026 19:54
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>
@FlyOverCoderKY
FlyOverCoderKY marked this pull request as ready for review August 14, 2026 19:57
@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: 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".

Comment thread .github/workflows/publish.yml Resolved
cursoragent and others added 2 commits August 14, 2026 21:15
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>
Comment thread scripts/release-packages.mjs Resolved
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>

@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 default 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 8a3facf. Configure here.

Comment thread scripts/release-packages.mjs Resolved
@FlyOverCoderKY
FlyOverCoderKY merged commit cb216f8 into main Aug 15, 2026
5 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/convert-to-pnpm-cc9d branch August 15, 2026 00:07
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