Skip to content

Switch the workspace from npm to pnpm - #3

Merged
FlyOverCoderKY merged 4 commits into
mainfrom
cursor/convert-to-pnpm-62d3
Aug 14, 2026
Merged

FlyOverCoderKY merged 4 commits into
mainfrom
cursor/convert-to-pnpm-62d3

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

This repository used npm workspaces and package-lock.json. Local git worktrees were rewriting a full node_modules tree on every create/delete. pnpm is now the source of truth so worktrees can share a content-addressable store.

Changes

  • Pin packageManager to pnpm@10.34.5 (current pnpm 10 via Corepack)
  • Add pnpm-workspace.yaml for the existing packages/* workspace
  • Import pnpm-lock.yaml from the previous package-lock.json (pnpm import); dependency versions are unchanged
  • Remove package-lock.json
  • Point CI and the release prepare job at corepack enable + pnpm install --frozen-lockfile
  • Keep pack, registry view, the trusted-publishing version gate, and npm publish --provenance on a real npm CLI (runNpm no longer follows npm_execpath)
  • Restore the digest-pinned npm@11.18.0 bootstrap in the prepare job so packing does not use Node's bundled npm
  • Invoke the OIDC publish helper with node scripts/release-packages.mjs publish (no Corepack/pnpm download in that job)
  • Document corepack enable before the first local pnpm command, and constrain development docs to Node 22 or 24 (Corepack is not bundled on Node 25+)
  • Revert the already-published @pegma/spine@0.1.2 prepack field to npm run build
  • Add .prettierignore for pnpm-lock.yaml (Prettier does not ignore it by default)

shamefully-hoist is not enabled. The publish job still installs no project dependencies.

Gate

Ran locally on Node 22:

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

cursoragent and others added 2 commits August 14, 2026 19:53
Pin pnpm 10.34.5 via packageManager and Corepack, import the existing
lockfile, and point CI, docs, and release checks at pnpm while leaving
npm pack/publish/provenance in place for trusted publishing.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Prettier does not ignore pnpm-lock.yaml by default, and reformatting a
lockfile would be incorrect. Also wrap a long test line to satisfy the
format check.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY marked this pull request as ready for review August 14, 2026 19:54
@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: 1581ddab3f

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

@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 1581dda. Configure here.

Comment thread .github/workflows/publish.yml Resolved
cursoragent and others added 2 commits August 14, 2026 21:15
runNpm no longer follows npm_execpath, so pack, registry view, the
trusted-publishing version gate, and provenance publish stay on the npm
CLI when invoked from pnpm run. Restore the digest-pinned npm@11.18.0
bootstrap in the prepare job, invoke the publish helper with node in the
OIDC job, document corepack enable, and revert the already-published
prepack script.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Node 25+ no longer bundles Corepack, so the first README command would
fail on those releases. The gate already runs on 22 and 24 only.

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