Skip to content

Commit

Permalink
deps: update corepack to 0.24.1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nodejs-github-bot authored and targos committed Feb 15, 2024
1 parent fe597de commit e5db8d4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
12 changes: 12 additions & 0 deletions deps/corepack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
21 changes: 13 additions & 8 deletions deps/corepack/dist/lib/corepack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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}`;
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion deps/corepack/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e5db8d4

Please sign in to comment.