Skip to content

Commit fdbd751

Browse files
feat: update package manager versions (#820)
1 parent 0a2eeda commit fdbd751

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"definitions": {
33
"npm": {
4-
"default": "11.12.1+sha1.432da55a9f0ca53c982740fabe2b081a38019fb1",
4+
"default": "11.14.1+sha1.4a6839650da0005f323fec6abd39d77ee24f842f",
55
"fetchLatestFrom": {
66
"type": "npm",
77
"package": "npm"
@@ -38,7 +38,7 @@
3838
}
3939
},
4040
"pnpm": {
41-
"default": "10.33.0+sha1.46a0bef28aad690765997ab6da6d5475bdd4148e",
41+
"default": "11.1.2+sha1.ed39d701687311ce9345771c62376f9fe7286694",
4242
"fetchLatestFrom": {
4343
"type": "npm",
4444
"package": "pnpm"

tests/main.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ it(`should transparently use the preconfigured version when there is no local pr
636636

637637
for (const name of SupportedPackageManagerSet) {
638638
it(`should use the pinned version when local projects don't list any spec (${name})`, async () => {
639+
process.env.pnpm_config_pm_on_fail = `ignore`;
640+
639641
await xfs.mktempPromise(async cwd => {
640642
await xfs.writeJsonPromise(ppath.join(cwd, `package.json` as Filename), {
641643
// empty package.json file
@@ -811,6 +813,7 @@ it(`should refuse to run a different package manager within a configured project
811813

812814
// Disable strict checking to workaround the UsageError.
813815
process.env.COREPACK_ENABLE_STRICT = `0`;
816+
process.env.pnpm_config_pm_on_fail = `ignore`;
814817

815818
await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({
816819
stdout: `1.0.0\n`,
@@ -832,6 +835,7 @@ it(`should always use fallback version when project spec env is disabled`, async
832835
packageManager: `yarn@1.0.0`,
833836
});
834837
process.env.COREPACK_ENABLE_PROJECT_SPEC = `0`;
838+
process.env.pnpm_config_pm_on_fail = `ignore`;
835839

836840
await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({
837841
stdout: `${config.definitions.yarn.default.split(`+`, 1)[0]}\n`,

tests/nocks.db

-280 KB
Binary file not shown.

0 commit comments

Comments
 (0)