chore: migrate from npm to pnpm#278
Merged
Merged
Conversation
- Pin pnpm via `packageManager` + Corepack; no `pnpm/action-setup` action - Declare phantom deps (`ansis`, `picocolors`, `@clack/core`, `simple-git`, `string-argv`) that npm's flat hoisting was masking — required for pnpm's default symlinked layout - Move `overrides`, `allowBuilds`, `enablePrePostScripts` to `pnpm-workspace.yaml` (pnpm 11 no longer reads `pnpm.overrides` from package.json) - Drop Node 18 from `check_build.yml` matrix (engines.node says >=20; pnpm 11 requires Node >= 20.6 via Corepack) - Keep `@semantic-release/npm` plugin — it shells out to the `npm` binary preinstalled on `ubuntu-latest` for the actual publish; pnpm only owns the local + CI install/run lifecycle Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- minimumReleaseAge: 10080 (7-day quarantine on freshly-published package versions) — defends against compromised maintainer accounts and typosquatting; most malicious packages are detected and removed within days - minimumReleaseAgeExclude: '@apimatic/*' (glob exemption for our own org since the exclusion is name-only, not transitive) - blockExoticSubdeps: true — refuses transitive deps from git/tarball/ URL sources; direct deps in package.json can still use exotic specs if needed - Document the workflow gotcha in .ai/instructions.md (ERR_PNPM_PACKAGE_RECENTLY_PUBLISHED, --ignore-minimum-release-age escape hatch, CI's --frozen-lockfile bypasses the check) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
aliasghar98
reviewed
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.