Skip to content

Commit

Permalink
deps: update corepack to 0.30.0
Browse files Browse the repository at this point in the history
PR-URL: #55977
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
nodejs-github-bot authored and aduh95 committed Nov 26, 2024
1 parent 96e846d commit f99f95f
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 8 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.30.0](https://github.com/nodejs/corepack/compare/v0.29.4...v0.30.0) (2024-11-23)


### Features

* update package manager versions ([#578](https://github.com/nodejs/corepack/issues/578)) ([a286c8f](https://github.com/nodejs/corepack/commit/a286c8f5537ea9ecf9b6ff53c7bc3e8da4e3c8bb))


### Performance Improvements

* prefer `module.enableCompileCache` over `v8-compile-cache` ([#574](https://github.com/nodejs/corepack/issues/574)) ([cba6905](https://github.com/nodejs/corepack/commit/cba690575bd606faeee54bd512ccb8797d49055f))

## [0.29.4](https://github.com/nodejs/corepack/compare/v0.29.3...v0.29.4) (2024-09-07)


Expand Down
1 change: 1 addition & 0 deletions deps/corepack/dist/corepack.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='0';
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(process.argv.slice(2));
20 changes: 13 additions & 7 deletions deps/corepack/dist/lib/corepack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21260,7 +21260,7 @@ function String2(descriptor, ...args) {
}

// package.json
var version = "0.29.4";
var version = "0.30.0";

// sources/Engine.ts
var import_fs9 = __toESM(require("fs"));
Expand All @@ -21274,7 +21274,7 @@ var import_valid3 = __toESM(require_valid2());
var config_default = {
definitions: {
npm: {
default: "10.8.3+sha1.e6085b2864fcfd9b1aad7b602601b5a2fc116699",
default: "10.9.1+sha1.ab141c1229765c11c8c59060fc9cf450a2207bd6",
fetchLatestFrom: {
type: "npm",
package: "npm"
Expand Down Expand Up @@ -21311,7 +21311,7 @@ var config_default = {
}
},
pnpm: {
default: "9.9.0+sha1.3edbe440f4e570aa8f049adbd06b9483d55cc2d2",
default: "9.14.2+sha1.5202b50ab92394b3c922d2e293f196e2df6d441b",
fetchLatestFrom: {
type: "npm",
package: "pnpm"
Expand Down Expand Up @@ -21375,7 +21375,7 @@ var config_default = {
package: "yarn"
},
transparent: {
default: "4.4.1+sha224.fd21d9eb5fba020083811af1d4953acc21eeb9f6ff97efd1b3f9d4de",
default: "4.5.2+sha224.c2e2e9ed3cdadd6ec250589b3393f71ae56d5ec297af11cec1eba3b4",
commands: [
[
"yarn",
Expand Down Expand Up @@ -21965,8 +21965,11 @@ async function runVersion(locator, installSpec, binName, args) {
}
if (!binPath)
throw new Error(`Assertion failed: Unable to locate path for bin '${binName}'`);
if (locator.name !== `npm` || (0, import_lt.default)(locator.reference, `9.7.0`))
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
if (!import_module.default.enableCompileCache) {
if (locator.name !== `npm` || (0, import_lt.default)(locator.reference, `9.7.0`)) {
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
}
}
process.env.COREPACK_ROOT = import_path7.default.dirname(require.resolve("corepack/package.json"));
process.argv = [
process.execPath,
Expand All @@ -21976,6 +21979,9 @@ async function runVersion(locator, installSpec, binName, args) {
process.execArgv = [];
process.mainModule = void 0;
process.nextTick(import_module.default.runMain, binPath);
if (import_module.default.flushCompileCache) {
setImmediate(import_module.default.flushCompileCache);
}
}
function shouldSkipIntegrityCheck() {
return process.env.COREPACK_INTEGRITY_KEYS === `` || process.env.COREPACK_INTEGRITY_KEYS === `0`;
Expand Down Expand Up @@ -22553,7 +22559,7 @@ var EnableCommand = class extends Command {
[`enable`]
];
static usage = Command.Usage({
description: `Add the Corepack shims to the install directories`,
description: `Add the Corepack shims to the install directory`,
details: `
When run, this command will check whether the shims for the specified package managers can be found with the correct values inside the install directory. If not, or if they don't exist, they will be created.

Expand Down
1 change: 1 addition & 0 deletions deps/corepack/dist/npm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['npm', ...process.argv.slice(2)]);
1 change: 1 addition & 0 deletions deps/corepack/dist/npx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['npx', ...process.argv.slice(2)]);
1 change: 1 addition & 0 deletions deps/corepack/dist/pnpm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['pnpm', ...process.argv.slice(2)]);
1 change: 1 addition & 0 deletions deps/corepack/dist/pnpx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['pnpx', ...process.argv.slice(2)]);
1 change: 1 addition & 0 deletions deps/corepack/dist/yarn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['yarn', ...process.argv.slice(2)]);
1 change: 1 addition & 0 deletions deps/corepack/dist/yarnpkg.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('module').enableCompileCache?.();
require('./lib/corepack.cjs').runMain(['yarnpkg', ...process.argv.slice(2)]);
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.29.4",
"version": "0.30.0",
"homepage": "https://github.com/nodejs/corepack#readme",
"bugs": {
"url": "https://github.com/nodejs/corepack/issues"
Expand Down

0 comments on commit f99f95f

Please sign in to comment.