pnpm 6.24.2 → 6.24.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/pnpm.cjs +29 -20
- package/package.json +8 -8
package/dist/pnpm.cjs
CHANGED
|
@@ -3167,7 +3167,7 @@ var require_lib4 = __commonJS({
|
|
|
3167
3167
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3168
3168
|
var defaultManifest = {
|
|
3169
3169
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3170
|
-
version: "6.24.
|
|
3170
|
+
version: "6.24.3" != null && true ? "6.24.3" : "0.0.0"
|
|
3171
3171
|
};
|
|
3172
3172
|
var pkgJson;
|
|
3173
3173
|
if (require.main == null) {
|
|
@@ -80378,9 +80378,9 @@ var require_dir_glob = __commonJS({
|
|
|
80378
80378
|
}
|
|
80379
80379
|
});
|
|
80380
80380
|
|
|
80381
|
-
// ../../node_modules/.pnpm/ignore@5.
|
|
80381
|
+
// ../../node_modules/.pnpm/ignore@5.2.0/node_modules/ignore/index.js
|
|
80382
80382
|
var require_ignore = __commonJS({
|
|
80383
|
-
"../../node_modules/.pnpm/ignore@5.
|
|
80383
|
+
"../../node_modules/.pnpm/ignore@5.2.0/node_modules/ignore/index.js"(exports2, module2) {
|
|
80384
80384
|
function makeArray(subject) {
|
|
80385
80385
|
return Array.isArray(subject) ? subject : [subject];
|
|
80386
80386
|
}
|
|
@@ -80396,6 +80396,7 @@ var require_ignore = __commonJS({
|
|
|
80396
80396
|
var KEY_IGNORE = typeof Symbol !== "undefined" ? Symbol.for("node-ignore") : "node-ignore";
|
|
80397
80397
|
var define2 = (object, key, value) => Object.defineProperty(object, key, { value });
|
|
80398
80398
|
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
80399
|
+
var RETURN_FALSE = () => false;
|
|
80399
80400
|
var sanitizeRange = (range) => range.replace(REGEX_REGEXP_RANGE, (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY);
|
|
80400
80401
|
var cleanRangeBackSlash = (slashes) => {
|
|
80401
80402
|
const { length } = slashes;
|
|
@@ -80469,13 +80470,13 @@ var require_ignore = __commonJS({
|
|
|
80469
80470
|
]
|
|
80470
80471
|
];
|
|
80471
80472
|
var regexCache = Object.create(null);
|
|
80472
|
-
var makeRegex = (pattern,
|
|
80473
|
+
var makeRegex = (pattern, ignoreCase) => {
|
|
80473
80474
|
let source = regexCache[pattern];
|
|
80474
80475
|
if (!source) {
|
|
80475
80476
|
source = REPLACERS.reduce((prev, current) => prev.replace(current[0], current[1].bind(pattern)), pattern);
|
|
80476
80477
|
regexCache[pattern] = source;
|
|
80477
80478
|
}
|
|
80478
|
-
return
|
|
80479
|
+
return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
|
|
80479
80480
|
};
|
|
80480
80481
|
var isString2 = (subject) => typeof subject === "string";
|
|
80481
80482
|
var checkPattern = (pattern) => pattern && isString2(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && pattern.indexOf("#") !== 0;
|
|
@@ -80488,7 +80489,7 @@ var require_ignore = __commonJS({
|
|
|
80488
80489
|
this.regex = regex;
|
|
80489
80490
|
}
|
|
80490
80491
|
};
|
|
80491
|
-
var createRule = (pattern,
|
|
80492
|
+
var createRule = (pattern, ignoreCase) => {
|
|
80492
80493
|
const origin = pattern;
|
|
80493
80494
|
let negative = false;
|
|
80494
80495
|
if (pattern.indexOf("!") === 0) {
|
|
@@ -80496,7 +80497,7 @@ var require_ignore = __commonJS({
|
|
|
80496
80497
|
pattern = pattern.substr(1);
|
|
80497
80498
|
}
|
|
80498
80499
|
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
80499
|
-
const regex = makeRegex(pattern,
|
|
80500
|
+
const regex = makeRegex(pattern, ignoreCase);
|
|
80500
80501
|
return new IgnoreRule(origin, pattern, negative, regex);
|
|
80501
80502
|
};
|
|
80502
80503
|
var throwError = (message2, Ctor) => {
|
|
@@ -80520,11 +80521,14 @@ var require_ignore = __commonJS({
|
|
|
80520
80521
|
checkPath.convert = (p) => p;
|
|
80521
80522
|
var Ignore = class {
|
|
80522
80523
|
constructor({
|
|
80523
|
-
ignorecase = true
|
|
80524
|
+
ignorecase = true,
|
|
80525
|
+
ignoreCase = ignorecase,
|
|
80526
|
+
allowRelativePaths = false
|
|
80524
80527
|
} = {}) {
|
|
80525
80528
|
define2(this, KEY_IGNORE, true);
|
|
80526
80529
|
this._rules = [];
|
|
80527
|
-
this.
|
|
80530
|
+
this._ignoreCase = ignoreCase;
|
|
80531
|
+
this._allowRelativePaths = allowRelativePaths;
|
|
80528
80532
|
this._initCache();
|
|
80529
80533
|
}
|
|
80530
80534
|
_initCache() {
|
|
@@ -80538,7 +80542,7 @@ var require_ignore = __commonJS({
|
|
|
80538
80542
|
return;
|
|
80539
80543
|
}
|
|
80540
80544
|
if (checkPattern(pattern)) {
|
|
80541
|
-
const rule = createRule(pattern, this.
|
|
80545
|
+
const rule = createRule(pattern, this._ignoreCase);
|
|
80542
80546
|
this._added = true;
|
|
80543
80547
|
this._rules.push(rule);
|
|
80544
80548
|
}
|
|
@@ -80575,7 +80579,7 @@ var require_ignore = __commonJS({
|
|
|
80575
80579
|
}
|
|
80576
80580
|
_test(originalPath, cache, checkUnignored, slices) {
|
|
80577
80581
|
const path2 = originalPath && checkPath.convert(originalPath);
|
|
80578
|
-
checkPath(path2, originalPath, throwError);
|
|
80582
|
+
checkPath(path2, originalPath, this._allowRelativePaths ? RETURN_FALSE : throwError);
|
|
80579
80583
|
return this._t(path2, cache, checkUnignored, slices);
|
|
80580
80584
|
}
|
|
80581
80585
|
_t(path2, cache, checkUnignored, slices) {
|
|
@@ -80606,8 +80610,7 @@ var require_ignore = __commonJS({
|
|
|
80606
80610
|
}
|
|
80607
80611
|
};
|
|
80608
80612
|
var factory = (options) => new Ignore(options);
|
|
80609
|
-
var
|
|
80610
|
-
var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, returnFalse);
|
|
80613
|
+
var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE);
|
|
80611
80614
|
factory.isPathValid = isPathValid;
|
|
80612
80615
|
factory.default = factory;
|
|
80613
80616
|
module2.exports = factory;
|
|
@@ -87498,8 +87501,9 @@ var require_sortLockfileKeys = __commonJS({
|
|
|
87498
87501
|
dependencies: 11,
|
|
87499
87502
|
optionalDependencies: 12,
|
|
87500
87503
|
devDependencies: 13,
|
|
87501
|
-
|
|
87502
|
-
|
|
87504
|
+
dependenciesMeta: 14,
|
|
87505
|
+
importers: 15,
|
|
87506
|
+
packages: 16
|
|
87503
87507
|
};
|
|
87504
87508
|
function compareWithPriority(priority, left, right) {
|
|
87505
87509
|
const leftPriority = priority[left];
|
|
@@ -87946,7 +87950,8 @@ var require_read = __commonJS({
|
|
|
87946
87950
|
if (typeof (lockfile === null || lockfile === void 0 ? void 0 : lockfile["specifiers"]) !== "undefined") {
|
|
87947
87951
|
lockfile.importers = {
|
|
87948
87952
|
".": {
|
|
87949
|
-
specifiers: lockfile["specifiers"]
|
|
87953
|
+
specifiers: lockfile["specifiers"],
|
|
87954
|
+
dependenciesMeta: lockfile["dependenciesMeta"]
|
|
87950
87955
|
}
|
|
87951
87956
|
};
|
|
87952
87957
|
delete lockfile.specifiers;
|
|
@@ -111912,7 +111917,9 @@ var require_lib89 = __commonJS({
|
|
|
111912
111917
|
if (!opts.ignorePackageManifest) {
|
|
111913
111918
|
for (const { id, manifest, rootDir } of opts.projects) {
|
|
111914
111919
|
if (!(0, lockfile_utils_1.satisfiesPackageManifest)(wantedLockfile, manifest, id)) {
|
|
111915
|
-
throw new error_1.default("OUTDATED_LOCKFILE", `Cannot install with "frozen-lockfile" because ${constants_1.WANTED_LOCKFILE} is not up-to-date with ` + path_1.default.relative(lockfileDir, path_1.default.join(rootDir, "package.json"))
|
|
111920
|
+
throw new error_1.default("OUTDATED_LOCKFILE", `Cannot install with "frozen-lockfile" because ${constants_1.WANTED_LOCKFILE} is not up-to-date with ` + path_1.default.relative(lockfileDir, path_1.default.join(rootDir, "package.json")), {
|
|
111921
|
+
hint: 'Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"'
|
|
111922
|
+
});
|
|
111916
111923
|
}
|
|
111917
111924
|
}
|
|
111918
111925
|
}
|
|
@@ -116376,7 +116383,9 @@ var require_install = __commonJS({
|
|
|
116376
116383
|
workspacePackages: opts.workspacePackages
|
|
116377
116384
|
}))) {
|
|
116378
116385
|
if (needsFullResolution) {
|
|
116379
|
-
throw new error_1.default("FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE", "Cannot perform a frozen installation because the lockfile needs updates"
|
|
116386
|
+
throw new error_1.default("FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE", "Cannot perform a frozen installation because the lockfile needs updates", {
|
|
116387
|
+
hint: 'Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"'
|
|
116388
|
+
});
|
|
116380
116389
|
}
|
|
116381
116390
|
if (!ctx.existsWantedLockfile) {
|
|
116382
116391
|
if (ctx.projects.some((project) => pkgHasDependencies(project.manifest))) {
|
|
@@ -118954,8 +118963,8 @@ var require_install2 = __commonJS({
|
|
|
118954
118963
|
name: "--lockfile-only"
|
|
118955
118964
|
},
|
|
118956
118965
|
{
|
|
118957
|
-
description: "Don't generate a lockfile and fail if an update is needed",
|
|
118958
|
-
name: "--frozen-lockfile"
|
|
118966
|
+
description: "Don't generate a lockfile and fail if an update is needed. This setting is on by default in CI environments, so use --no-frozen-lockfile if you need to disable it for some reason",
|
|
118967
|
+
name: "--[no-]frozen-lockfile"
|
|
118959
118968
|
},
|
|
118960
118969
|
{
|
|
118961
118970
|
description: `If the available \`${constants_1.WANTED_LOCKFILE}\` satisfies the \`package.json\` then perform a headless installation`,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pnpm",
|
|
3
3
|
"description": "Fast, disk space efficient package manager",
|
|
4
|
-
"version": "6.24.
|
|
4
|
+
"version": "6.24.3",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@pnpm/nopt": "^0.2.1",
|
|
41
41
|
"@pnpm/parse-cli-args": "workspace:4.3.0",
|
|
42
42
|
"@pnpm/pick-registry-for-package": "workspace:2.0.8",
|
|
43
|
-
"@pnpm/plugin-commands-audit": "workspace:5.1.
|
|
43
|
+
"@pnpm/plugin-commands-audit": "workspace:5.1.30",
|
|
44
44
|
"@pnpm/plugin-commands-env": "workspace:1.4.0",
|
|
45
|
-
"@pnpm/plugin-commands-installation": "workspace:8.0.
|
|
46
|
-
"@pnpm/plugin-commands-listing": "workspace:4.0.
|
|
47
|
-
"@pnpm/plugin-commands-outdated": "workspace:5.0.
|
|
45
|
+
"@pnpm/plugin-commands-installation": "workspace:8.0.6",
|
|
46
|
+
"@pnpm/plugin-commands-listing": "workspace:4.0.31",
|
|
47
|
+
"@pnpm/plugin-commands-outdated": "workspace:5.0.40",
|
|
48
48
|
"@pnpm/plugin-commands-publishing": "workspace:4.2.36",
|
|
49
|
-
"@pnpm/plugin-commands-rebuild": "workspace:5.3.
|
|
49
|
+
"@pnpm/plugin-commands-rebuild": "workspace:5.3.9",
|
|
50
50
|
"@pnpm/plugin-commands-script-runners": "workspace:4.5.8",
|
|
51
51
|
"@pnpm/plugin-commands-server": "workspace:3.0.56",
|
|
52
52
|
"@pnpm/plugin-commands-setup": "workspace:1.1.24",
|
|
53
|
-
"@pnpm/plugin-commands-store": "workspace:4.0.
|
|
53
|
+
"@pnpm/plugin-commands-store": "workspace:4.0.41",
|
|
54
54
|
"@pnpm/prepare": "workspace:0.0.30",
|
|
55
55
|
"@pnpm/read-package-json": "workspace:5.0.8",
|
|
56
56
|
"@pnpm/read-project-manifest": "workspace:2.0.9",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zkochan/libnpx": "^13.1.5",
|
|
72
72
|
"@zkochan/retry": "^0.2.0",
|
|
73
73
|
"@zkochan/rimraf": "^2.1.1",
|
|
74
|
-
"anonymous-npm-registry-client": "0.
|
|
74
|
+
"anonymous-npm-registry-client": "0.2.0",
|
|
75
75
|
"chalk": "^4.1.0",
|
|
76
76
|
"cross-spawn": "^7.0.3",
|
|
77
77
|
"cross-var-no-babel": "^1.2.0",
|