Skip to content

Harden the pnpm conversion against Pegma-wide review findings - #8

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

FlyOverCoderKY merged 3 commits into
mainfrom
cursor/pnpm-review-follow-up-2424

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

The pnpm conversion already landed in #7. This PR applies Pegma-wide follow-ups that actually apply to scheduler.

First pass

  1. Real npm CLI for pack / view / publish. runNpm() already spawned npm from PATH. It also strips npm_execpath from the child environment so a pnpm run lifecycle cannot redirect pack, registry view, the trusted-publishing version gate, or npm publish --provenance.
  2. npm@11.18.0 pin. Already present in both publish jobs; left unchanged.
  3. Lockfile sync is per-dependency. Each public-package dependency is matched to its own specifier and resolved version. Workspace pins still require link:.
  4. OIDC publish job runs node scripts/release-packages.mjs publish and does not download Corepack pnpm.
  5. CI cache: pnpm. pnpm/action-setup is pinned to 0977fd99725f1db4007ccb2928dbb4e90d06cc86 (v6.0.10).

Second pass (Codex on this PR + sibling notes)

  1. Node 25+ / Corepack. README and CONTRIBUTING now document Node 22 and 24 as the local toolchain (Corepack is bundled there). Official Node 25+ builds are not a documented local toolchain.
  2. Semver ranges. Exact pins still require an exact resolved version. Caret, tilde, *, and major/major.minor ranges accept a resolved version that satisfies the specifier (including pnpm peer suffixes).
  3. YAML scalars. Importer specifier and version values are unquoted before comparison (specifier: '1' matches package.json 1).
  4. peerDependencies. Public packages have no peers today. The lockfile pin check already iterates peerDependencies; tests now cover parsing and matching that section.

Intentionally not changed

  • No new workspace: / linkWorkspacePackages settings.
  • No Semgrep pnpm security settings.
  • No invented Corepack integrity hash.
  • No published package versions or prepack fields.
  • No CLA edits.

Gate

Ran locally on this branch:

  • pnpm run format:check
  • pnpm run check
  • pnpm test — 53 Node tests and 4 D1 tests
  • pnpm run release:check
Open in Web Open in Cursor 

Keep pack, registry view, and trusted-publisher publish on a real npm CLI
even when invoked through pnpm run. Match each public-package lockfile
dependency to its own specifier and resolved version. Install pnpm before
setup-node cache, drop Corepack from the OIDC publish job, and document
corepack enable plus the npm-era bootstrap tag.

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.

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: 9de6c546b0

ℹ️ 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 README.md Resolved
Comment thread scripts/release-packages.mjs Resolved
Document Node 22 and 24 as the local toolchain so corepack enable stays
valid. Accept resolved versions that satisfy caret, tilde, and major-only
ranges while keeping exact pins exact. Unquote YAML specifier and version
scalars, and cover peerDependencies in the lockfile matcher tests.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@FlyOverCoderKY
FlyOverCoderKY merged commit a1a3ca7 into main Aug 14, 2026
3 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/pnpm-review-follow-up-2424 branch August 14, 2026 23:19
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