Skip to content

Commit 0c8048a

Browse files
authored
fix(pnpm): fix bin path for v11 (#776)
1 parent fae3527 commit 0c8048a

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

config.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
]
7777
}
7878
},
79-
">=6.0.0": {
79+
"6.x || 7.x || 8.x || 9.x || 10.x": {
8080
"url": "https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz",
8181
"bin": {
8282
"pnpm": "./bin/pnpm.cjs",
@@ -92,6 +92,23 @@
9292
"install"
9393
]
9494
}
95+
},
96+
">=11.0.0": {
97+
"url": "https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz",
98+
"bin": {
99+
"pnpm": "./bin/pnpm.mjs",
100+
"pnpx": "./bin/pnpx.mjs"
101+
},
102+
"registry": {
103+
"type": "npm",
104+
"package": "pnpm"
105+
},
106+
"commands": {
107+
"use": [
108+
"pnpm",
109+
"install"
110+
]
111+
}
95112
}
96113
}
97114
},

tests/main.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ const testedPackageManagers: Array<[string, string] | [string, string, string]>
149149
[`pnpm`, `6.6.2`],
150150
[`pnpm`, `6.6.2+sha1.7b4d6b176c1b93b5670ed94c24babb7d80c13854`],
151151
[`pnpm`, `6.6.2+sha224.eb5c0acad3b0f40ecdaa2db9aa5a73134ad256e17e22d1419a2ab073`],
152+
[`pnpm`, `11.0.0-dev.1005`],
153+
[`pnpm`, `11.0.0-dev.1005+sha1.17cdd7ae1baf19f24440422f946130fccbb4257a`],
152154
[`npm`, `6.14.2`],
153155
[`npm`, `6.14.2+sha1.f057d35cd4792c4c511bb1fa332edb43143d07b0`],
154156
[`npm`, `6.14.2+sha224.50512c1eb404900ee78586faa6d756b8d867ff46a328e6fb4cdf3a87`],

tests/nocks.db

6.87 MB
Binary file not shown.

0 commit comments

Comments
 (0)