Skip to content

Convert the workspace from npm to pnpm - #9

Merged
FlyOverCoderKY merged 5 commits into
mainfrom
cursor/convert-to-pnpm-63d8
Aug 14, 2026
Merged

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

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.

What changed

  • Pin packageManager to Corepack's current pnpm 10 (pnpm@10.34.5 with integrity hash).
  • Add pnpm-workspace.yaml for the existing packages/* workspace.
  • Create pnpm-lock.yaml from the previous package-lock.json via pnpm import.
  • Remove package-lock.json.
  • Switch CI, contributing, and current-main release commands from npm ci / npm run to pnpm install --frozen-lockfile / pnpm run.
  • Keep reviewed npm@11.18.0 for npm pack, npm view, the trusted-publishing version gate, and npm publish --provenance. runNpm() ignores pnpm's npm_execpath.
  • The OIDC publish job runs npm run release:publish and does not enable Corepack.
  • release:check matches 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.
  • README and CONTRIBUTING install Corepack (npm install -g corepack) before corepack enable, because Node 25+ (allowed by engines.node: >=22) no longer bundles it.
  • The immutable v0.0.0 bootstrap procedure stays on npm-era commands (package-lock.json + packageManager: npm@11.18.0). Current-main docs use pnpm-lock.yaml.
  • Audit through pnpm audit --prod. Repeat the uuid@^11.1.1 override under pnpm.overrides.
  • Do not enable shamefully-hoist.

Intentionally not changed

  • No Semgrep knobs, workspace: protocol, or CLA edits.
  • No invented Corepack integrity hash.
  • Published package versions and prepack stay as this conversion already left them.

Gate

pnpm run format:check, pnpm run check, and pnpm test on this branch.

Open in Web Open in Cursor 

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

Comment thread docs/RELEASING.md Resolved
cursoragent and others added 2 commits August 14, 2026 21:17
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>

@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 52d2d4d. Configure here.

Comment thread scripts/release-packages.mjs Resolved
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>
@FlyOverCoderKY
FlyOverCoderKY merged commit 5157784 into main Aug 14, 2026
5 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/convert-to-pnpm-63d8 branch August 14, 2026 23:41
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