Skip to content

Commit 6ca0e9c

Browse files
nodejs-github-botrichardlau
authored andcommitted
deps: update corepack to 0.18.1
PR-URL: #48483 Backport-PR-URL: #47337 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent bbe47a2 commit 6ca0e9c

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

deps/corepack/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [0.18.1](https://github.com/nodejs/corepack/compare/v0.18.0...v0.18.1) (2023-06-13)
4+
5+
6+
### Features
7+
8+
* update package manager versions ([#272](https://github.com/nodejs/corepack/issues/272)) ([5345774](https://github.com/nodejs/corepack/commit/53457747a26a5de3debbd0d9282b338186bbd7c3))
9+
10+
11+
### Bug Fixes
12+
13+
* disable `v8-compile-cache` when using `npm@&gt;=9.7.0` ([#276](https://github.com/nodejs/corepack/issues/276)) ([2f3678c](https://github.com/nodejs/corepack/commit/2f3678cd7915978f4e2ce7a32cbe5db58e9d0b8d))
14+
* don't override `process.exitCode` ([#268](https://github.com/nodejs/corepack/issues/268)) ([17d1f3d](https://github.com/nodejs/corepack/commit/17d1f3dd41ef6127228d427fd5cca373d6c97f0f))
15+
316
## [0.18.0](https://github.com/nodejs/corepack/compare/v0.17.2...v0.18.0) (2023-05-19)
417

518

deps/corepack/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ network interaction.
249249
There are a wide variety of networking issues that can occur while running `corepack` commands. Things to check:
250250

251251
- Make sure your network connection is active.
252-
- Make sure the host for your request can be resolved by your DNS; try using `curl [URL]` from your shell.
252+
- Make sure the host for your request can be resolved by your DNS; try using
253+
`curl [URL]` (ipv4) and `curl -6 [URL]` (ipv6) from your shell.
253254
- Check your proxy settings (see [Environment Variables](#environment-variables)).
254255

255256
## Contributing

deps/corepack/dist/lib/corepack.cjs

+16-21
Original file line numberDiff line numberDiff line change
@@ -38675,7 +38675,7 @@ function String2(descriptor, ...args) {
3867538675
}
3867638676

3867738677
// package.json
38678-
var version = "0.18.0";
38678+
var version = "0.18.1";
3867938679

3868038680
// sources/Engine.ts
3868138681
var import_fs3 = __toESM(require("fs"));
@@ -38718,7 +38718,7 @@ var config_default = {
3871838718
}
3871938719
},
3872038720
pnpm: {
38721-
default: "8.5.1+sha1.97019f5a8ec2416123506419ab36dd558e4c72eb",
38721+
default: "8.6.1+sha1.435b3c83c7de5c455ad80fd63ee7ecf3b67b949b",
3872238722
fetchLatestFrom: {
3872338723
type: "npm",
3872438724
package: "pnpm"
@@ -38770,7 +38770,7 @@ var config_default = {
3877038770
package: "yarn"
3877138771
},
3877238772
transparent: {
38773-
default: "3.5.1+sha224.13b84a541cae0695210d8c99f1dbd0e89ef09d93e166a59a8f8eb7ec",
38773+
default: "3.6.0+sha224.19e47520fa56c6146388fdeb438d9dcf6630c3f277a2e1180995c3bb",
3877438774
commands: [
3877538775
[
3877638776
"yarn",
@@ -39088,7 +39088,7 @@ async function installVersion(installTarget, locator, { spec }) {
3908839088
log(`Install finished`);
3908939089
return installFolder;
3909039090
}
39091-
async function runVersion(installSpec, binName, args) {
39091+
async function runVersion(locator, installSpec, binName, args) {
3909239092
let binPath = null;
3909339093
if (Array.isArray(installSpec.spec.bin)) {
3909439094
if (installSpec.spec.bin.some((bin) => bin === binName)) {
@@ -39108,7 +39108,8 @@ async function runVersion(installSpec, binName, args) {
3910839108
}
3910939109
if (!binPath)
3911039110
throw new Error(`Assertion failed: Unable to locate path for bin '${binName}'`);
39111-
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
39111+
if (locator.name !== `npm` || import_semver.default.lt(locator.reference, `9.7.0`))
39112+
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
3911239113
process.env.COREPACK_ROOT = import_path3.default.dirname(require.resolve("corepack/package.json"));
3911339114
process.argv = [
3911439115
process.execPath,
@@ -39760,19 +39761,18 @@ async function executePackageManagerRequest({ packageManager, binaryName, binary
3976039761
if (resolved === null)
3976139762
throw new UsageError(`Failed to successfully resolve '${descriptor.range}' to a valid ${descriptor.name} release`);
3976239763
const installSpec = await context.engine.ensurePackageManager(resolved);
39763-
return await runVersion(installSpec, binaryName, args);
39764+
return await runVersion(resolved, installSpec, binaryName, args);
3976439765
}
39765-
async function main(argv) {
39766+
async function runMain(argv) {
3976639767
const context = {
3976739768
...Cli.defaultContext,
3976839769
cwd: process.cwd(),
3976939770
engine: new Engine()
3977039771
};
3977139772
const [firstArg, ...restArgs] = argv;
3977239773
const request = getPackageManagerRequestFromCli(firstArg, context);
39773-
let cli;
3977439774
if (!request) {
39775-
cli = new Cli({
39775+
const cli = new Cli({
3977639776
binaryLabel: `Corepack`,
3977739777
binaryName: `corepack`,
3977839778
binaryVersion: version
@@ -39783,14 +39783,14 @@ async function main(argv) {
3978339783
cli.register(DisableCommand);
3978439784
cli.register(HydrateCommand);
3978539785
cli.register(PrepareCommand);
39786-
return await cli.run(argv, context);
39786+
await cli.runExit(argv, context);
3978739787
} else {
39788-
const cli2 = new Cli({
39788+
const cli = new Cli({
3978939789
binaryLabel: `'${request.binaryName}', via Corepack`,
3979039790
binaryName: request.binaryName,
3979139791
binaryVersion: `corepack/${version}`
3979239792
});
39793-
cli2.register(class BinaryCommand extends Command {
39793+
cli.register(class BinaryCommand extends Command {
3979439794
constructor() {
3979539795
super(...arguments);
3979639796
this.proxy = options_exports.Proxy();
@@ -39799,17 +39799,12 @@ async function main(argv) {
3979939799
return executePackageManagerRequest(request, this.proxy, this.context);
3980039800
}
3980139801
});
39802-
return await cli2.run(restArgs, context);
39802+
const code = await cli.run(restArgs, context);
39803+
if (code !== 0) {
39804+
process.exitCode ??= code;
39805+
}
3980339806
}
3980439807
}
39805-
function runMain(argv) {
39806-
main(argv).then((exitCode) => {
39807-
process.exitCode = exitCode;
39808-
}, (err) => {
39809-
console.error(err.stack);
39810-
process.exitCode = 1;
39811-
});
39812-
}
3981339808
// Annotate the CommonJS export names for ESM import in node:
3981439809
0 && (module.exports = {
3981539810
runMain

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.18.0",
3+
"version": "0.18.1",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"

0 commit comments

Comments
 (0)