pnpm 11.1.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pnpm.mjs +46 -20
- package/package.json +1 -1
package/dist/pnpm.mjs
CHANGED
|
@@ -1800,7 +1800,7 @@ var init_lib5 = __esm({
|
|
|
1800
1800
|
"use strict";
|
|
1801
1801
|
defaultManifest = {
|
|
1802
1802
|
name: true ? "pnpm" : "pnpm",
|
|
1803
|
-
version: true ? "11.1.
|
|
1803
|
+
version: true ? "11.1.1" : "0.0.0"
|
|
1804
1804
|
};
|
|
1805
1805
|
pkgJson = defaultManifest;
|
|
1806
1806
|
packageManager = {
|
|
@@ -75870,7 +75870,7 @@ var require_cmd_extension = __commonJS({
|
|
|
75870
75870
|
}
|
|
75871
75871
|
});
|
|
75872
75872
|
|
|
75873
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@zkochan/cmd-shim/9.0.
|
|
75873
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@zkochan/cmd-shim/9.0.3/70fc3fd01bcfda164fa391eb193bc220f3627f040e6e3517b5891192ea2f6ed5/node_modules/@zkochan/cmd-shim/index.js
|
|
75874
75874
|
import path36 from "node:path";
|
|
75875
75875
|
import { promisify as promisify6 } from "node:util";
|
|
75876
75876
|
function ingestOptions(opts2) {
|
|
@@ -75952,6 +75952,9 @@ function getExeExtension() {
|
|
|
75952
75952
|
}
|
|
75953
75953
|
return cmdExtension2 || ".exe";
|
|
75954
75954
|
}
|
|
75955
|
+
function escapeMsysCmdSwitches(args) {
|
|
75956
|
+
return args.replace(/(^|\s)\/([CcKk])(\s|$)/g, "$1//$2$3");
|
|
75957
|
+
}
|
|
75955
75958
|
async function writeShim(src2, to, srcRuntimeInfo, generateShimScript, opts2) {
|
|
75956
75959
|
const defaultArgs = opts2.preserveSymlinks ? "--preserve-symlinks" : "";
|
|
75957
75960
|
const args = [srcRuntimeInfo.additionalArgs, defaultArgs].filter((arg) => arg).join(" ");
|
|
@@ -76018,6 +76021,9 @@ function generateShShim(src2, to, opts2) {
|
|
|
76018
76021
|
shTarget = shTarget.split("\\").join("/");
|
|
76019
76022
|
const quotedPathToTarget = path36.isAbsolute(shTarget) ? `"${shTarget}"` : `"$basedir/${shTarget}"`;
|
|
76020
76023
|
let args = opts2.args || "";
|
|
76024
|
+
if (opts2.prog === "cmd" || opts2.prog === "cmd.exe") {
|
|
76025
|
+
args = escapeMsysCmdSwitches(args);
|
|
76026
|
+
}
|
|
76021
76027
|
const shNodePath = normalizePathEnvVar(opts2.nodePath).posix;
|
|
76022
76028
|
if (!shProg) {
|
|
76023
76029
|
shProg = quotedPathToTarget;
|
|
@@ -76063,7 +76069,7 @@ else
|
|
|
76063
76069
|
fi
|
|
76064
76070
|
`;
|
|
76065
76071
|
} else {
|
|
76066
|
-
sh +=
|
|
76072
|
+
sh += `exec ${shProg} ${args} ${shTarget} ${progArgs}"$@"
|
|
76067
76073
|
exit $?
|
|
76068
76074
|
`;
|
|
76069
76075
|
}
|
|
@@ -76191,7 +76197,7 @@ function shimTarget(src2) {
|
|
|
76191
76197
|
}
|
|
76192
76198
|
var import_graceful_fs3, import_cmd_extension, gfsPromises, isWindows5, isCygwin, shebangExpr, DEFAULT_OPTIONS2, extensionToProgramMap;
|
|
76193
76199
|
var init_cmd_shim = __esm({
|
|
76194
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@zkochan/cmd-shim/9.0.
|
|
76200
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@zkochan/cmd-shim/9.0.3/70fc3fd01bcfda164fa391eb193bc220f3627f040e6e3517b5891192ea2f6ed5/node_modules/@zkochan/cmd-shim/index.js"() {
|
|
76195
76201
|
import_graceful_fs3 = __toESM(require_graceful_fs(), 1);
|
|
76196
76202
|
import_cmd_extension = __toESM(require_cmd_extension(), 1);
|
|
76197
76203
|
gfsPromises = {
|
|
@@ -109406,11 +109412,11 @@ var init_lib52 = __esm({
|
|
|
109406
109412
|
// ../resolving/local-resolver/lib/parseBareSpecifier.js
|
|
109407
109413
|
import os3 from "node:os";
|
|
109408
109414
|
import path46 from "node:path";
|
|
109409
|
-
function
|
|
109415
|
+
function parseLocalScheme(wd, projectDir, lockfileDir, opts2) {
|
|
109410
109416
|
if (wd.bareSpecifier.startsWith("link:") || wd.bareSpecifier.startsWith("workspace:")) {
|
|
109411
109417
|
return fromLocal(wd, projectDir, lockfileDir, "directory", opts2);
|
|
109412
109418
|
}
|
|
109413
|
-
if (wd.bareSpecifier.
|
|
109419
|
+
if (wd.bareSpecifier.startsWith("file:")) {
|
|
109414
109420
|
const type4 = isFilename.test(wd.bareSpecifier) ? "file" : "directory";
|
|
109415
109421
|
return fromLocal(wd, projectDir, lockfileDir, type4, opts2);
|
|
109416
109422
|
}
|
|
@@ -109419,6 +109425,13 @@ function parseBareSpecifier3(wd, projectDir, lockfileDir, opts2) {
|
|
|
109419
109425
|
}
|
|
109420
109426
|
return null;
|
|
109421
109427
|
}
|
|
109428
|
+
function parseLocalPath(wd, projectDir, lockfileDir, opts2) {
|
|
109429
|
+
if (wd.bareSpecifier.endsWith(".tgz") || wd.bareSpecifier.endsWith(".tar.gz") || wd.bareSpecifier.endsWith(".tar") || wd.bareSpecifier.includes(path46.sep) || isFilespec.test(wd.bareSpecifier)) {
|
|
109430
|
+
const type4 = isFilename.test(wd.bareSpecifier) ? "file" : "directory";
|
|
109431
|
+
return fromLocal(wd, projectDir, lockfileDir, type4, opts2);
|
|
109432
|
+
}
|
|
109433
|
+
return null;
|
|
109434
|
+
}
|
|
109422
109435
|
function fromLocal({ bareSpecifier, injected }, projectDir, lockfileDir, type4, opts2) {
|
|
109423
109436
|
const spec = bareSpecifier.replace(/\\/g, "/").replace(/^(?:file|link|workspace):\/*([A-Z]:)/i, "$1").replace(/^(?:file|link|workspace):(?:\/*([~./]))?/, "$1");
|
|
109424
109437
|
let protocol;
|
|
@@ -109499,9 +109512,19 @@ var init_parseBareSpecifier3 = __esm({
|
|
|
109499
109512
|
// ../resolving/local-resolver/lib/index.js
|
|
109500
109513
|
import { existsSync as existsSync3 } from "node:fs";
|
|
109501
109514
|
import path47 from "node:path";
|
|
109502
|
-
async function
|
|
109503
|
-
const
|
|
109504
|
-
|
|
109515
|
+
async function resolveFromLocalScheme(ctx, wantedDependency, opts2) {
|
|
109516
|
+
const spec = parseLocalScheme(wantedDependency, opts2.projectDir, opts2.lockfileDir ?? opts2.projectDir, {
|
|
109517
|
+
preserveAbsolutePaths: ctx.preserveAbsolutePaths ?? false
|
|
109518
|
+
});
|
|
109519
|
+
return resolveSpec(spec, opts2);
|
|
109520
|
+
}
|
|
109521
|
+
async function resolveFromLocalPath(ctx, wantedDependency, opts2) {
|
|
109522
|
+
const spec = parseLocalPath(wantedDependency, opts2.projectDir, opts2.lockfileDir ?? opts2.projectDir, {
|
|
109523
|
+
preserveAbsolutePaths: ctx.preserveAbsolutePaths ?? false
|
|
109524
|
+
});
|
|
109525
|
+
return resolveSpec(spec, opts2);
|
|
109526
|
+
}
|
|
109527
|
+
async function resolveSpec(spec, opts2) {
|
|
109505
109528
|
if (spec == null)
|
|
109506
109529
|
return null;
|
|
109507
109530
|
if (spec.type === "file") {
|
|
@@ -109635,20 +109658,20 @@ async function resolveFromCustomResolvers(customResolvers, wantedDependency, opt
|
|
|
109635
109658
|
function createResolver(fetchFromRegistry, getAuthHeader, pnpmOpts) {
|
|
109636
109659
|
const { resolveFromNpm, resolveFromJsr, resolveFromNamedRegistry: resolveFromNamedRegistry2, clearCache } = createNpmResolver(fetchFromRegistry, getAuthHeader, pnpmOpts);
|
|
109637
109660
|
const resolveFromGit = createGitResolver(pnpmOpts);
|
|
109638
|
-
const
|
|
109639
|
-
|
|
109640
|
-
|
|
109661
|
+
const localCtx = { preserveAbsolutePaths: pnpmOpts.preserveAbsolutePaths };
|
|
109662
|
+
const _resolveFromLocalScheme = resolveFromLocalScheme.bind(null, localCtx);
|
|
109663
|
+
const _resolveFromLocalPath = resolveFromLocalPath.bind(null, localCtx);
|
|
109641
109664
|
const _resolveNodeRuntime = resolveNodeRuntime.bind(null, { fetchFromRegistry, offline: pnpmOpts.offline, nodeDownloadMirrors: pnpmOpts.nodeDownloadMirrors });
|
|
109642
109665
|
const _resolveDenoRuntime = resolveDenoRuntime.bind(null, { fetchFromRegistry, offline: pnpmOpts.offline, resolveFromNpm });
|
|
109643
109666
|
const _resolveBunRuntime = resolveBunRuntime.bind(null, { fetchFromRegistry, offline: pnpmOpts.offline, resolveFromNpm });
|
|
109644
109667
|
const _resolveFromCustomResolvers = pnpmOpts.customResolvers ? resolveFromCustomResolvers.bind(null, pnpmOpts.customResolvers) : null;
|
|
109645
109668
|
return {
|
|
109646
109669
|
resolve: async (wantedDependency, opts2) => {
|
|
109647
|
-
const resolution = await _resolveFromCustomResolvers?.(wantedDependency, opts2) ?? await resolveFromNpm(wantedDependency, opts2) ?? await resolveFromJsr(wantedDependency, opts2) ?? (wantedDependency.bareSpecifier && (await resolveFromGit(wantedDependency, opts2) ?? await resolveFromTarball(fetchFromRegistry, wantedDependency) ?? await
|
|
109648
|
-
//
|
|
109649
|
-
//
|
|
109650
|
-
//
|
|
109651
|
-
await resolveFromNamedRegistry2(wantedDependency, opts2);
|
|
109670
|
+
const resolution = await _resolveFromCustomResolvers?.(wantedDependency, opts2) ?? await resolveFromNpm(wantedDependency, opts2) ?? await resolveFromJsr(wantedDependency, opts2) ?? (wantedDependency.bareSpecifier && (await resolveFromGit(wantedDependency, opts2) ?? await resolveFromTarball(fetchFromRegistry, wantedDependency) ?? await _resolveFromLocalScheme(wantedDependency, opts2))) ?? await _resolveNodeRuntime(wantedDependency, opts2) ?? await _resolveDenoRuntime(wantedDependency, opts2) ?? await _resolveBunRuntime(wantedDependency, opts2) ?? // Named-registry runs between the explicit local schemes above and the
|
|
109671
|
+
// path-shape match below, so `<alias>:@scope/pkg` reaches the configured
|
|
109672
|
+
// registry while a colliding `file:`/`link:`/`workspace:` alias cannot
|
|
109673
|
+
// hijack the built-in protocols.
|
|
109674
|
+
await resolveFromNamedRegistry2(wantedDependency, opts2) ?? (wantedDependency.bareSpecifier ? await _resolveFromLocalPath(wantedDependency, opts2) : null);
|
|
109652
109675
|
if (!resolution) {
|
|
109653
109676
|
let specifier = `${wantedDependency.alias ? wantedDependency.alias + "@" : ""}${wantedDependency.bareSpecifier ?? ""}`;
|
|
109654
109677
|
if (specifier !== "") {
|
|
@@ -163468,9 +163491,8 @@ async function _checkDepsStatus(opts2, workspaceState) {
|
|
|
163468
163491
|
const workspaceRoot = workspaceDir ?? rootProjectManifestDir;
|
|
163469
163492
|
const workspaceManifest = await readWorkspaceManifest(workspaceRoot);
|
|
163470
163493
|
if (workspaceManifest ?? workspaceDir) {
|
|
163471
|
-
const allProjects2 = await
|
|
163472
|
-
patterns: workspaceManifest?.packages
|
|
163473
|
-
sharedWorkspaceLockfile
|
|
163494
|
+
const allProjects2 = await findWorkspaceProjectsNoCheck(rootProjectManifestDir, {
|
|
163495
|
+
patterns: workspaceManifest?.packages
|
|
163474
163496
|
});
|
|
163475
163497
|
return checkDepsStatus({
|
|
163476
163498
|
...opts2,
|
|
@@ -164944,6 +164966,10 @@ function help4() {
|
|
|
164944
164966
|
OPTIONS.ignoreScripts,
|
|
164945
164967
|
OPTIONS.offline,
|
|
164946
164968
|
OPTIONS.preferOffline,
|
|
164969
|
+
{
|
|
164970
|
+
description: "The registry to use for the installation",
|
|
164971
|
+
name: "--registry <url>"
|
|
164972
|
+
},
|
|
164947
164973
|
OPTIONS.storeDir,
|
|
164948
164974
|
OPTIONS.virtualStoreDir,
|
|
164949
164975
|
OPTIONS.globalDir,
|