From 56d781b09a9bf42cab0dd8908625015124156da1 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Sun, 14 Jan 2024 00:26:59 +0000 Subject: [PATCH] deps: update corepack to 0.24.1 --- deps/corepack/CHANGELOG.md | 12 ++++++++++++ deps/corepack/dist/lib/corepack.cjs | 21 +++++++++++++-------- deps/corepack/package.json | 2 +- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/deps/corepack/CHANGELOG.md b/deps/corepack/CHANGELOG.md index 1fb7b49b1f9ae1..39e20b2a337b05 100644 --- a/deps/corepack/CHANGELOG.md +++ b/deps/corepack/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.24.1](https://github.com/nodejs/corepack/compare/v0.24.0...v0.24.1) (2024-01-13) + + +### Features + +* update package manager versions ([#348](https://github.com/nodejs/corepack/issues/348)) ([cc3ada7](https://github.com/nodejs/corepack/commit/cc3ada73bccd0a5b0ff16834e518efa521c9eea4)) + + +### Bug Fixes + +* **use:** create `package.json` when calling `corepack use` on empty dir ([#350](https://github.com/nodejs/corepack/issues/350)) ([2950a8a](https://github.com/nodejs/corepack/commit/2950a8a30b64b4598abc354e45400e83d56e541b)) + ## [0.24.0](https://github.com/nodejs/corepack/compare/v0.23.0...v0.24.0) (2023-12-29) diff --git a/deps/corepack/dist/lib/corepack.cjs b/deps/corepack/dist/lib/corepack.cjs index 496085e6c57a2e..679c83f7904a4c 100644 --- a/deps/corepack/dist/lib/corepack.cjs +++ b/deps/corepack/dist/lib/corepack.cjs @@ -41952,7 +41952,7 @@ function String2(descriptor, ...args) { } // package.json -var version = "0.24.0"; +var version = "0.24.1"; // sources/Engine.ts var import_fs3 = __toESM(require("fs")); @@ -41964,7 +41964,7 @@ var import_semver3 = __toESM(require_semver2()); var config_default = { definitions: { npm: { - default: "10.2.5+sha1.ef86b9aafd9965e60814ed11a3d4fb00a4e3b006", + default: "10.3.0+sha1.554e1f13e4c09d581ad27cdc4a92f085ab74ce1a", fetchLatestFrom: { type: "npm", package: "npm" @@ -42001,7 +42001,7 @@ var config_default = { } }, pnpm: { - default: "8.13.1+sha1.90f9b2bb3ed58632bcb7b13c3902d6873ee9501c", + default: "8.14.1+sha1.d039b38e0b20ad012ed548e44267b8d4c88b447a", fetchLatestFrom: { type: "npm", package: "pnpm" @@ -42829,9 +42829,14 @@ async function loadSpec(initialCwd) { if (nodeModulesRegExp.test(currCwd)) continue; const manifestPath = import_path6.default.join(currCwd, `package.json`); - if (!import_fs6.default.existsSync(manifestPath)) - continue; - const content = await import_fs6.default.promises.readFile(manifestPath, `utf8`); + let content; + try { + content = await import_fs6.default.promises.readFile(manifestPath, `utf8`); + } catch (err) { + if (err?.code === `ENOENT`) + continue; + throw err; + } let data; try { data = JSON.parse(content); @@ -42916,7 +42921,7 @@ var BaseCommand = class extends Command { } async setLocalPackageManager(info) { const lookup = await loadSpec(this.context.cwd); - const content = lookup.target !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``; + const content = lookup.type !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``; const { data, indent } = readPackageJson(content); const previousPackageManager = data.packageManager ?? `unknown`; data.packageManager = `${info.locator.name}@${info.locator.reference}+${info.hash}`; @@ -43195,7 +43200,7 @@ var UseCommand = class extends BaseCommand { `, examples: [[ `Configure the project to use the latest Yarn release`, - `corepack use 'yarn@*'` + `corepack use yarn` ]] }); pattern = options_exports.String(); diff --git a/deps/corepack/package.json b/deps/corepack/package.json index da329bf621fda5..3078dad70f0997 100644 --- a/deps/corepack/package.json +++ b/deps/corepack/package.json @@ -1,6 +1,6 @@ { "name": "corepack", - "version": "0.24.0", + "version": "0.24.1", "homepage": "https://github.com/nodejs/corepack#readme", "bugs": { "url": "https://github.com/nodejs/corepack/issues"