Skip to content

Commit

Permalink
Update pnpm to v10 (#41821)
Browse files Browse the repository at this point in the history
* Update pnpm to v10

* Bump monorepo version reqs

* pnpm link is always global now

* Add new options to config

* Allow install scripts for specific dependencies

* Set ignoredBuiltDependencies instead

---------

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: tbradsha <[email protected]>
  • Loading branch information
3 people authored Feb 17, 2025
1 parent 56d1c9b commit af303b8
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PHP_VERSION=8.2
COMPOSER_VERSION=2.8.3
NODE_VERSION=22.9.0
PNPM_VERSION=9.15.0
PNPM_VERSION=10.4.0

# Other useful version numbers.
MIN_PHP_VERSION=7.2
Expand Down
6 changes: 6 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ resolution-mode = highest
jetpack-webpack-config-resolve-conditions=jetpack:src

manage-package-manager-versions=false

# Ensure dependencies were properly built.
strict-dep-builds = true

# Warn if `node_modules` do not match lockfile.
verify-deps-before-run = warn
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,19 @@
},
"engines": {
"node": "^22.9.0",
"pnpm": "^9.15.0"
"pnpm": "^10.4.0"
},
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.4.0",
"pnpm": {
"patchedDependencies": {
"@wordpress/dataviews": ".pnpm-patches/@[email protected]"
}
},
"ignoredBuiltDependencies": [
"@swc/core",
"core-js",
"esbuild",
"svelte-preprocess",
"swiper"
]
}
}
78 changes: 39 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/cli/commands/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function cliLink( options ) {
[
{
title: chalkJetpackGreen( `Enabling global access to the CLI` ),
task: () => command( 'pnpm link --global', options.v, path.resolve( 'tools/cli' ) ),
task: () => command( 'pnpm link', options.v, path.resolve( 'tools/cli' ) ),
},
],
opts
Expand Down

0 comments on commit af303b8

Please sign in to comment.