Skip to content

Commit afc0527

Browse files
committed
feat: support pnpm v10
Close #2100
1 parent 054642f commit afc0527

16 files changed

+1513
-0
lines changed

e2e/pnpm_lockfiles/.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ v54/node_modules/
99
v60/node_modules/
1010
v61/node_modules/
1111
v90/node_modules/
12+
v10/node_modules/
1213
vendored/is-number/node_modules

e2e/pnpm_lockfiles/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ PNPM_LOCK_VERSIONS = [
1010
"v60",
1111
"v61",
1212
"v90",
13+
"v10",
1314
]
1415

1516
# Lockfiles with unique test cases

e2e/pnpm_lockfiles/WORKSPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PNPM_LOCK_VERSIONS = [
99
"v60",
1010
"v61",
1111
"v90",
12+
"v10",
1213
]
1314

1415
# Lockfiles with unique test cases
@@ -44,6 +45,7 @@ load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
4445
for version in PNPM_LOCK_VERSIONS
4546
]
4647

48+
load("@lock-v10//:repositories.bzl", npm_repositories_v10 = "npm_repositories")
4749
load("@lock-v54//:repositories.bzl", npm_repositories_v54 = "npm_repositories")
4850
load("@lock-v60//:repositories.bzl", npm_repositories_v60 = "npm_repositories")
4951
load("@lock-v61//:repositories.bzl", npm_repositories_v61 = "npm_repositories")
@@ -57,6 +59,8 @@ npm_repositories_v61()
5759

5860
npm_repositories_v90()
5961

62+
npm_repositories_v10()
63+
6064
[
6165
npm_translate_lock(
6266
name = lockfile.replace(".yaml", ""),

e2e/pnpm_lockfiles/setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ pushd base && npx [email protected] install --lockfile-only && mv pnpm-lock.yaml ../v61
1414

1515
# pnpm v9.0.0 bumped the lockfile version to 9.0
1616
pushd base && npx pnpm@^9.0 install --lockfile-only && mv pnpm-lock.yaml ../v90 && popd
17+
18+
# pnpm v10
19+
pushd base && npx pnpm@^10.0 install --lockfile-only && mv pnpm-lock.yaml ../v10 && popd

e2e/pnpm_lockfiles/update-snapshots.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ bazel run @@//v54:repos
44
bazel run @@//v60:repos
55
bazel run @@//v61:repos
66
bazel run @@//v90:repos
7+
bazel run @@//v10:repos
78

89
bazel run --enable_bzlmod=false @@//v54:wksp-repos
910
bazel run --enable_bzlmod=false @@//v60:wksp-repos
1011
bazel run --enable_bzlmod=false @@//v61:wksp-repos
1112
bazel run --enable_bzlmod=false @@//v90:wksp-repos
13+
bazel run --enable_bzlmod=false @@//v10:wksp-repos

e2e/pnpm_lockfiles/v10/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
load("@lock-v10//:defs.bzl", "npm_link_all_packages")
2+
load("//:lockfile-test.bzl", "lockfile_test")
3+
4+
npm_link_all_packages()
5+
6+
lockfile_test()

e2e/pnpm_lockfiles/v10/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../base/package.json

e2e/pnpm_lockfiles/v10/patches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../base/patches

0 commit comments

Comments
 (0)