pnpm 7.13.2 → 7.13.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/bin/pnpm.cjs +1 -0
- package/dist/node_modules/.modules.yaml +2 -2
- package/dist/pnpm.cjs +235 -125
- package/package.json +1 -1
package/bin/pnpm.cjs
CHANGED
|
@@ -7,11 +7,11 @@ included:
|
|
|
7
7
|
injectedDeps: {}
|
|
8
8
|
layoutVersion: 5
|
|
9
9
|
nodeLinker: hoisted
|
|
10
|
-
packageManager: pnpm@7.13.
|
|
10
|
+
packageManager: pnpm@7.13.2
|
|
11
11
|
pendingBuilds:
|
|
12
12
|
- /node-gyp/9.2.0
|
|
13
13
|
- /encoding/0.1.13
|
|
14
|
-
prunedAt:
|
|
14
|
+
prunedAt: Sun, 09 Oct 2022 13:46:14 GMT
|
|
15
15
|
publicHoistPattern:
|
|
16
16
|
- '*eslint*'
|
|
17
17
|
- '*prettier*'
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3206,7 +3206,7 @@ var require_lib4 = __commonJS({
|
|
|
3206
3206
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3207
3207
|
var defaultManifest = {
|
|
3208
3208
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3209
|
-
version: "7.13.
|
|
3209
|
+
version: "7.13.3" != null && true ? "7.13.3" : "0.0.0"
|
|
3210
3210
|
};
|
|
3211
3211
|
var pkgJson;
|
|
3212
3212
|
if (require.main == null) {
|
|
@@ -14386,6 +14386,20 @@ var require_updateCheckLogger = __commonJS({
|
|
|
14386
14386
|
}
|
|
14387
14387
|
});
|
|
14388
14388
|
|
|
14389
|
+
// ../core-loggers/lib/executionTimeLogger.js
|
|
14390
|
+
var require_executionTimeLogger = __commonJS({
|
|
14391
|
+
"../core-loggers/lib/executionTimeLogger.js"(exports2) {
|
|
14392
|
+
"use strict";
|
|
14393
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
14394
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
14395
|
+
};
|
|
14396
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14397
|
+
exports2.executionTimeLogger = void 0;
|
|
14398
|
+
var logger_1 = __importDefault(require_lib6());
|
|
14399
|
+
exports2.executionTimeLogger = (0, logger_1.default)("execution-time");
|
|
14400
|
+
}
|
|
14401
|
+
});
|
|
14402
|
+
|
|
14389
14403
|
// ../core-loggers/lib/all.js
|
|
14390
14404
|
var require_all = __commonJS({
|
|
14391
14405
|
"../core-loggers/lib/all.js"(exports2) {
|
|
@@ -14432,6 +14446,7 @@ var require_all = __commonJS({
|
|
|
14432
14446
|
__exportStar(require_statsLogger(), exports2);
|
|
14433
14447
|
__exportStar(require_summaryLogger(), exports2);
|
|
14434
14448
|
__exportStar(require_updateCheckLogger(), exports2);
|
|
14449
|
+
__exportStar(require_executionTimeLogger(), exports2);
|
|
14435
14450
|
}
|
|
14436
14451
|
});
|
|
14437
14452
|
|
|
@@ -34838,6 +34853,175 @@ var require_reportContext = __commonJS({
|
|
|
34838
34853
|
}
|
|
34839
34854
|
});
|
|
34840
34855
|
|
|
34856
|
+
// ../../node_modules/.pnpm/parse-ms@2.1.0/node_modules/parse-ms/index.js
|
|
34857
|
+
var require_parse_ms = __commonJS({
|
|
34858
|
+
"../../node_modules/.pnpm/parse-ms@2.1.0/node_modules/parse-ms/index.js"(exports2, module2) {
|
|
34859
|
+
"use strict";
|
|
34860
|
+
module2.exports = (milliseconds) => {
|
|
34861
|
+
if (typeof milliseconds !== "number") {
|
|
34862
|
+
throw new TypeError("Expected a number");
|
|
34863
|
+
}
|
|
34864
|
+
const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
|
|
34865
|
+
return {
|
|
34866
|
+
days: roundTowardsZero(milliseconds / 864e5),
|
|
34867
|
+
hours: roundTowardsZero(milliseconds / 36e5) % 24,
|
|
34868
|
+
minutes: roundTowardsZero(milliseconds / 6e4) % 60,
|
|
34869
|
+
seconds: roundTowardsZero(milliseconds / 1e3) % 60,
|
|
34870
|
+
milliseconds: roundTowardsZero(milliseconds) % 1e3,
|
|
34871
|
+
microseconds: roundTowardsZero(milliseconds * 1e3) % 1e3,
|
|
34872
|
+
nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1e3
|
|
34873
|
+
};
|
|
34874
|
+
};
|
|
34875
|
+
}
|
|
34876
|
+
});
|
|
34877
|
+
|
|
34878
|
+
// ../../node_modules/.pnpm/pretty-ms@7.0.1/node_modules/pretty-ms/index.js
|
|
34879
|
+
var require_pretty_ms = __commonJS({
|
|
34880
|
+
"../../node_modules/.pnpm/pretty-ms@7.0.1/node_modules/pretty-ms/index.js"(exports2, module2) {
|
|
34881
|
+
"use strict";
|
|
34882
|
+
var parseMilliseconds = require_parse_ms();
|
|
34883
|
+
var pluralize = (word, count) => count === 1 ? word : `${word}s`;
|
|
34884
|
+
var SECOND_ROUNDING_EPSILON = 1e-7;
|
|
34885
|
+
module2.exports = (milliseconds, options = {}) => {
|
|
34886
|
+
if (!Number.isFinite(milliseconds)) {
|
|
34887
|
+
throw new TypeError("Expected a finite number");
|
|
34888
|
+
}
|
|
34889
|
+
if (options.colonNotation) {
|
|
34890
|
+
options.compact = false;
|
|
34891
|
+
options.formatSubMilliseconds = false;
|
|
34892
|
+
options.separateMilliseconds = false;
|
|
34893
|
+
options.verbose = false;
|
|
34894
|
+
}
|
|
34895
|
+
if (options.compact) {
|
|
34896
|
+
options.secondsDecimalDigits = 0;
|
|
34897
|
+
options.millisecondsDecimalDigits = 0;
|
|
34898
|
+
}
|
|
34899
|
+
const result2 = [];
|
|
34900
|
+
const floorDecimals = (value, decimalDigits) => {
|
|
34901
|
+
const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
|
|
34902
|
+
const flooredValue = Math.round(flooredInterimValue) / 10 ** decimalDigits;
|
|
34903
|
+
return flooredValue.toFixed(decimalDigits);
|
|
34904
|
+
};
|
|
34905
|
+
const add = (value, long, short, valueString) => {
|
|
34906
|
+
if ((result2.length === 0 || !options.colonNotation) && value === 0 && !(options.colonNotation && short === "m")) {
|
|
34907
|
+
return;
|
|
34908
|
+
}
|
|
34909
|
+
valueString = (valueString || value || "0").toString();
|
|
34910
|
+
let prefix;
|
|
34911
|
+
let suffix;
|
|
34912
|
+
if (options.colonNotation) {
|
|
34913
|
+
prefix = result2.length > 0 ? ":" : "";
|
|
34914
|
+
suffix = "";
|
|
34915
|
+
const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
|
|
34916
|
+
const minLength = result2.length > 0 ? 2 : 1;
|
|
34917
|
+
valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
34918
|
+
} else {
|
|
34919
|
+
prefix = "";
|
|
34920
|
+
suffix = options.verbose ? " " + pluralize(long, value) : short;
|
|
34921
|
+
}
|
|
34922
|
+
result2.push(prefix + valueString + suffix);
|
|
34923
|
+
};
|
|
34924
|
+
const parsed = parseMilliseconds(milliseconds);
|
|
34925
|
+
add(Math.trunc(parsed.days / 365), "year", "y");
|
|
34926
|
+
add(parsed.days % 365, "day", "d");
|
|
34927
|
+
add(parsed.hours, "hour", "h");
|
|
34928
|
+
add(parsed.minutes, "minute", "m");
|
|
34929
|
+
if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
34930
|
+
add(parsed.seconds, "second", "s");
|
|
34931
|
+
if (options.formatSubMilliseconds) {
|
|
34932
|
+
add(parsed.milliseconds, "millisecond", "ms");
|
|
34933
|
+
add(parsed.microseconds, "microsecond", "\xB5s");
|
|
34934
|
+
add(parsed.nanoseconds, "nanosecond", "ns");
|
|
34935
|
+
} else {
|
|
34936
|
+
const millisecondsAndBelow = parsed.milliseconds + parsed.microseconds / 1e3 + parsed.nanoseconds / 1e6;
|
|
34937
|
+
const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
|
|
34938
|
+
const roundedMiliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
34939
|
+
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMiliseconds;
|
|
34940
|
+
add(
|
|
34941
|
+
Number.parseFloat(millisecondsString, 10),
|
|
34942
|
+
"millisecond",
|
|
34943
|
+
"ms",
|
|
34944
|
+
millisecondsString
|
|
34945
|
+
);
|
|
34946
|
+
}
|
|
34947
|
+
} else {
|
|
34948
|
+
const seconds = milliseconds / 1e3 % 60;
|
|
34949
|
+
const secondsDecimalDigits = typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1;
|
|
34950
|
+
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
34951
|
+
const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
|
|
34952
|
+
add(Number.parseFloat(secondsString, 10), "second", "s", secondsString);
|
|
34953
|
+
}
|
|
34954
|
+
if (result2.length === 0) {
|
|
34955
|
+
return "0" + (options.verbose ? " milliseconds" : "ms");
|
|
34956
|
+
}
|
|
34957
|
+
if (options.compact) {
|
|
34958
|
+
return result2[0];
|
|
34959
|
+
}
|
|
34960
|
+
if (typeof options.unitCount === "number") {
|
|
34961
|
+
const separator = options.colonNotation ? "" : " ";
|
|
34962
|
+
return result2.slice(0, Math.max(options.unitCount, 1)).join(separator);
|
|
34963
|
+
}
|
|
34964
|
+
return options.colonNotation ? result2.join("") : result2.join(" ");
|
|
34965
|
+
};
|
|
34966
|
+
}
|
|
34967
|
+
});
|
|
34968
|
+
|
|
34969
|
+
// ../default-reporter/lib/reporterForClient/reportExecutionTime.js
|
|
34970
|
+
var require_reportExecutionTime = __commonJS({
|
|
34971
|
+
"../default-reporter/lib/reporterForClient/reportExecutionTime.js"(exports2) {
|
|
34972
|
+
"use strict";
|
|
34973
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
34974
|
+
if (k2 === void 0)
|
|
34975
|
+
k2 = k;
|
|
34976
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
34977
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
34978
|
+
desc = { enumerable: true, get: function() {
|
|
34979
|
+
return m[k];
|
|
34980
|
+
} };
|
|
34981
|
+
}
|
|
34982
|
+
Object.defineProperty(o, k2, desc);
|
|
34983
|
+
} : function(o, m, k, k2) {
|
|
34984
|
+
if (k2 === void 0)
|
|
34985
|
+
k2 = k;
|
|
34986
|
+
o[k2] = m[k];
|
|
34987
|
+
});
|
|
34988
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
34989
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34990
|
+
} : function(o, v) {
|
|
34991
|
+
o["default"] = v;
|
|
34992
|
+
});
|
|
34993
|
+
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
34994
|
+
if (mod && mod.__esModule)
|
|
34995
|
+
return mod;
|
|
34996
|
+
var result2 = {};
|
|
34997
|
+
if (mod != null) {
|
|
34998
|
+
for (var k in mod)
|
|
34999
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
35000
|
+
__createBinding2(result2, mod, k);
|
|
35001
|
+
}
|
|
35002
|
+
__setModuleDefault2(result2, mod);
|
|
35003
|
+
return result2;
|
|
35004
|
+
};
|
|
35005
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
35006
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35007
|
+
};
|
|
35008
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
35009
|
+
exports2.reportExecutionTime = void 0;
|
|
35010
|
+
var pretty_ms_1 = __importDefault(require_pretty_ms());
|
|
35011
|
+
var Rx = __importStar2(require_cjs());
|
|
35012
|
+
var operators_1 = require_operators();
|
|
35013
|
+
function reportExecutionTime(executionTime$) {
|
|
35014
|
+
return executionTime$.pipe((0, operators_1.take)(1), (0, operators_1.map)((log2) => {
|
|
35015
|
+
return Rx.of({
|
|
35016
|
+
fixed: true,
|
|
35017
|
+
msg: `Done in ${(0, pretty_ms_1.default)(log2.endedAt - log2.startedAt)}`
|
|
35018
|
+
});
|
|
35019
|
+
}));
|
|
35020
|
+
}
|
|
35021
|
+
exports2.reportExecutionTime = reportExecutionTime;
|
|
35022
|
+
}
|
|
35023
|
+
});
|
|
35024
|
+
|
|
34841
35025
|
// ../default-reporter/lib/reporterForClient/utils/formatWarn.js
|
|
34842
35026
|
var require_formatWarn = __commonJS({
|
|
34843
35027
|
"../default-reporter/lib/reporterForClient/utils/formatWarn.js"(exports2) {
|
|
@@ -35117,119 +35301,6 @@ var require_reportInstallChecks = __commonJS({
|
|
|
35117
35301
|
}
|
|
35118
35302
|
});
|
|
35119
35303
|
|
|
35120
|
-
// ../../node_modules/.pnpm/parse-ms@2.1.0/node_modules/parse-ms/index.js
|
|
35121
|
-
var require_parse_ms = __commonJS({
|
|
35122
|
-
"../../node_modules/.pnpm/parse-ms@2.1.0/node_modules/parse-ms/index.js"(exports2, module2) {
|
|
35123
|
-
"use strict";
|
|
35124
|
-
module2.exports = (milliseconds) => {
|
|
35125
|
-
if (typeof milliseconds !== "number") {
|
|
35126
|
-
throw new TypeError("Expected a number");
|
|
35127
|
-
}
|
|
35128
|
-
const roundTowardsZero = milliseconds > 0 ? Math.floor : Math.ceil;
|
|
35129
|
-
return {
|
|
35130
|
-
days: roundTowardsZero(milliseconds / 864e5),
|
|
35131
|
-
hours: roundTowardsZero(milliseconds / 36e5) % 24,
|
|
35132
|
-
minutes: roundTowardsZero(milliseconds / 6e4) % 60,
|
|
35133
|
-
seconds: roundTowardsZero(milliseconds / 1e3) % 60,
|
|
35134
|
-
milliseconds: roundTowardsZero(milliseconds) % 1e3,
|
|
35135
|
-
microseconds: roundTowardsZero(milliseconds * 1e3) % 1e3,
|
|
35136
|
-
nanoseconds: roundTowardsZero(milliseconds * 1e6) % 1e3
|
|
35137
|
-
};
|
|
35138
|
-
};
|
|
35139
|
-
}
|
|
35140
|
-
});
|
|
35141
|
-
|
|
35142
|
-
// ../../node_modules/.pnpm/pretty-ms@7.0.1/node_modules/pretty-ms/index.js
|
|
35143
|
-
var require_pretty_ms = __commonJS({
|
|
35144
|
-
"../../node_modules/.pnpm/pretty-ms@7.0.1/node_modules/pretty-ms/index.js"(exports2, module2) {
|
|
35145
|
-
"use strict";
|
|
35146
|
-
var parseMilliseconds = require_parse_ms();
|
|
35147
|
-
var pluralize = (word, count) => count === 1 ? word : `${word}s`;
|
|
35148
|
-
var SECOND_ROUNDING_EPSILON = 1e-7;
|
|
35149
|
-
module2.exports = (milliseconds, options = {}) => {
|
|
35150
|
-
if (!Number.isFinite(milliseconds)) {
|
|
35151
|
-
throw new TypeError("Expected a finite number");
|
|
35152
|
-
}
|
|
35153
|
-
if (options.colonNotation) {
|
|
35154
|
-
options.compact = false;
|
|
35155
|
-
options.formatSubMilliseconds = false;
|
|
35156
|
-
options.separateMilliseconds = false;
|
|
35157
|
-
options.verbose = false;
|
|
35158
|
-
}
|
|
35159
|
-
if (options.compact) {
|
|
35160
|
-
options.secondsDecimalDigits = 0;
|
|
35161
|
-
options.millisecondsDecimalDigits = 0;
|
|
35162
|
-
}
|
|
35163
|
-
const result2 = [];
|
|
35164
|
-
const floorDecimals = (value, decimalDigits) => {
|
|
35165
|
-
const flooredInterimValue = Math.floor(value * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON);
|
|
35166
|
-
const flooredValue = Math.round(flooredInterimValue) / 10 ** decimalDigits;
|
|
35167
|
-
return flooredValue.toFixed(decimalDigits);
|
|
35168
|
-
};
|
|
35169
|
-
const add = (value, long, short, valueString) => {
|
|
35170
|
-
if ((result2.length === 0 || !options.colonNotation) && value === 0 && !(options.colonNotation && short === "m")) {
|
|
35171
|
-
return;
|
|
35172
|
-
}
|
|
35173
|
-
valueString = (valueString || value || "0").toString();
|
|
35174
|
-
let prefix;
|
|
35175
|
-
let suffix;
|
|
35176
|
-
if (options.colonNotation) {
|
|
35177
|
-
prefix = result2.length > 0 ? ":" : "";
|
|
35178
|
-
suffix = "";
|
|
35179
|
-
const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
|
|
35180
|
-
const minLength = result2.length > 0 ? 2 : 1;
|
|
35181
|
-
valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString;
|
|
35182
|
-
} else {
|
|
35183
|
-
prefix = "";
|
|
35184
|
-
suffix = options.verbose ? " " + pluralize(long, value) : short;
|
|
35185
|
-
}
|
|
35186
|
-
result2.push(prefix + valueString + suffix);
|
|
35187
|
-
};
|
|
35188
|
-
const parsed = parseMilliseconds(milliseconds);
|
|
35189
|
-
add(Math.trunc(parsed.days / 365), "year", "y");
|
|
35190
|
-
add(parsed.days % 365, "day", "d");
|
|
35191
|
-
add(parsed.hours, "hour", "h");
|
|
35192
|
-
add(parsed.minutes, "minute", "m");
|
|
35193
|
-
if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
|
|
35194
|
-
add(parsed.seconds, "second", "s");
|
|
35195
|
-
if (options.formatSubMilliseconds) {
|
|
35196
|
-
add(parsed.milliseconds, "millisecond", "ms");
|
|
35197
|
-
add(parsed.microseconds, "microsecond", "\xB5s");
|
|
35198
|
-
add(parsed.nanoseconds, "nanosecond", "ns");
|
|
35199
|
-
} else {
|
|
35200
|
-
const millisecondsAndBelow = parsed.milliseconds + parsed.microseconds / 1e3 + parsed.nanoseconds / 1e6;
|
|
35201
|
-
const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
|
|
35202
|
-
const roundedMiliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
|
|
35203
|
-
const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMiliseconds;
|
|
35204
|
-
add(
|
|
35205
|
-
Number.parseFloat(millisecondsString, 10),
|
|
35206
|
-
"millisecond",
|
|
35207
|
-
"ms",
|
|
35208
|
-
millisecondsString
|
|
35209
|
-
);
|
|
35210
|
-
}
|
|
35211
|
-
} else {
|
|
35212
|
-
const seconds = milliseconds / 1e3 % 60;
|
|
35213
|
-
const secondsDecimalDigits = typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1;
|
|
35214
|
-
const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
|
|
35215
|
-
const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
|
|
35216
|
-
add(Number.parseFloat(secondsString, 10), "second", "s", secondsString);
|
|
35217
|
-
}
|
|
35218
|
-
if (result2.length === 0) {
|
|
35219
|
-
return "0" + (options.verbose ? " milliseconds" : "ms");
|
|
35220
|
-
}
|
|
35221
|
-
if (options.compact) {
|
|
35222
|
-
return result2[0];
|
|
35223
|
-
}
|
|
35224
|
-
if (typeof options.unitCount === "number") {
|
|
35225
|
-
const separator = options.colonNotation ? "" : " ";
|
|
35226
|
-
return result2.slice(0, Math.max(options.unitCount, 1)).join(separator);
|
|
35227
|
-
}
|
|
35228
|
-
return options.colonNotation ? result2.join("") : result2.join(" ");
|
|
35229
|
-
};
|
|
35230
|
-
}
|
|
35231
|
-
});
|
|
35232
|
-
|
|
35233
35304
|
// ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
35234
35305
|
var require_ansi_regex2 = __commonJS({
|
|
35235
35306
|
"../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
|
|
@@ -43012,6 +43083,7 @@ var require_reporterForClient = __commonJS({
|
|
|
43012
43083
|
var operators_1 = require_operators();
|
|
43013
43084
|
var reportBigTarballsProgress_1 = __importDefault(require_reportBigTarballsProgress());
|
|
43014
43085
|
var reportContext_1 = __importDefault(require_reportContext());
|
|
43086
|
+
var reportExecutionTime_1 = require_reportExecutionTime();
|
|
43015
43087
|
var reportDeprecations_1 = __importDefault(require_reportDeprecations());
|
|
43016
43088
|
var reportHooks_1 = __importDefault(require_reportHooks());
|
|
43017
43089
|
var reportInstallChecks_1 = __importDefault(require_reportInstallChecks());
|
|
@@ -43025,6 +43097,12 @@ var require_reporterForClient = __commonJS({
|
|
|
43025
43097
|
var reportStats_1 = __importDefault(require_reportStats());
|
|
43026
43098
|
var reportSummary_1 = __importDefault(require_reportSummary());
|
|
43027
43099
|
var reportUpdateCheck_1 = __importDefault(require_reportUpdateCheck());
|
|
43100
|
+
var PRINT_EXECUTION_TIME_IN_COMMANDS = {
|
|
43101
|
+
install: true,
|
|
43102
|
+
update: true,
|
|
43103
|
+
add: true,
|
|
43104
|
+
remove: true
|
|
43105
|
+
};
|
|
43028
43106
|
function default_1(log$, opts) {
|
|
43029
43107
|
const width = opts.width ?? process.stdout.columns ?? 80;
|
|
43030
43108
|
const cwd = opts.pnpmConfig?.dir ?? process.cwd();
|
|
@@ -43050,6 +43128,9 @@ var require_reporterForClient = __commonJS({
|
|
|
43050
43128
|
(0, reportContext_1.default)(log$, { cwd }),
|
|
43051
43129
|
(0, reportUpdateCheck_1.default)(log$.updateCheck, opts)
|
|
43052
43130
|
];
|
|
43131
|
+
if (PRINT_EXECUTION_TIME_IN_COMMANDS[opts.cmd]) {
|
|
43132
|
+
outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime));
|
|
43133
|
+
}
|
|
43053
43134
|
const logLevelNumber = reportMisc_1.LOG_LEVEL_NUMBER[opts.logLevel ?? "info"] ?? reportMisc_1.LOG_LEVEL_NUMBER["info"];
|
|
43054
43135
|
if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.warn) {
|
|
43055
43136
|
outputs.push((0, reportPeerDependencyIssues_1.default)(log$), (0, reportDeprecations_1.default)(log$.deprecation, { cwd, isRecursive: opts.isRecursive }), (0, reportRequestRetry_1.default)(log$.requestRetry));
|
|
@@ -43219,6 +43300,7 @@ var require_lib20 = __commonJS({
|
|
|
43219
43300
|
opts = opts || {};
|
|
43220
43301
|
const contextPushStream = new Rx.Subject();
|
|
43221
43302
|
const fetchingProgressPushStream = new Rx.Subject();
|
|
43303
|
+
const executionTimePushStream = new Rx.Subject();
|
|
43222
43304
|
const progressPushStream = new Rx.Subject();
|
|
43223
43305
|
const stagePushStream = new Rx.Subject();
|
|
43224
43306
|
const deprecationPushStream = new Rx.Subject();
|
|
@@ -43244,6 +43326,9 @@ var require_lib20 = __commonJS({
|
|
|
43244
43326
|
case "pnpm:context":
|
|
43245
43327
|
contextPushStream.next(log2);
|
|
43246
43328
|
break;
|
|
43329
|
+
case "pnpm:execution-time":
|
|
43330
|
+
executionTimePushStream.next(log2);
|
|
43331
|
+
break;
|
|
43247
43332
|
case "pnpm:fetching-progress":
|
|
43248
43333
|
fetchingProgressPushStream.next(log2);
|
|
43249
43334
|
break;
|
|
@@ -43320,6 +43405,7 @@ var require_lib20 = __commonJS({
|
|
|
43320
43405
|
context: Rx.from(contextPushStream),
|
|
43321
43406
|
deprecation: Rx.from(deprecationPushStream),
|
|
43322
43407
|
fetchingProgress: Rx.from(fetchingProgressPushStream),
|
|
43408
|
+
executionTime: Rx.from(executionTimePushStream),
|
|
43323
43409
|
hook: Rx.from(hookPushStream),
|
|
43324
43410
|
installCheck: Rx.from(installCheckPushStream),
|
|
43325
43411
|
lifecycle: Rx.from(lifecyclePushStream),
|
|
@@ -131872,7 +131958,10 @@ var require_resolveDependencies = __commonJS({
|
|
|
131872
131958
|
resolveDependencyResult,
|
|
131873
131959
|
postponedResolution: async (postponedResolutionOpts) => {
|
|
131874
131960
|
const { missingPeers, resolvedPeers } = await postponedResolution(postponedResolutionOpts);
|
|
131875
|
-
resolveDependencyResult.missingPeersOfChildren
|
|
131961
|
+
if (resolveDependencyResult.missingPeersOfChildren) {
|
|
131962
|
+
resolveDependencyResult.missingPeersOfChildren.resolved = true;
|
|
131963
|
+
resolveDependencyResult.missingPeersOfChildren.resolve(missingPeers);
|
|
131964
|
+
}
|
|
131876
131965
|
return filterMissingPeers({ missingPeers, resolvedPeers }, postponedResolutionOpts.parentPkgAliases);
|
|
131877
131966
|
}
|
|
131878
131967
|
};
|
|
@@ -132157,6 +132246,8 @@ var require_resolveDependencies = __commonJS({
|
|
|
132157
132246
|
const parentIsInstallable = options.parentPkg.installable === void 0 || options.parentPkg.installable;
|
|
132158
132247
|
const installable = parentIsInstallable && pkgResponse.body.isInstallable !== false;
|
|
132159
132248
|
const isNew = !ctx.resolvedPackagesByDepPath[depPath];
|
|
132249
|
+
const parentImporterId = options.parentPkg.nodeId.substring(0, options.parentPkg.nodeId.indexOf(">", 1) + 1);
|
|
132250
|
+
let resolveChildren2 = false;
|
|
132160
132251
|
if (isNew) {
|
|
132161
132252
|
if (pkg.deprecated && (!ctx.allowedDeprecatedVersions[pkg.name] || !semver_12.default.satisfies(pkg.version, ctx.allowedDeprecatedVersions[pkg.name]))) {
|
|
132162
132253
|
core_loggers_1.deprecationLogger.debug({
|
|
@@ -132186,12 +132277,17 @@ var require_resolveDependencies = __commonJS({
|
|
|
132186
132277
|
pkg,
|
|
132187
132278
|
pkgResponse,
|
|
132188
132279
|
prepare,
|
|
132189
|
-
wantedDependency
|
|
132280
|
+
wantedDependency,
|
|
132281
|
+
parentImporterId
|
|
132190
132282
|
});
|
|
132191
132283
|
} else {
|
|
132192
132284
|
ctx.resolvedPackagesByDepPath[depPath].prod = ctx.resolvedPackagesByDepPath[depPath].prod || !wantedDependency.dev && !wantedDependency.optional;
|
|
132193
132285
|
ctx.resolvedPackagesByDepPath[depPath].dev = ctx.resolvedPackagesByDepPath[depPath].dev || wantedDependency.dev;
|
|
132194
132286
|
ctx.resolvedPackagesByDepPath[depPath].optional = ctx.resolvedPackagesByDepPath[depPath].optional && wantedDependency.optional;
|
|
132287
|
+
if (ctx.autoInstallPeers) {
|
|
132288
|
+
resolveChildren2 = !ctx.missingPeersOfChildrenByPkgId[pkgResponse.body.id].missingPeersOfChildren.resolved && !ctx.resolvedPackagesByDepPath[depPath].parentImporterIds.has(parentImporterId);
|
|
132289
|
+
ctx.resolvedPackagesByDepPath[depPath].parentImporterIds.add(parentImporterId);
|
|
132290
|
+
}
|
|
132195
132291
|
if (ctx.resolvedPackagesByDepPath[depPath].fetchingFiles == null && pkgResponse.files != null) {
|
|
132196
132292
|
ctx.resolvedPackagesByDepPath[depPath].fetchingFiles = pkgResponse.files;
|
|
132197
132293
|
ctx.resolvedPackagesByDepPath[depPath].filesIndexFile = pkgResponse.filesIndexFile;
|
|
@@ -132212,7 +132308,7 @@ var require_resolveDependencies = __commonJS({
|
|
|
132212
132308
|
}
|
|
132213
132309
|
const rootDir = pkgResponse.body.resolution.type === "directory" ? path_1.default.resolve(ctx.lockfileDir, pkgResponse.body.resolution["directory"]) : options.prefix;
|
|
132214
132310
|
let missingPeersOfChildren;
|
|
132215
|
-
if (!(0, nodeIdUtils_1.nodeIdContains)(options.parentPkg.nodeId, depPath)) {
|
|
132311
|
+
if (ctx.autoInstallPeers && !(0, nodeIdUtils_1.nodeIdContains)(options.parentPkg.nodeId, depPath)) {
|
|
132216
132312
|
if (ctx.missingPeersOfChildrenByPkgId[pkgResponse.body.id]) {
|
|
132217
132313
|
if (!options.parentPkg.nodeId.startsWith(ctx.missingPeersOfChildrenByPkgId[pkgResponse.body.id].parentImporterId)) {
|
|
132218
132314
|
missingPeersOfChildren = ctx.missingPeersOfChildrenByPkgId[pkgResponse.body.id].missingPeersOfChildren;
|
|
@@ -132225,7 +132321,7 @@ var require_resolveDependencies = __commonJS({
|
|
|
132225
132321
|
get: (0, promise_share_1.default)(p.promise)
|
|
132226
132322
|
};
|
|
132227
132323
|
ctx.missingPeersOfChildrenByPkgId[pkgResponse.body.id] = {
|
|
132228
|
-
parentImporterId
|
|
132324
|
+
parentImporterId,
|
|
132229
132325
|
missingPeersOfChildren
|
|
132230
132326
|
};
|
|
132231
132327
|
}
|
|
@@ -132234,7 +132330,7 @@ var require_resolveDependencies = __commonJS({
|
|
|
132234
132330
|
alias: wantedDependency.alias || pkg.name,
|
|
132235
132331
|
depIsLinked,
|
|
132236
132332
|
depPath,
|
|
132237
|
-
isNew,
|
|
132333
|
+
isNew: isNew || resolveChildren2,
|
|
132238
132334
|
nodeId,
|
|
132239
132335
|
normalizedPref: options.currentDepth === 0 ? pkgResponse.body.normalizedPref : void 0,
|
|
132240
132336
|
missingPeersOfChildren,
|
|
@@ -132282,6 +132378,7 @@ var require_resolveDependencies = __commonJS({
|
|
|
132282
132378
|
os: options.pkg.os,
|
|
132283
132379
|
libc: options.pkg.libc
|
|
132284
132380
|
},
|
|
132381
|
+
parentImporterIds: /* @__PURE__ */ new Set([options.parentImporterId]),
|
|
132285
132382
|
depPath: options.depPath,
|
|
132286
132383
|
dev: options.wantedDependency.dev,
|
|
132287
132384
|
fetchingBundledManifest: options.pkgResponse.bundledManifest,
|
|
@@ -138382,15 +138479,20 @@ var require_link4 = __commonJS({
|
|
|
138382
138479
|
{
|
|
138383
138480
|
title: "Options",
|
|
138384
138481
|
list: [
|
|
138385
|
-
...common_cli_options_help_1.UNIVERSAL_OPTIONS
|
|
138482
|
+
...common_cli_options_help_1.UNIVERSAL_OPTIONS,
|
|
138483
|
+
{
|
|
138484
|
+
description: "Link package to/from global node_modules",
|
|
138485
|
+
name: "--global",
|
|
138486
|
+
shortAlias: "-g"
|
|
138487
|
+
}
|
|
138386
138488
|
]
|
|
138387
138489
|
}
|
|
138388
138490
|
],
|
|
138389
138491
|
url: (0, cli_utils_1.docsUrl)("link"),
|
|
138390
138492
|
usages: [
|
|
138391
|
-
"pnpm link
|
|
138392
|
-
"pnpm link
|
|
138393
|
-
"pnpm link <
|
|
138493
|
+
"pnpm link <dir>",
|
|
138494
|
+
"pnpm link --global (in package dir)",
|
|
138495
|
+
"pnpm link --global <pkg>"
|
|
138394
138496
|
]
|
|
138395
138497
|
});
|
|
138396
138498
|
}
|
|
@@ -198682,6 +198784,7 @@ var require_pack3 = __commonJS({
|
|
|
198682
198784
|
}
|
|
198683
198785
|
}
|
|
198684
198786
|
const destDir = opts.packDestination ? path_1.default.isAbsolute(opts.packDestination) ? opts.packDestination : path_1.default.join(dir, opts.packDestination ?? ".") : dir;
|
|
198787
|
+
await fs_1.default.promises.mkdir(destDir, { recursive: true });
|
|
198685
198788
|
await packPkg({
|
|
198686
198789
|
destFile: path_1.default.join(destDir, tarballName),
|
|
198687
198790
|
filesMap,
|
|
@@ -198692,8 +198795,8 @@ var require_pack3 = __commonJS({
|
|
|
198692
198795
|
if (!opts.ignoreScripts) {
|
|
198693
198796
|
await _runScriptsIfPresent(["postpack"], entryManifest);
|
|
198694
198797
|
}
|
|
198695
|
-
if (opts.dir !==
|
|
198696
|
-
return path_1.default.join(
|
|
198798
|
+
if (opts.dir !== destDir) {
|
|
198799
|
+
return path_1.default.join(destDir, tarballName);
|
|
198697
198800
|
}
|
|
198698
198801
|
return path_1.default.relative(opts.dir, path_1.default.join(dir, tarballName));
|
|
198699
198802
|
}
|
|
@@ -206294,6 +206397,9 @@ var require_main2 = __commonJS({
|
|
|
206294
206397
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
206295
206398
|
};
|
|
206296
206399
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
206400
|
+
if (!global["pnpm__startedAt"]) {
|
|
206401
|
+
global["pnpm__startedAt"] = Date.now();
|
|
206402
|
+
}
|
|
206297
206403
|
var loud_rejection_1 = __importDefault(require_loud_rejection());
|
|
206298
206404
|
var cli_meta_1 = __importDefault(require_lib4());
|
|
206299
206405
|
var cli_utils_1 = require_lib24();
|
|
@@ -206493,6 +206599,10 @@ var require_main2 = __commonJS({
|
|
|
206493
206599
|
if (result2 instanceof Promise) {
|
|
206494
206600
|
result2 = await result2;
|
|
206495
206601
|
}
|
|
206602
|
+
core_loggers_1.executionTimeLogger.debug({
|
|
206603
|
+
startedAt: global["pnpm__startedAt"],
|
|
206604
|
+
endedAt: Date.now()
|
|
206605
|
+
});
|
|
206496
206606
|
if (!result2) {
|
|
206497
206607
|
return { output: null, exitCode: 0 };
|
|
206498
206608
|
}
|