Skip to content

Commit 966b3ec

Browse files
committed
fix: corepack use cnpm@latest
1 parent 5af83d0 commit 966b3ec

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
},
4040
"cnpm": {
41-
"default": "9.3.0+sha1.e484e504bac2ebb537b99607415321562e15c5b5",
41+
"default": "9.3.1+sha1.426460446f57dcf31b5a90fb59e35a8353d0d186",
4242
"fetchLatestFrom": {
4343
"type": "url",
4444
"url": "https://registry.npmmirror.com/cnpm",
@@ -68,7 +68,8 @@
6868
"type": "url",
6969
"url": "https://registry.npmmirror.com/cnpm",
7070
"fields": {
71-
"versions": "versions"
71+
"versions": "versions",
72+
"tags": "dist-tags"
7273
}
7374
}
7475
}

tests/main.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const testedPackageManagers: Array<[string, string]> = [
7979
[`pnpm`, `6.6.2`],
8080
[`pnpm`, `6.6.2+sha1.7b4d6b176c1b93b5670ed94c24babb7d80c13854`],
8181
[`pnpm`, `6.6.2+sha224.eb5c0acad3b0f40ecdaa2db9aa5a73134ad256e17e22d1419a2ab073`],
82-
[`cnpm`, `9.3.0`],
82+
[`cnpm`, `9.3.1`],
8383
[`npm`, `6.14.2`],
8484
[`npm`, `6.14.2+sha1.f057d35cd4792c4c511bb1fa332edb43143d07b0`],
8585
[`npm`, `6.14.2+sha224.50512c1eb404900ee78586faa6d756b8d867ff46a328e6fb4cdf3a87`],
@@ -510,7 +510,7 @@ it(`should support hydrating package managers if cache folder was removed`, asyn
510510

511511
it(`should support hydrating multiple package managers from cached archives`, async () => {
512512
await xfs.mktempPromise(async cwd => {
513-
await expect(runCli(cwd, [`pack`, `[email protected]`, `[email protected]`, `[email protected].0`])).resolves.toMatchObject({
513+
await expect(runCli(cwd, [`pack`, `[email protected]`, `[email protected]`, `[email protected].1`])).resolves.toMatchObject({
514514
exitCode: 0,
515515
stderr: ``,
516516
});
@@ -548,11 +548,11 @@ it(`should support hydrating multiple package managers from cached archives`, as
548548
});
549549

550550
await xfs.writeJsonPromise(ppath.join(cwd, `package.json` as Filename), {
551-
packageManager: `[email protected].0`,
551+
packageManager: `[email protected].1`,
552552
});
553553

554554
await expect(runCli(cwd, [`cnpm`, `--version`])).resolves.toMatchObject({
555-
stdout: `[email protected].0`,
555+
stdout: `[email protected].1`,
556556
stderr: ``,
557557
exitCode: 0,
558558
});

0 commit comments

Comments
 (0)