pnpm 9.0.2 → 9.0.3
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 +17 -2
- 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.2
|
|
206
206
|
pendingBuilds: []
|
|
207
|
-
prunedAt:
|
|
207
|
+
prunedAt: Thu, 18 Apr 2024 16:45:58 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.3" : "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
|
|