pnpm 9.0.2 → 9.0.4
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/node_modules/.modules.yaml +2 -2
- package/dist/pnpm.cjs +22 -7
- package/package.json +1 -1
|
@@ -202,9 +202,9 @@ included:
|
|
|
202
202
|
injectedDeps: {}
|
|
203
203
|
layoutVersion: 5
|
|
204
204
|
nodeLinker: hoisted
|
|
205
|
-
packageManager: pnpm@9.0.
|
|
205
|
+
packageManager: pnpm@9.0.3
|
|
206
206
|
pendingBuilds: []
|
|
207
|
-
prunedAt:
|
|
207
|
+
prunedAt: Fri, 19 Apr 2024 01:02:47 GMT
|
|
208
208
|
publicHoistPattern:
|
|
209
209
|
- '*eslint*'
|
|
210
210
|
- '*prettier*'
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3357,7 +3357,7 @@ var require_lib4 = __commonJS({
|
|
|
3357
3357
|
var load_json_file_1 = __importDefault2(require_load_json_file());
|
|
3358
3358
|
var defaultManifest = {
|
|
3359
3359
|
name: true ? "pnpm" : "pnpm",
|
|
3360
|
-
version: true ? "9.0.
|
|
3360
|
+
version: true ? "9.0.4" : "0.0.0"
|
|
3361
3361
|
};
|
|
3362
3362
|
var pkgJson;
|
|
3363
3363
|
if (require.main == null) {
|
|
@@ -43458,7 +43458,9 @@ var require_packageIsInstallable = __commonJS({
|
|
|
43458
43458
|
if (pmVersion && pnpmVersion && pmVersion !== pnpmVersion) {
|
|
43459
43459
|
const msg = `This project is configured to use v${pmVersion} of pnpm. Your current pnpm is v${pnpmVersion}`;
|
|
43460
43460
|
if (opts.packageManagerStrict) {
|
|
43461
|
-
throw new error_1.PnpmError("BAD_PM_VERSION", msg
|
|
43461
|
+
throw new error_1.PnpmError("BAD_PM_VERSION", msg, {
|
|
43462
|
+
hint: 'If you want to bypass this version check, you can set the "package-manager-strict" configuration to "false" or set the "COREPACK_ENABLE_STRICT" environment variable to "0"'
|
|
43463
|
+
});
|
|
43462
43464
|
} else {
|
|
43463
43465
|
(0, logger_1.globalWarn)(msg);
|
|
43464
43466
|
}
|
|
@@ -103627,10 +103629,19 @@ var require_runLifecycleHook = __commonJS({
|
|
|
103627
103629
|
var npm_lifecycle_1 = __importDefault2(require_npm_lifecycle());
|
|
103628
103630
|
var error_1 = require_lib7();
|
|
103629
103631
|
var fs_1 = require("fs");
|
|
103632
|
+
var is_windows_1 = __importDefault2(require_is_windows());
|
|
103630
103633
|
function noop() {
|
|
103631
103634
|
}
|
|
103632
103635
|
async function runLifecycleHook(stage, manifest, opts) {
|
|
103633
103636
|
const optional = opts.optional === true;
|
|
103637
|
+
if (opts.scriptShell != null && isWindowsBatchFile(opts.scriptShell)) {
|
|
103638
|
+
throw new error_1.PnpmError("ERR_PNPM_INVALID_SCRIPT_SHELL_WINDOWS", "Cannot spawn .bat or .cmd as a script shell.", {
|
|
103639
|
+
hint: `The .npmrc script-shell option was configured to a .bat or .cmd file. These cannot be used as a script shell reliably.
|
|
103640
|
+
|
|
103641
|
+
Please unset the script-shell option, or configure it to a .exe instead.
|
|
103642
|
+
`
|
|
103643
|
+
});
|
|
103644
|
+
}
|
|
103634
103645
|
const m = { _id: getId(manifest), ...manifest };
|
|
103635
103646
|
m.scripts = { ...m.scripts };
|
|
103636
103647
|
if (stage === "start" && !m.scripts.start) {
|
|
@@ -103719,6 +103730,10 @@ var require_runLifecycleHook = __commonJS({
|
|
|
103719
103730
|
function getId(manifest) {
|
|
103720
103731
|
return `${manifest.name ?? ""}@${manifest.version ?? ""}`;
|
|
103721
103732
|
}
|
|
103733
|
+
function isWindowsBatchFile(scriptShell) {
|
|
103734
|
+
const scriptShellLower = scriptShell.toLowerCase();
|
|
103735
|
+
return (0, is_windows_1.default)() && (scriptShellLower.endsWith(".cmd") || scriptShellLower.endsWith(".bat"));
|
|
103736
|
+
}
|
|
103722
103737
|
}
|
|
103723
103738
|
});
|
|
103724
103739
|
|
|
@@ -130878,7 +130893,6 @@ var require_packageRequester = __commonJS({
|
|
|
130878
130893
|
lockfileDir: options.lockfileDir,
|
|
130879
130894
|
nodeVersion: ctx.nodeVersion,
|
|
130880
130895
|
optional: wantedDependency.optional === true,
|
|
130881
|
-
pnpmVersion: ctx.pnpmVersion,
|
|
130882
130896
|
supportedArchitectures: options.supportedArchitectures
|
|
130883
130897
|
}));
|
|
130884
130898
|
if ((options.skipFetch === true || isInstallable === false) && manifest != null) {
|
|
@@ -137340,7 +137354,6 @@ var require_filterLockfileByImportersAndEngine = __commonJS({
|
|
|
137340
137354
|
lockfileDir: opts.lockfileDir,
|
|
137341
137355
|
nodeVersion: opts.currentEngine.nodeVersion,
|
|
137342
137356
|
optional: pkgSnapshot.optional === true,
|
|
137343
|
-
pnpmVersion: opts.currentEngine.pnpmVersion,
|
|
137344
137357
|
supportedArchitectures: opts.supportedArchitectures
|
|
137345
137358
|
}) !== false;
|
|
137346
137359
|
if (!installable) {
|
|
@@ -141153,7 +141166,6 @@ var require_lockfileToDepGraph = __commonJS({
|
|
|
141153
141166
|
lockfileDir: opts.lockfileDir,
|
|
141154
141167
|
nodeVersion: opts.nodeVersion,
|
|
141155
141168
|
optional: pkgSnapshot.optional === true,
|
|
141156
|
-
pnpmVersion: opts.pnpmVersion,
|
|
141157
141169
|
supportedArchitectures: opts.supportedArchitectures
|
|
141158
141170
|
}) === false) {
|
|
141159
141171
|
opts.skipped.add(depPath);
|
|
@@ -172851,7 +172863,6 @@ var require_lockfileToHoistedDepGraph = __commonJS({
|
|
|
172851
172863
|
lockfileDir: opts.lockfileDir,
|
|
172852
172864
|
nodeVersion: opts.nodeVersion,
|
|
172853
172865
|
optional: pkgSnapshot.optional === true,
|
|
172854
|
-
pnpmVersion: opts.pnpmVersion,
|
|
172855
172866
|
supportedArchitectures: opts.supportedArchitectures
|
|
172856
172867
|
}) === false) {
|
|
172857
172868
|
opts.skipped.add(depPath);
|
|
@@ -175296,7 +175307,11 @@ var require_resolveDependencies = __commonJS({
|
|
|
175296
175307
|
}
|
|
175297
175308
|
try {
|
|
175298
175309
|
if (!options.update && currentPkg.version && currentPkg.pkgId?.endsWith(`@${currentPkg.version}`)) {
|
|
175299
|
-
wantedDependency.pref
|
|
175310
|
+
if (semver_12.default.validRange(wantedDependency.pref)) {
|
|
175311
|
+
wantedDependency.pref = currentPkg.version;
|
|
175312
|
+
} else if (wantedDependency.pref.startsWith("npm:")) {
|
|
175313
|
+
wantedDependency.pref = `${wantedDependency.pref.substring(0, wantedDependency.pref.lastIndexOf("@") + 1)}${currentPkg.version}`;
|
|
175314
|
+
}
|
|
175300
175315
|
}
|
|
175301
175316
|
pkgResponse = await ctx.storeController.requestPackage(wantedDependency, {
|
|
175302
175317
|
alwaysTryWorkspacePackages: ctx.linkWorkspacePackagesDepth >= options.currentDepth,
|