Skip to content

Commit e5db8d4

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update corepack to 0.24.1
PR-URL: #51459 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent fe597de commit e5db8d4

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

deps/corepack/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [0.24.1](https://github.com/nodejs/corepack/compare/v0.24.0...v0.24.1) (2024-01-13)
4+
5+
6+
### Features
7+
8+
* update package manager versions ([#348](https://github.com/nodejs/corepack/issues/348)) ([cc3ada7](https://github.com/nodejs/corepack/commit/cc3ada73bccd0a5b0ff16834e518efa521c9eea4))
9+
10+
11+
### Bug Fixes
12+
13+
* **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))
14+
315
## [0.24.0](https://github.com/nodejs/corepack/compare/v0.23.0...v0.24.0) (2023-12-29)
416

517

deps/corepack/dist/lib/corepack.cjs

+13-8
Original file line numberDiff line numberDiff line change
@@ -41952,7 +41952,7 @@ function String2(descriptor, ...args) {
4195241952
}
4195341953

4195441954
// package.json
41955-
var version = "0.24.0";
41955+
var version = "0.24.1";
4195641956

4195741957
// sources/Engine.ts
4195841958
var import_fs3 = __toESM(require("fs"));
@@ -41964,7 +41964,7 @@ var import_semver3 = __toESM(require_semver2());
4196441964
var config_default = {
4196541965
definitions: {
4196641966
npm: {
41967-
default: "10.2.5+sha1.ef86b9aafd9965e60814ed11a3d4fb00a4e3b006",
41967+
default: "10.3.0+sha1.554e1f13e4c09d581ad27cdc4a92f085ab74ce1a",
4196841968
fetchLatestFrom: {
4196941969
type: "npm",
4197041970
package: "npm"
@@ -42001,7 +42001,7 @@ var config_default = {
4200142001
}
4200242002
},
4200342003
pnpm: {
42004-
default: "8.13.1+sha1.90f9b2bb3ed58632bcb7b13c3902d6873ee9501c",
42004+
default: "8.14.1+sha1.d039b38e0b20ad012ed548e44267b8d4c88b447a",
4200542005
fetchLatestFrom: {
4200642006
type: "npm",
4200742007
package: "pnpm"
@@ -42829,9 +42829,14 @@ async function loadSpec(initialCwd) {
4282942829
if (nodeModulesRegExp.test(currCwd))
4283042830
continue;
4283142831
const manifestPath = import_path6.default.join(currCwd, `package.json`);
42832-
if (!import_fs6.default.existsSync(manifestPath))
42833-
continue;
42834-
const content = await import_fs6.default.promises.readFile(manifestPath, `utf8`);
42832+
let content;
42833+
try {
42834+
content = await import_fs6.default.promises.readFile(manifestPath, `utf8`);
42835+
} catch (err) {
42836+
if (err?.code === `ENOENT`)
42837+
continue;
42838+
throw err;
42839+
}
4283542840
let data;
4283642841
try {
4283742842
data = JSON.parse(content);
@@ -42916,7 +42921,7 @@ var BaseCommand = class extends Command {
4291642921
}
4291742922
async setLocalPackageManager(info) {
4291842923
const lookup = await loadSpec(this.context.cwd);
42919-
const content = lookup.target !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``;
42924+
const content = lookup.type !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``;
4292042925
const { data, indent } = readPackageJson(content);
4292142926
const previousPackageManager = data.packageManager ?? `unknown`;
4292242927
data.packageManager = `${info.locator.name}@${info.locator.reference}+${info.hash}`;
@@ -43195,7 +43200,7 @@ var UseCommand = class extends BaseCommand {
4319543200
`,
4319643201
examples: [[
4319743202
`Configure the project to use the latest Yarn release`,
43198-
`corepack use 'yarn@*'`
43203+
`corepack use yarn`
4319943204
]]
4320043205
});
4320143206
pattern = options_exports.String();

deps/corepack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.24.0",
3+
"version": "0.24.1",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"

0 commit comments

Comments
 (0)