@vltpkg/cli-js 1.0.2 → 1.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/{access-DB347PPG.js → access-5WETTBDZ.js} +9 -7
- package/{bugs-QBKI62J6.js → bugs-KONFLIQQ.js} +19 -18
- package/{build-EFJ3FFGU.js → build-S7G2DU7I.js} +12 -10
- package/{cache-BQJCMDJN.js → cache-Z4OIMLXQ.js} +23 -21
- package/{chunk-RXNA2XCX.js → chunk-4KCU2KZL.js} +8 -1
- package/{chunk-3MBSXZ62.js → chunk-5B23EKN4.js} +4 -4
- package/{chunk-5OGQND6H.js → chunk-5QJEOGEM.js} +3 -1
- package/{chunk-DEMBZY23.js → chunk-5UPPEUG2.js} +11 -11
- package/chunk-BJBFEQRR.js +667 -0
- package/{chunk-L34LR5DV.js → chunk-DYCF76WI.js} +4 -4
- package/{chunk-ULCDRVY2.js → chunk-E737X73P.js} +38 -24
- package/{chunk-F2GLBPGQ.js → chunk-FFOXTPQA.js} +8 -6
- package/chunk-G7UPIJAP.js +903 -0
- package/{chunk-CNSTFT7U.js → chunk-HAYXR3MW.js} +1 -1
- package/{chunk-3HUTU5SO.js → chunk-HNCE3YE5.js} +1649 -1569
- package/{chunk-Q46JRSZU.js → chunk-IITIX4ID.js} +22 -3
- package/chunk-LPIBYUMT.js +854 -0
- package/{chunk-47IR6Z6C.js → chunk-LZGKX7JI.js} +87 -40
- package/{chunk-5PFGKHIS.js → chunk-NXEH3NQZ.js} +10 -10
- package/{chunk-FM5DQZVN.js → chunk-OCJDISSI.js} +2 -2
- package/chunk-RNJSI3NZ.js +75 -0
- package/{chunk-ONVLPT73.js → chunk-T4GYDWUJ.js} +1 -1
- package/{chunk-YDUHQU7N.js → chunk-TMBNGWXK.js} +3 -3
- package/{chunk-CTDFRLS4.js → chunk-UAAZW4N6.js} +4 -4
- package/{chunk-TM4LHSZV.js → chunk-UXIRAU5T.js} +3 -3
- package/{chunk-BSB4XGBB.js → chunk-VB3IWNHX.js} +1 -1
- package/chunk-VE6CCH33.js +3000 -0
- package/{chunk-42UTZKAU.js → chunk-W2Q5EIMH.js} +8 -8
- package/{chunk-YRMICBI4.js → chunk-XQSBCMSC.js} +5 -5
- package/{chunk-NS4VFXHX.js → chunk-XU5SMHXP.js} +1 -1
- package/{ci-A22A6TCQ.js → ci-RZZE375O.js} +17 -16
- package/cli-package.json +1 -1
- package/{config-JL4TW2AV.js → config-LL3RLMZG.js} +9 -12
- package/{config-VOLRKFYD.js → config-MDFY3ORD.js} +15 -18
- package/{create-SL7HEXCS.js → create-GVSDTOGQ.js} +23 -23
- package/{deprecate-ZK525LQW.js → deprecate-T4TQLGXQ.js} +16 -14
- package/{dist-tag-FY3FB5VH.js → dist-tag-GO46UQUN.js} +11 -9
- package/{docs-6BPWZJFW.js → docs-FJME563T.js} +19 -18
- package/{exec-JZ5J7DI7.js → exec-M22KBPCK.js} +23 -23
- package/{exec-cache-VGSXKZVF.js → exec-cache-3UNLDUAP.js} +22 -22
- package/{exec-local-GPZUSOSM.js → exec-local-YHVO5RLU.js} +20 -18
- package/{help-XI7TNIRU.js → help-ZEWMLOJX.js} +3 -3
- package/{init-6KWM7CDI.js → init-4HPZY2KN.js} +12 -10
- package/{install-4VLOKCWH.js → install-2TZIP4PJ.js} +18 -17
- package/{list-3VLGWGKU.js → list-NFFXER43.js} +20 -18
- package/{login-3DGPSWCG.js → login-KV5YC5Z2.js} +9 -7
- package/{logout-DBFMZC6J.js → logout-I2VT3NAR.js} +9 -7
- package/{pack-LHNYEZ5W.js → pack-47ZKFSHI.js} +16 -14
- package/package.json +1 -1
- package/{ping-VLLX5LIH.js → ping-Q7Y7QV63.js} +9 -7
- package/{pkg-FYPUMX7U.js → pkg-VTJS2ISJ.js} +13 -11
- package/{profile-FOQ74TB7.js → profile-YXZYVEUX.js} +9 -7
- package/{publish-DFURU7DW.js → publish-CBN67KN2.js} +21 -19
- package/{query-NC3EABMW.js → query-U3QHF3ZE.js} +20 -18
- package/{registry-5DUFCPD6.js → registry-CZPFR3OF.js} +3 -3
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +403 -328
- package/{repo-IZXACKQ2.js → repo-4UIQRBI7.js} +19 -18
- package/{chunk-UVZJFBYE.js → reporter-DKZTTACW.js} +5 -5
- package/{run-RDFVO7FY.js → run-5DUYI6GL.js} +20 -18
- package/{run-exec-OGMXEVN5.js → run-exec-HPNBVAXH.js} +20 -18
- package/security-archive-src-update-expired.js +11 -2
- package/{setup-KTJQPDJB.js → setup-23W5FQVW.js} +15 -13
- package/{src-BJU7XZNK.js → src-2NB67FPG.js} +22 -23
- package/{reporter-UU654STB.js → src-6OKPBJJT.js} +42 -7
- package/src-M5RRGKUM.js +913 -0
- package/{token-SKICECA4.js → token-SRCS5CRU.js} +9 -7
- package/{uninstall-MTZJ33TO.js → uninstall-JXHAFXZ2.js} +18 -17
- package/{unpublish-3QBJZFHQ.js → unpublish-GRYB5KQH.js} +12 -10
- package/{update-TH477PKA.js → update-GDLL4ER6.js} +17 -16
- package/{version-YIBQZLQS.js → version-JVG4CI4L.js} +13 -11
- package/{view-FG74OAOV.js → view-ABQLVL4L.js} +12 -14
- package/vlr.js +1 -1
- package/vlrx.js +1 -1
- package/vlt.js +1 -1
- package/vlx.js +1 -1
- package/vlxl.js +1 -1
- package/{whoami-LHJ4PRJQ.js → whoami-RCCZ7BXI.js} +9 -7
- package/chunk-7NHXV6AH.js +0 -4488
- package/chunk-WAFERMRI.js +0 -1663
- package/chunk-ZLZ4XF46.js +0 -75
- package/{chunk-Y7CQIZ7Y.js → chunk-FEIPJIEN.js} +3 -3
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
AbortError,
|
|
14
14
|
SecurityArchive,
|
|
15
15
|
pRetry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5B23EKN4.js";
|
|
17
17
|
import {
|
|
18
18
|
Monorepo,
|
|
19
19
|
PackageJson,
|
|
20
20
|
getUser,
|
|
21
21
|
minimatch,
|
|
22
22
|
platformCheck
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FFOXTPQA.js";
|
|
24
24
|
import {
|
|
25
25
|
asDepID,
|
|
26
26
|
getId,
|
|
@@ -33,21 +33,26 @@ import {
|
|
|
33
33
|
joinExtra,
|
|
34
34
|
splitDepID,
|
|
35
35
|
splitExtra
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OCJDISSI.js";
|
|
37
|
+
import {
|
|
38
|
+
Spec as Spec2
|
|
39
|
+
} from "./chunk-XU5SMHXP.js";
|
|
37
40
|
import {
|
|
38
41
|
load,
|
|
39
42
|
walkUp
|
|
40
43
|
} from "./chunk-HTOTG4TS.js";
|
|
41
44
|
import {
|
|
42
|
-
promiseSpawn
|
|
43
|
-
|
|
44
|
-
} from "./chunk-7NHXV6AH.js";
|
|
45
|
-
import {
|
|
46
|
-
Spec as Spec2
|
|
47
|
-
} from "./chunk-NS4VFXHX.js";
|
|
45
|
+
promiseSpawn
|
|
46
|
+
} from "./chunk-LPIBYUMT.js";
|
|
48
47
|
import {
|
|
49
48
|
graphStep
|
|
50
49
|
} from "./chunk-UBLFPJHV.js";
|
|
50
|
+
import {
|
|
51
|
+
XDG
|
|
52
|
+
} from "./chunk-XNLSTHDK.js";
|
|
53
|
+
import {
|
|
54
|
+
rimraf
|
|
55
|
+
} from "./chunk-BJBFEQRR.js";
|
|
51
56
|
import {
|
|
52
57
|
Spec,
|
|
53
58
|
Version,
|
|
@@ -87,10 +92,7 @@ import {
|
|
|
87
92
|
satisfies,
|
|
88
93
|
shortDependencyTypes,
|
|
89
94
|
subset
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import {
|
|
92
|
-
XDG
|
|
93
|
-
} from "./chunk-XNLSTHDK.js";
|
|
95
|
+
} from "./chunk-IITIX4ID.js";
|
|
94
96
|
import {
|
|
95
97
|
error,
|
|
96
98
|
typeError
|
|
@@ -4551,6 +4553,11 @@ var Node = class _Node {
|
|
|
4551
4553
|
* The manifest integrity value.
|
|
4552
4554
|
*/
|
|
4553
4555
|
integrity;
|
|
4556
|
+
/**
|
|
4557
|
+
* True when `integrity` and `resolved` came from a lockfile, i.e. they were
|
|
4558
|
+
* verified by the install that wrote them.
|
|
4559
|
+
*/
|
|
4560
|
+
resolvedFromLockfile = false;
|
|
4554
4561
|
/**
|
|
4555
4562
|
* The manifest this node represents in the graph.
|
|
4556
4563
|
*/
|
|
@@ -7658,7 +7665,7 @@ var severity = async (state) => {
|
|
|
7658
7665
|
if (report) {
|
|
7659
7666
|
if (comparator) {
|
|
7660
7667
|
const kindLevel = kindLevelMap.get(kind);
|
|
7661
|
-
if (
|
|
7668
|
+
if (kindLevel == null) break;
|
|
7662
7669
|
for (const alert of report.alerts) {
|
|
7663
7670
|
const alertType = alert.type;
|
|
7664
7671
|
const currentAlertLevelKey = [...kindsMap2.entries()].find(
|
|
@@ -9604,7 +9611,18 @@ var retrieveNodeFromGraph = (key, value, graph, fromId, seenNodes) => {
|
|
|
9604
9611
|
}
|
|
9605
9612
|
return foundNode;
|
|
9606
9613
|
};
|
|
9607
|
-
var
|
|
9614
|
+
var parseEdgeSpec = (specName, bareSpec, options, cache) => {
|
|
9615
|
+
if (!cache || specName === "(unknown)") {
|
|
9616
|
+
return Spec.parse(specName, bareSpec, options);
|
|
9617
|
+
}
|
|
9618
|
+
const key = `${cache.prefix}\0${specName}\0${bareSpec}`;
|
|
9619
|
+
const cached = cache.specCache.get(key);
|
|
9620
|
+
if (cached) return cached;
|
|
9621
|
+
const spec2 = Spec.parse(specName, bareSpec, options);
|
|
9622
|
+
cache.specCache.set(key, spec2);
|
|
9623
|
+
return spec2;
|
|
9624
|
+
};
|
|
9625
|
+
var loadEdges = (graph, edges, options, cache) => {
|
|
9608
9626
|
const entries = Object.entries(edges);
|
|
9609
9627
|
const edgeCount = entries.length;
|
|
9610
9628
|
const useOptimizations = edgeCount > 50;
|
|
@@ -9657,10 +9675,11 @@ var loadEdges = (graph, edges, options) => {
|
|
|
9657
9675
|
toNode = graph.nodes.get(asDepID(toId));
|
|
9658
9676
|
}
|
|
9659
9677
|
}
|
|
9660
|
-
const spec2 =
|
|
9678
|
+
const spec2 = parseEdgeSpec(
|
|
9661
9679
|
specName,
|
|
9662
9680
|
valRest.substring(0, vrSplit),
|
|
9663
|
-
options
|
|
9681
|
+
options,
|
|
9682
|
+
cache
|
|
9664
9683
|
);
|
|
9665
9684
|
if (useOptimizations) {
|
|
9666
9685
|
edgeProcessingQueue.push({
|
|
@@ -9753,6 +9772,7 @@ var loadNodes = (graph, nodes, options, actual2, throwOnMissingManifest) => {
|
|
|
9753
9772
|
node.optional = optional2;
|
|
9754
9773
|
node.integrity = integrity ?? referenceNode?.integrity;
|
|
9755
9774
|
node.resolved = type2 === "remote" ? filepath : resolved ?? referenceNode?.resolved;
|
|
9775
|
+
node.resolvedFromLockfile = !!(node.integrity && node.resolved);
|
|
9756
9776
|
node.projectRoot = graph.projectRoot;
|
|
9757
9777
|
if (!node.resolved) node.setResolved();
|
|
9758
9778
|
if (location) {
|
|
@@ -9783,11 +9803,12 @@ var loadLockfile = (projectRoot, lockfilePath) => JSON.parse(
|
|
|
9783
9803
|
encoding: "utf8"
|
|
9784
9804
|
})
|
|
9785
9805
|
);
|
|
9806
|
+
var loadData = (projectRoot, lockfilePath = "vlt-lock.json") => loadLockfile(projectRoot, lockfilePath);
|
|
9786
9807
|
var load3 = (options) => {
|
|
9787
9808
|
const { projectRoot } = options;
|
|
9788
9809
|
return loadObject(
|
|
9789
9810
|
options,
|
|
9790
|
-
loadLockfile(projectRoot, "vlt-lock.json")
|
|
9811
|
+
options.lockfileData ?? loadLockfile(projectRoot, "vlt-lock.json")
|
|
9791
9812
|
);
|
|
9792
9813
|
};
|
|
9793
9814
|
var loadHidden = (options) => {
|
|
@@ -9900,7 +9921,11 @@ var loadObject = (options, lockfileData2) => {
|
|
|
9900
9921
|
options.actual,
|
|
9901
9922
|
options.throwOnMissingManifest
|
|
9902
9923
|
);
|
|
9903
|
-
|
|
9924
|
+
const specCache = options.modifiers || !options.specCache ? void 0 : {
|
|
9925
|
+
specCache: options.specCache,
|
|
9926
|
+
prefix: JSON.stringify(lockfileOptions)
|
|
9927
|
+
};
|
|
9928
|
+
loadEdges(graph, lockfileData2.edges, mergedOptions, specCache);
|
|
9904
9929
|
for (const node of graph.nodes.values()) {
|
|
9905
9930
|
const [firstEdge] = node.edgesIn;
|
|
9906
9931
|
if (firstEdge?.spec.registry) {
|
|
@@ -11811,15 +11836,21 @@ var extractNode = async (node, scurry, remover, options, packageInfo, diff2) =>
|
|
|
11811
11836
|
error: new Error("Platform check failed or package deprecated")
|
|
11812
11837
|
};
|
|
11813
11838
|
}
|
|
11839
|
+
const extractOptions = {
|
|
11840
|
+
from,
|
|
11841
|
+
integrity,
|
|
11842
|
+
resolved,
|
|
11843
|
+
fromLockfile: node.resolvedFromLockfile
|
|
11844
|
+
};
|
|
11814
11845
|
try {
|
|
11815
11846
|
await remover.rm(target);
|
|
11816
11847
|
if (removeOptionalFailedNode) {
|
|
11817
11848
|
try {
|
|
11818
|
-
const result = await packageInfo.extract(
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11849
|
+
const result = await packageInfo.extract(
|
|
11850
|
+
spec2,
|
|
11851
|
+
target,
|
|
11852
|
+
extractOptions
|
|
11853
|
+
);
|
|
11823
11854
|
if (result.integrity && !node.integrity) {
|
|
11824
11855
|
node.integrity = result.integrity;
|
|
11825
11856
|
}
|
|
@@ -11829,11 +11860,11 @@ var extractNode = async (node, scurry, remover, options, packageInfo, diff2) =>
|
|
|
11829
11860
|
return { success: false, node, error: error2 };
|
|
11830
11861
|
}
|
|
11831
11862
|
} else {
|
|
11832
|
-
const result = await packageInfo.extract(
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11863
|
+
const result = await packageInfo.extract(
|
|
11864
|
+
spec2,
|
|
11865
|
+
target,
|
|
11866
|
+
extractOptions
|
|
11867
|
+
);
|
|
11837
11868
|
if (result.integrity && !node.integrity) {
|
|
11838
11869
|
node.integrity = result.integrity;
|
|
11839
11870
|
}
|
|
@@ -11987,7 +12018,7 @@ var checkPeerEdgesCompatible = (existingNode, fromNode, peerContext, graph) => {
|
|
|
11987
12018
|
existingTarget,
|
|
11988
12019
|
peerSpec
|
|
11989
12020
|
);
|
|
11990
|
-
if (existingTargetSatisfiesPeer && nodeSatisfiesAll(existingTarget, contextEntry.specs)) {
|
|
12021
|
+
if (existingTargetSatisfiesPeer && nodeSatisfiesAll(existingTarget, contextEntry.specs.values())) {
|
|
11991
12022
|
continue;
|
|
11992
12023
|
}
|
|
11993
12024
|
const result = buildIncompatibleResult(
|
|
@@ -12059,9 +12090,13 @@ var retrievePeerContextHash = (peerContext) => {
|
|
|
12059
12090
|
if (!peerContext?.index) return void 0;
|
|
12060
12091
|
return `peer.${peerContext.index}`;
|
|
12061
12092
|
};
|
|
12093
|
+
var peerSpecKey = (spec2) => {
|
|
12094
|
+
const f = spec2.final;
|
|
12095
|
+
return `${f.type}\0${String(f)}\0${f.registry ?? ""}`;
|
|
12096
|
+
};
|
|
12062
12097
|
var incompatibleSpecs = (spec2, entry) => {
|
|
12063
12098
|
if (entry.specs.size > 0) {
|
|
12064
|
-
for (const s_ of entry.specs) {
|
|
12099
|
+
for (const s_ of entry.specs.values()) {
|
|
12065
12100
|
const s = s_.final;
|
|
12066
12101
|
if (
|
|
12067
12102
|
// Registry types: check semver range intersection
|
|
@@ -12094,7 +12129,7 @@ var addEntriesToPeerContext = (peerContext, entries, fromNode, monorepo) => {
|
|
|
12094
12129
|
if (!entry) {
|
|
12095
12130
|
entry = {
|
|
12096
12131
|
active: true,
|
|
12097
|
-
specs: /* @__PURE__ */ new
|
|
12132
|
+
specs: /* @__PURE__ */ new Map([[peerSpecKey(spec2), spec2]]),
|
|
12098
12133
|
target,
|
|
12099
12134
|
type: type2,
|
|
12100
12135
|
contextDependents: /* @__PURE__ */ new Set()
|
|
@@ -12104,7 +12139,7 @@ var addEntriesToPeerContext = (peerContext, entries, fromNode, monorepo) => {
|
|
|
12104
12139
|
continue;
|
|
12105
12140
|
}
|
|
12106
12141
|
if (incompatibleSpecs(spec2.final, entry)) return true;
|
|
12107
|
-
if (target && [...entry.specs].every(
|
|
12142
|
+
if (target && [...entry.specs.values()].every(
|
|
12108
12143
|
(s) => satisfies2(
|
|
12109
12144
|
target.id,
|
|
12110
12145
|
s,
|
|
@@ -12126,7 +12161,8 @@ var addEntriesToPeerContext = (peerContext, entries, fromNode, monorepo) => {
|
|
|
12126
12161
|
}
|
|
12127
12162
|
entry.target ??= target;
|
|
12128
12163
|
}
|
|
12129
|
-
|
|
12164
|
+
const specKey = peerSpecKey(spec2);
|
|
12165
|
+
if (!entry.specs.has(specKey)) entry.specs.set(specKey, spec2);
|
|
12130
12166
|
if (dependent) entry.contextDependents.add(dependent);
|
|
12131
12167
|
}
|
|
12132
12168
|
return false;
|
|
@@ -12144,7 +12180,7 @@ var forkPeerContext = (graph, peerContext, entries) => {
|
|
|
12144
12180
|
for (const [name, entry] of peerContext.entries()) {
|
|
12145
12181
|
nextPeerContext.set(name, {
|
|
12146
12182
|
active: false,
|
|
12147
|
-
specs: new
|
|
12183
|
+
specs: new Map(entry.specs),
|
|
12148
12184
|
target: void 0,
|
|
12149
12185
|
type: entry.type,
|
|
12150
12186
|
contextDependents: new Set(entry.contextDependents)
|
|
@@ -12155,7 +12191,7 @@ var forkPeerContext = (graph, peerContext, entries) => {
|
|
|
12155
12191
|
const name = target?.name ?? spec2.final.name;
|
|
12156
12192
|
const newEntry = {
|
|
12157
12193
|
active: true,
|
|
12158
|
-
specs: /* @__PURE__ */ new
|
|
12194
|
+
specs: /* @__PURE__ */ new Map([[peerSpecKey(spec2), spec2]]),
|
|
12159
12195
|
target,
|
|
12160
12196
|
type: type2,
|
|
12161
12197
|
contextDependents: dependent ? /* @__PURE__ */ new Set([dependent]) : /* @__PURE__ */ new Set()
|
|
@@ -12313,7 +12349,10 @@ var endPeerPlacement = (peerContext, nextDeps, nextPeerDeps, graph, spec2, fromN
|
|
|
12313
12349
|
const entry = peerContext.get(name);
|
|
12314
12350
|
if (!node.edgesOut.has(name) && entry?.target && nodeSatisfiesSpec(entry.target, spec3, fromNode, graph)) {
|
|
12315
12351
|
graph.addEdge(type3, spec3, node, entry.target);
|
|
12316
|
-
|
|
12352
|
+
const finalKey = peerSpecKey(spec3.final);
|
|
12353
|
+
if (!entry.specs.has(finalKey)) {
|
|
12354
|
+
entry.specs.set(finalKey, spec3.final);
|
|
12355
|
+
}
|
|
12317
12356
|
continue;
|
|
12318
12357
|
}
|
|
12319
12358
|
if (type3 === "peerOptional") {
|
|
@@ -14072,6 +14111,7 @@ var createVirtualRoot = (name = "virtual-root", options, mainImporters) => {
|
|
|
14072
14111
|
var actual = { load: load4 };
|
|
14073
14112
|
var lockfile = {
|
|
14074
14113
|
load: load3,
|
|
14114
|
+
loadData,
|
|
14075
14115
|
loadEdges,
|
|
14076
14116
|
loadNodes,
|
|
14077
14117
|
save
|
|
@@ -14112,6 +14152,8 @@ var install = async (options, add) => {
|
|
|
14112
14152
|
packageJson: options.packageJson,
|
|
14113
14153
|
scurry: options.scurry
|
|
14114
14154
|
});
|
|
14155
|
+
const specCache = /* @__PURE__ */ new Map();
|
|
14156
|
+
const lockfileData2 = options.frozenLockfile ? loadData(options.projectRoot) : void 0;
|
|
14115
14157
|
if (options.frozenLockfile) {
|
|
14116
14158
|
if (add?.modifiedDependencies) {
|
|
14117
14159
|
const dependencies = [];
|
|
@@ -14128,7 +14170,9 @@ var install = async (options, add) => {
|
|
|
14128
14170
|
const lockfileGraph = load3({
|
|
14129
14171
|
...options,
|
|
14130
14172
|
mainManifest,
|
|
14131
|
-
monorepo: fullMonorepo
|
|
14173
|
+
monorepo: fullMonorepo,
|
|
14174
|
+
specCache,
|
|
14175
|
+
lockfileData: lockfileData2
|
|
14132
14176
|
});
|
|
14133
14177
|
const emptyAdd = Object.assign(
|
|
14134
14178
|
/* @__PURE__ */ new Map(),
|
|
@@ -14228,7 +14272,8 @@ var install = async (options, add) => {
|
|
|
14228
14272
|
loadManifests: true,
|
|
14229
14273
|
modifiers: void 0,
|
|
14230
14274
|
// modifiers should not be used here
|
|
14231
|
-
monorepo: fullMonorepo
|
|
14275
|
+
monorepo: fullMonorepo,
|
|
14276
|
+
specCache
|
|
14232
14277
|
});
|
|
14233
14278
|
if (act.importers.size === act.nodes.size) {
|
|
14234
14279
|
act = void 0;
|
|
@@ -14242,7 +14287,9 @@ var install = async (options, add) => {
|
|
|
14242
14287
|
modifiers,
|
|
14243
14288
|
remove,
|
|
14244
14289
|
remover,
|
|
14245
|
-
monorepo: fullMonorepo
|
|
14290
|
+
monorepo: fullMonorepo,
|
|
14291
|
+
specCache,
|
|
14292
|
+
lockfileData: lockfileData2
|
|
14246
14293
|
});
|
|
14247
14294
|
if (options.lockfileOnly) {
|
|
14248
14295
|
lockfile.save({ ...options, graph, modifiers });
|
|
@@ -11,21 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G7UPIJAP.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FFOXTPQA.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
find,
|
|
25
|
-
load,
|
|
26
|
-
reload,
|
|
27
|
-
save
|
|
28
|
-
} from "./chunk-HTOTG4TS.js";
|
|
22
|
+
} from "./chunk-OCJDISSI.js";
|
|
29
23
|
import {
|
|
30
24
|
commands,
|
|
31
25
|
definition,
|
|
@@ -33,12 +27,18 @@ import {
|
|
|
33
27
|
isRecordField,
|
|
34
28
|
recordFields
|
|
35
29
|
} from "./chunk-WP6CYBPM.js";
|
|
30
|
+
import {
|
|
31
|
+
find,
|
|
32
|
+
load,
|
|
33
|
+
reload,
|
|
34
|
+
save
|
|
35
|
+
} from "./chunk-HTOTG4TS.js";
|
|
36
36
|
import {
|
|
37
37
|
assertRecordStringString,
|
|
38
38
|
assertRecordStringT,
|
|
39
39
|
getOptions,
|
|
40
40
|
isRecordStringString
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IITIX4ID.js";
|
|
42
42
|
import {
|
|
43
43
|
error
|
|
44
44
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,12 +11,12 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
Spec as Spec2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XU5SMHXP.js";
|
|
15
15
|
import {
|
|
16
16
|
Spec,
|
|
17
17
|
currentDefaultRegistryName,
|
|
18
18
|
defaultRegistryName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IITIX4ID.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {Buffer} from "node:buffer";
|
|
3
|
+
import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
|
|
4
|
+
globalThis.setTimeout = _vlt_setTimeout;
|
|
5
|
+
globalThis.clearTimeout = _vlt_clearTimeout;
|
|
6
|
+
globalThis.setImmediate = _vlt_setImmediate;
|
|
7
|
+
globalThis.clearImmediate = _vlt_clearImmediate;
|
|
8
|
+
globalThis.setInterval = _vlt_setInterval;
|
|
9
|
+
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
error
|
|
14
|
+
} from "./chunk-WZWDS3W4.js";
|
|
15
|
+
import {
|
|
16
|
+
__glob
|
|
17
|
+
} from "./chunk-PZLD7RTK.js";
|
|
18
|
+
|
|
19
|
+
// import("./commands/**/*.ts") in ../../src/cli-sdk/src/load-command.ts
|
|
20
|
+
var globImport_commands_ts = __glob({
|
|
21
|
+
"./commands/access.ts": () => import("./access-5WETTBDZ.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-KONFLIQQ.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-S7G2DU7I.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-Z4OIMLXQ.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-RZZE375O.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-MDFY3ORD.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-GVSDTOGQ.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-T4TQLGXQ.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-GO46UQUN.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-FJME563T.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-3UNLDUAP.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-YHVO5RLU.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-M22KBPCK.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-ZEWMLOJX.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-4HPZY2KN.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-2TZIP4PJ.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-DKZTTACW.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-NFFXER43.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-KV5YC5Z2.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-I2VT3NAR.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-47ZKFSHI.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-Q7Y7QV63.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-VTJS2ISJ.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-YXZYVEUX.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-CBN67KN2.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-U3QHF3ZE.js"),
|
|
47
|
+
"./commands/registry.ts": () => import("./registry-CZPFR3OF.js"),
|
|
48
|
+
"./commands/repo.ts": () => import("./repo-4UIQRBI7.js"),
|
|
49
|
+
"./commands/run-exec.ts": () => import("./run-exec-HPNBVAXH.js"),
|
|
50
|
+
"./commands/run.ts": () => import("./run-5DUYI6GL.js"),
|
|
51
|
+
"./commands/setup.ts": () => import("./setup-23W5FQVW.js"),
|
|
52
|
+
"./commands/token.ts": () => import("./token-SRCS5CRU.js"),
|
|
53
|
+
"./commands/uninstall.ts": () => import("./uninstall-JXHAFXZ2.js"),
|
|
54
|
+
"./commands/unpublish.ts": () => import("./unpublish-GRYB5KQH.js"),
|
|
55
|
+
"./commands/update.ts": () => import("./update-GDLL4ER6.js"),
|
|
56
|
+
"./commands/version.ts": () => import("./version-JVG4CI4L.js"),
|
|
57
|
+
"./commands/view.ts": () => import("./view-ABQLVL4L.js"),
|
|
58
|
+
"./commands/whoami.ts": () => import("./whoami-RCCZ7BXI.js")
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
62
|
+
var loadCommand = async (command) => {
|
|
63
|
+
try {
|
|
64
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw error("Could not load command", {
|
|
67
|
+
found: command,
|
|
68
|
+
cause: e
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
loadCommand
|
|
75
|
+
};
|
|
@@ -11,7 +11,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
defaultRegistries
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IITIX4ID.js";
|
|
15
15
|
import {
|
|
16
16
|
error
|
|
17
17
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
actual,
|
|
14
14
|
callLimit,
|
|
15
15
|
createVirtualRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LZGKX7JI.js";
|
|
17
17
|
import {
|
|
18
18
|
SecurityArchive
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5B23EKN4.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -115,7 +115,7 @@ var reloadConfig = async (folder) => {
|
|
|
115
115
|
unload("project");
|
|
116
116
|
} catch {
|
|
117
117
|
}
|
|
118
|
-
const { Config } = await import("./config-
|
|
118
|
+
const { Config } = await import("./config-LL3RLMZG.js");
|
|
119
119
|
return Config.load(folder, process.argv, true);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "./chunk-FWKQ7YDF.js";
|
|
17
17
|
import {
|
|
18
18
|
minimatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FFOXTPQA.js";
|
|
20
|
+
import {
|
|
21
|
+
Spec
|
|
22
|
+
} from "./chunk-XU5SMHXP.js";
|
|
20
23
|
import {
|
|
21
24
|
parse,
|
|
22
25
|
stringify
|
|
23
26
|
} from "./chunk-HTOTG4TS.js";
|
|
24
|
-
import {
|
|
25
|
-
Spec
|
|
26
|
-
} from "./chunk-NS4VFXHX.js";
|
|
27
27
|
import {
|
|
28
28
|
error
|
|
29
29
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,14 +11,14 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
asDependency
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LZGKX7JI.js";
|
|
15
15
|
import {
|
|
16
16
|
joinDepIDTuple,
|
|
17
17
|
splitDepID
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OCJDISSI.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XU5SMHXP.js";
|
|
22
22
|
|
|
23
23
|
// ../../src/cli-sdk/src/parse-add-remove-args.ts
|
|
24
24
|
import { isAbsolute, relative, resolve } from "node:path";
|