Skip to content

Apply Pegma-wide pnpm follow-up fixes - #13

Merged
FlyOverCoderKY merged 3 commits into
mainfrom
cursor/pnpm-follow-up-fixes-a41c
Aug 14, 2026
Merged

FlyOverCoderKY merged 3 commits into
mainfrom
cursor/pnpm-follow-up-fixes-a41c

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

The pnpm conversion already landed in #12. Codex was usage-limited on that PR, so the sibling-repo follow-ups were never filed here. This PR applies every item that actually applies to sessions.

First pass

  1. Release npm stays npm. The conversion already stopped trusting npm_execpath after pnpm run. Pack, registry view, the trusted-publishing version gate, and npm publish --provenance still invoke npm / npm.cmd. A regression test now forbids process.env.npm_execpath.
  2. npm@11.18.0 pin. The prepare job still installs the reviewed pin. It was not dropped; the OIDC publish job never had it (same as pre-pnpm).
  3. Lockfile-sync. release:check parses pnpm-lock.yaml importers and matches each dependency to its own specifier and a resolved version that satisfies that specifier. Swapping two packages' specifiers fails. Exact pins must resolve to that same version.
  4. corepack enable first. CONTRIBUTING and the package README enable Corepack before the first pnpm command.
  5. RELEASING.md lockfile wording. No leftover package-lock.json steps remained. The historical v0.1.0 exception is still audit history, not a bootstrap recipe.
  6. OIDC publish job. The publisher already installed no project dependencies. It now runs node scripts/release-packages.mjs publish so it does not download Corepack pnpm just to launch the helper.
  7. CI pnpm before cache. CI installs pnpm with pnpm/action-setup pinned to 0977fd99725f1db4007ccb2928dbb4e90d06cc86 (v6.0.10) before cache: pnpm.

Second pass (this PR's review + sibling follow-ups)

  1. peerDependencies are validated. The parser already recorded them; DEPENDENCY_SECTIONS now includes that section so a missing, stale, or swapped peer fails release:check.
  2. YAML scalars are unquoted before specifier/version comparison (specifier: '1' / '*' match the unquoted package.json values).
  3. Resolved versions may satisfy a range. ^1.2.0 / 1.2.3 passes; exact pins still have to match exactly. Unknown range syntax fails closed.
  4. Node 25+ does not bundle Corepack. Contributor and release docs now run npm install -g corepack before corepack enable, and document Node 22 or 24 as the local toolchain (same as CI). Published engines stay >=22.

Review threads on items 1 and 2 have replies.

Intentionally not changed

  • No workspace: / linkWorkspacePackages
  • No Semgrep pnpm settings
  • No invented Corepack integrity hash
  • No published package version or prepack field changes
  • No CLA

Verification

Locally after the second-pass commit:

  • pnpm run format:check
  • pnpm run check
  • pnpm test (67/67)
  • pnpm run release:check
Open in Web Open in Cursor 

Keep pack, registry view, the trusted-publishing npm gate, and
`npm publish --provenance` on a real npm CLI. Match each lockfile
dependency to its own specifier and resolved version. Install pnpm
before setup-node caches the store, and invoke the OIDC publish
helper with node instead of a package-manager lifecycle.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

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

The new specifier/version assertions need explicit dependency maps so
`tsc -p tsconfig.test.json` accepts them.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>

@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: 2b845d38b7

ℹ️ 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
Validate peerDependencies, unquote YAML specifier/version scalars, and
accept resolved versions that satisfy caret, tilde, or wildcard ranges
while keeping exact pins exact. 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 62f8c2f into main Aug 14, 2026
3 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/pnpm-follow-up-fixes-a41c branch August 14, 2026 23:21
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