-
Notifications
You must be signed in to change notification settings - Fork 33
Upgrade pnpm to v11 #2019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pnpm to v11 #2019
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,9 +11,9 @@ | |
| }, | ||
| "engines": { | ||
| "node": "24.x", | ||
| "pnpm": ">=10.26" | ||
| "pnpm": "11.x" | ||
| }, | ||
| "packageManager": "pnpm@10.33.0", | ||
| "packageManager": "pnpm@11.5.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "start": "pnpm --filter demo start", | ||
|
|
@@ -49,7 +49,7 @@ | |
| "cypress": "15.13.1", | ||
| "cypress-wait-for-stable-dom": "0.1.0", | ||
| "eslint": "9.39.2", | ||
| "playwright": "1.59.1", | ||
| "playwright": "1.60.0", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Playwright browser installation was stuck in CI — see microsoft/playwright#40998 |
||
| "prettier": "3.8.1", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.1.3", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,30 +7,25 @@ packages: | |
| engineStrict: true | ||
|
|
||
| # Use whichever pnpm version is available in the environment | ||
| managePackageManagerVersions: false | ||
| pmOnFail: ignore | ||
|
|
||
| # Manage peer dependencies explicitly and predictibly | ||
| strictPeerDependencies: true | ||
| autoInstallPeers: false | ||
| resolvePeersFromWorkspaceRoot: false | ||
|
|
||
| # Fail install if any dependency has unapproved build scripts | ||
| strictDepBuilds: true | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now the default |
||
| # Approve specific build scripts | ||
| allowBuilds: | ||
| cypress: true | ||
| esbuild: true | ||
|
|
||
| # Save exact dependency versions in `package.json` | ||
| savePrefix: '' | ||
|
|
||
| # Only install packages that are at least 2 days old | ||
| minimumReleaseAge: 2880 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now it defaults to 1 day, which seems good enough for us. We pin packages and manually check release notes when upgrading. |
||
| # Relax minimum release age protection for owned packages | ||
| minimumReleaseAgeExclude: | ||
| - '@h5web/*' | ||
| - '@esrf/eslint-config' | ||
|
|
||
| # Run install automatically if anything is out of date before running a script | ||
| verifyDepsBeforeRun: 'install' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now the default |
||
| # Save exact dependency versions in `package.json` | ||
| savePrefix: '' | ||
|
|
||
| # Every project must have these scripts in their `package.json` | ||
| requiredScripts: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cleans
node_modules(noop) and runspnpm install --frozen-lockfile(which was already the case withpnpm installwhenCI=trueis detected). So no actual change but just stricter.