Skip to content

Commit

Permalink
fix: corepack use cnpm@latest
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Dec 7, 2023
1 parent 5af83d0 commit 966b3ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"cnpm": {
"default": "9.3.0+sha1.e484e504bac2ebb537b99607415321562e15c5b5",
"default": "9.3.1+sha1.426460446f57dcf31b5a90fb59e35a8353d0d186",
"fetchLatestFrom": {
"type": "url",
"url": "https://registry.npmmirror.com/cnpm",
Expand Down Expand Up @@ -68,7 +68,8 @@
"type": "url",
"url": "https://registry.npmmirror.com/cnpm",
"fields": {
"versions": "versions"
"versions": "versions",
"tags": "dist-tags"
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const testedPackageManagers: Array<[string, string]> = [
[`pnpm`, `6.6.2`],
[`pnpm`, `6.6.2+sha1.7b4d6b176c1b93b5670ed94c24babb7d80c13854`],
[`pnpm`, `6.6.2+sha224.eb5c0acad3b0f40ecdaa2db9aa5a73134ad256e17e22d1419a2ab073`],
[`cnpm`, `9.3.0`],
[`cnpm`, `9.3.1`],
[`npm`, `6.14.2`],
[`npm`, `6.14.2+sha1.f057d35cd4792c4c511bb1fa332edb43143d07b0`],
[`npm`, `6.14.2+sha224.50512c1eb404900ee78586faa6d756b8d867ff46a328e6fb4cdf3a87`],
Expand Down Expand Up @@ -510,7 +510,7 @@ it(`should support hydrating package managers if cache folder was removed`, asyn

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

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

await expect(runCli(cwd, [`cnpm`, `--version`])).resolves.toMatchObject({
stdout: `[email protected].0`,
stdout: `[email protected].1`,
stderr: ``,
exitCode: 0,
});
Expand Down

0 comments on commit 966b3ec

Please sign in to comment.