Skip to content

Switch the workspace from npm to pnpm - #7

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

FlyOverCoderKY merged 7 commits into
mainfrom
cursor/convert-to-pnpm-db97

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.

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 and remove the npm lockfile.
  • Point CI, the publish workflow, README, CONTRIBUTING, and AGENTS at pnpm install --frozen-lockfile / pnpm run / pnpm test.
  • Ignore the generated lockfile in Prettier (.prettierignore).
  • Document Node 22 or 24 and corepack enable before the first local pnpm command.
  • Install pnpm (pinned pnpm/action-setup SHA) before actions/setup-node cache: pnpm.
  • Restore the reviewed npm@11.18.0 pin for pack / smoke-test / registry operations.
  • Invoke pack and publish with node scripts/release-packages.mjs … so those steps never go through pnpm run / npm_execpath. runNpm() always spawns the npm CLI and strips npm_execpath.
  • The OIDC publish job does not enable Corepack or download pnpm.
  • release:check pairs each importer dependency (and optionalDependency) with its own specifier and resolved version, after decoding YAML scalars. It does not look for peerDependencies on the importer — pnpm records those under packages snapshots. Exact pins, including prereleases, match by identity; ^/~ ranges follow npm caret-zero rules.

No dependency versions were changed. shamefully-hoist is not enabled.

Gate

corepack enable
pnpm install --frozen-lockfile
pnpm run format:check
pnpm run check
pnpm test
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 keep npm only for registry pack, view, and trusted-publisher provenance.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
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: ecc4a08124

ℹ️ 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-packages.mjs Resolved
Comment thread scripts/release-packages.mjs Resolved
cursoragent and others added 3 commits August 14, 2026 21:16
Restore the reviewed npm 11.18.0 pin, invoke the publish helper with node so the OIDC job never downloads pnpm, pair each lockfile dependency with its own specifier and resolved version, and put pnpm on PATH before setup-node cache.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Accept resolved versions that satisfy ^/~ specifiers, decode YAML scalars before comparing, and check peerDependencies when a public package declares them. Document Node 22 or 24 so Corepack is the bundled shim.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Comment thread scripts/release-packages.mjs Resolved
pnpm records peers under packages snapshots, not importers. Lockfile sync now checks only importer dependencies and optionalDependencies. Exact prerelease pins match by identity, and caret 0.x / 0.0.x ranges follow npm rules.

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 1853c21. Configure here.

Comment thread scripts/release-packages.mjs Resolved
Resolved identities like 4.1.10(@types/node@…)(vite@…(…)) must compare as 4.1.10 so exact pins and ranges still match.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY merged commit c29aa29 into main Aug 15, 2026
5 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/convert-to-pnpm-db97 branch August 15, 2026 00:06
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