Repository navigation
build: migrate from npm to pnpm 11 - #3447
Merged
Merged
Conversation
This was referenced Sep 29, 2026
HughParry
force-pushed
the
feat/pnpm-migration-v2
branch
from
September 29, 2026 13:46
d4f903d to
e7eaa57
Compare
HughParry
marked this pull request as ready for review
September 29, 2026 13:47
HughParry
force-pushed
the
feat/pnpm-migration-v2
branch
from
September 29, 2026 14:05
e7eaa57 to
c064f09
Compare
Contributor
|
No updates since Nothing is lost — Converting to draft disables auto-merge, so PRs with auto-merge enabled are excluded from this entirely. |
HughParry
force-pushed
the
feat/pnpm-migration-v2
branch
from
October 1, 2026 09:40
c064f09 to
138f363
Compare
- pnpm-workspace.yaml replaces the workspaces field and .npmrc; pnpm-lock.yaml (from `pnpm import`, same versions) replaces package-lock.json. - Internal @prosopo/* deps use workspace:*. `changeset publish` now runs `pnpm publish`, which writes exact versions into published manifests. - Scripts, CI workflows and release tooling use pnpm; pnpm passes a literal `--` through, so scripts no longer put one before their arguments. - getDependencies walks node_modules instead of parsing `npm ls`; the lint tools read pnpm-workspace.yaml via @prosopo/workspace's getWorkspaceGlobs. - The webpack config resolves loaders, babel plugins and @babel/runtime from @prosopo/config; the frontend vite config aliases the polyfill shims the same way. - Packages declare the types and tools npm's hoisting used to provide. - verifyDepsBeforeRun is off so running a script here inside captcha-private cannot install captcha standalone over the parent's node_modules. Co-Authored-By: Claude <noreply@anthropic.com>
HughParry
force-pushed
the
feat/pnpm-migration-v2
branch
from
October 1, 2026 16:33
138f363 to
801692d
Compare
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.
What changed
The repo moves from npm to pnpm 11 (
packageManager: pnpm@11.27.1).pnpm-lock.yamlreplacespackage-lock.json. It was converted withpnpm import, so no versions change.pnpm-workspace.yamlreplaces theworkspacesfield and.npmrc.@prosopo/*dependency isworkspace:*, so packages always use the local copy.changeset publishnow runspnpm publish, which swaps in exact versions, so published packages look the same as before. Checked withpnpm packand a--dry-runpublish.--through to scripts, so scripts no longer put one before their arguments.getDependencies(bundle externals) now walksnode_modulesinstead of parsingnpm ls.pnpm-workspace.yamlthrough a newgetWorkspacePatternsin@prosopo/workspace, which keeps the workspace's exclusions.@prosopo/config, instead of relying on them being hoisted.pnpm-workspace.yaml, and Dependabot gets a matching 7-day cooldown.verifyDepsBeforeRunis off, so running a script inside captcha-private can't install captcha standalone over the parent'snode_modules.Effect
Tests
Standalone, locally, against an npm baseline on the same commit:
turbo run testgives the same pass/fail per package as npm. The 8 packages that need Mongo, Redis or the provider fail on both; Docker was not available locally.getWorkspaceGlobs.Merge order
fingerprintjs first, then this PR, then Protect (its CI builds fingerprintjs from captcha main), then captcha-private.
Links: prosopo/fingerprintjs#10 · #3447 · prosopo/Protect#1120 · prosopo/docs#106 · prosopo/captcha-private#5035