@vltpkg/cli-js 1.0.0-rc.31 → 1.0.0-rc.32
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-I7Q5S4HE.js → access-SQZRJLJA.js} +2 -2
- package/{bugs-45YPQ2T5.js → bugs-BMZ5UERM.js} +9 -9
- package/{build-ICCKNOZT.js → build-LGQI6OGM.js} +6 -6
- package/{cache-U44GAPOY.js → cache-JWHNATAX.js} +6 -6
- package/{chunk-YHLRGHF7.js → chunk-3TVABXAG.js} +2 -2
- package/{chunk-TLCNALWV.js → chunk-5UXEBLLT.js} +3 -3
- package/{chunk-Q3DNNTPG.js → chunk-6YXVQ5HC.js} +112 -7
- package/{chunk-5XHNL6N6.js → chunk-7XE7OES7.js} +62 -12
- package/{chunk-IYO5QKUW.js → chunk-DFNHGGGV.js} +1 -1
- package/{chunk-UUE6D7ZK.js → chunk-DI2CYYXF.js} +1 -1
- package/{chunk-EXHIB5H4.js → chunk-DIKKTUBV.js} +2 -2
- package/{chunk-U6ONVNUF.js → chunk-DM3WGEVB.js} +1 -1
- package/chunk-FXIBCUIM.js +73 -0
- package/{chunk-OMHPDQOQ.js → chunk-G6PG3AGN.js} +5 -5
- package/{chunk-C2X7PVDF.js → chunk-IAKUGHGT.js} +1 -1
- package/{chunk-JVCMIUEP.js → chunk-JBVLIV37.js} +2 -2
- package/{chunk-PHJXJ53A.js → chunk-JKAZKVQU.js} +1 -1
- package/{chunk-SZPDTJMF.js → chunk-KRGA5VLT.js} +3 -3
- package/{chunk-X5R27Q65.js → chunk-LEX7YPHR.js} +4 -4
- package/{chunk-U5KA63OT.js → chunk-M2WD7IBO.js} +1 -1
- package/{chunk-QZ6G5VRS.js → chunk-SDBTQF2Y.js} +5 -5
- package/{chunk-BCG46IIG.js → chunk-SIXXDCBI.js} +5 -5
- package/{chunk-QHBKZE6U.js → chunk-XFQ2EH5D.js} +3 -3
- package/{chunk-Y7QHAJJQ.js → chunk-YQXDHMHG.js} +238 -42
- package/{chunk-BCS77CZK.js → chunk-ZUP6UTME.js} +1 -1
- package/{ci-5CK3JONP.js → ci-FQJANSQW.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-MUVNKIGE.js → config-4KQTTXJH.js} +8 -8
- package/{config-4TAZ2WKY.js → config-LRL3N7TN.js} +7 -7
- package/{create-GLJ454QZ.js → create-KN6AXEA6.js} +13 -13
- package/{deprecate-WBRB2ACU.js → deprecate-P26WHVFB.js} +6 -6
- package/{dist-tag-CQJW5BXA.js → dist-tag-FA2BT7SA.js} +3 -3
- package/{docs-DEGETERR.js → docs-OAPIY4SC.js} +9 -9
- package/{exec-MP4CE2QF.js → exec-CVZGHJZS.js} +13 -13
- package/{exec-cache-O5OTIYVM.js → exec-cache-3AHODVRN.js} +11 -11
- package/{exec-local-S3253EEU.js → exec-local-I4OJX76E.js} +10 -10
- package/{help-3ELBHB5T.js → help-QFIQSPNS.js} +1 -1
- package/{init-VAPZRSOP.js → init-QLADIAP5.js} +7 -7
- package/{install-WI2XDPTF.js → install-B7CU2BLC.js} +8 -8
- package/{list-EDGJ5OZS.js → list-OTFV3LOM.js} +10 -10
- package/{login-2QU5SPGP.js → login-LG2ZOIDQ.js} +2 -2
- package/{logout-DVW3KZKJ.js → logout-KUI773AM.js} +2 -2
- package/{pack-FVQFCACM.js → pack-C55TTBIQ.js} +8 -8
- package/package.json +1 -1
- package/{ping-5NKJAV3C.js → ping-VNUOC26G.js} +2 -2
- package/{pkg-A6UAZWJJ.js → pkg-H4RJEBK5.js} +8 -8
- package/{profile-OZYH6GL2.js → profile-DIJ5JUSE.js} +2 -2
- package/{publish-7BC7UGRG.js → publish-XF2TRBPH.js} +9 -9
- package/{query-4ADVFHJD.js → query-BGP5JMJ7.js} +10 -10
- package/registry-client-package.json +1 -1
- package/{repo-NQCC2SV5.js → repo-NCEHK7KB.js} +9 -9
- package/{reporter-MSQWYN76.js → reporter-OB6SNHOZ.js} +2 -2
- package/{run-L647KHX5.js → run-ZNJJYEJF.js} +10 -10
- package/{run-exec-6ACC3NDU.js → run-exec-F5OV7MVN.js} +10 -10
- package/{src-7GDXNZM6.js → src-M3WI7TSB.js} +10 -10
- package/{token-MW32RFPW.js → token-KXCVRJGF.js} +5 -3
- package/{uninstall-D3ZT544Q.js → uninstall-33SUWR6K.js} +8 -8
- package/{unpublish-JB274OID.js → unpublish-7AZPBZF2.js} +3 -3
- package/{update-FILF2X56.js → update-2EQF6IKZ.js} +7 -7
- package/{version-TMUOHL5P.js → version-HFYI3SEX.js} +7 -7
- package/{view-XHDLAT6W.js → view-C5OT36OB.js} +7 -7
- 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-XH64UEWS.js → whoami-KKFV3XR6.js} +2 -2
- package/chunk-6SHB5AGY.js +0 -73
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
} from "./chunk-FBTBHRPG.js";
|
|
15
15
|
import {
|
|
16
16
|
RegistryClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DI2CYYXF.js";
|
|
18
18
|
import "./chunk-YCQTLBWF.js";
|
|
19
19
|
import "./chunk-R44FR7BY.js";
|
|
20
20
|
import "./chunk-2V4AQPBR.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-6YXVQ5HC.js";
|
|
22
22
|
import "./chunk-XNLSTHDK.js";
|
|
23
23
|
import {
|
|
24
24
|
error
|
|
@@ -14,34 +14,34 @@ import {
|
|
|
14
14
|
} from "./chunk-FXDRM4ZO.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XFQ2EH5D.js";
|
|
18
18
|
import {
|
|
19
19
|
Query,
|
|
20
20
|
actual
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YQXDHMHG.js";
|
|
22
22
|
import {
|
|
23
23
|
SecurityArchive
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DM3WGEVB.js";
|
|
25
25
|
import {
|
|
26
26
|
PackageInfoClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LEX7YPHR.js";
|
|
28
28
|
import "./chunk-HQ4US6G3.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-KRGA5VLT.js";
|
|
30
|
+
import "./chunk-IAKUGHGT.js";
|
|
31
31
|
import {
|
|
32
32
|
Spec2 as Spec
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JKAZKVQU.js";
|
|
34
34
|
import "./chunk-HTOTG4TS.js";
|
|
35
35
|
import {
|
|
36
36
|
commandUsage
|
|
37
37
|
} from "./chunk-FBTBHRPG.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-DI2CYYXF.js";
|
|
39
39
|
import {
|
|
40
40
|
urlOpen
|
|
41
41
|
} from "./chunk-YCQTLBWF.js";
|
|
42
42
|
import "./chunk-R44FR7BY.js";
|
|
43
43
|
import "./chunk-2V4AQPBR.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-6YXVQ5HC.js";
|
|
45
45
|
import "./chunk-XNLSTHDK.js";
|
|
46
46
|
import {
|
|
47
47
|
error
|
|
@@ -11,11 +11,11 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
build
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YQXDHMHG.js";
|
|
15
|
+
import "./chunk-DM3WGEVB.js";
|
|
16
|
+
import "./chunk-KRGA5VLT.js";
|
|
17
|
+
import "./chunk-IAKUGHGT.js";
|
|
18
|
+
import "./chunk-JKAZKVQU.js";
|
|
19
19
|
import "./chunk-HTOTG4TS.js";
|
|
20
20
|
import {
|
|
21
21
|
commandUsage
|
|
@@ -24,7 +24,7 @@ import "./chunk-R44FR7BY.js";
|
|
|
24
24
|
import "./chunk-2V4AQPBR.js";
|
|
25
25
|
import {
|
|
26
26
|
isErrorWithCause
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6YXVQ5HC.js";
|
|
28
28
|
import "./chunk-XNLSTHDK.js";
|
|
29
29
|
import {
|
|
30
30
|
error
|
|
@@ -15,28 +15,28 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5UXEBLLT.js";
|
|
19
19
|
import "./chunk-G2YT2GWF.js";
|
|
20
20
|
import "./chunk-NLFBANVO.js";
|
|
21
21
|
import {
|
|
22
22
|
ViewClass
|
|
23
23
|
} from "./chunk-RXNA2XCX.js";
|
|
24
24
|
import "./chunk-WGDTG44V.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-DFNHGGGV.js";
|
|
26
|
+
import "./chunk-IAKUGHGT.js";
|
|
27
27
|
import {
|
|
28
28
|
Spec2 as Spec
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JKAZKVQU.js";
|
|
30
30
|
import {
|
|
31
31
|
commandUsage
|
|
32
32
|
} from "./chunk-FBTBHRPG.js";
|
|
33
33
|
import {
|
|
34
34
|
CacheEntry
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DI2CYYXF.js";
|
|
36
36
|
import "./chunk-YCQTLBWF.js";
|
|
37
37
|
import "./chunk-R44FR7BY.js";
|
|
38
38
|
import "./chunk-2V4AQPBR.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-6YXVQ5HC.js";
|
|
40
40
|
import "./chunk-XNLSTHDK.js";
|
|
41
41
|
import {
|
|
42
42
|
error
|
|
@@ -11,10 +11,10 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
stderr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5UXEBLLT.js";
|
|
15
15
|
import {
|
|
16
16
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YQXDHMHG.js";
|
|
18
18
|
import {
|
|
19
19
|
ViewClass
|
|
20
20
|
} from "./chunk-RXNA2XCX.js";
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
} from "./chunk-RXNA2XCX.js";
|
|
24
24
|
import {
|
|
25
25
|
parseError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DFNHGGGV.js";
|
|
27
27
|
import {
|
|
28
28
|
isGraphRunError,
|
|
29
29
|
splitDepID
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IAKUGHGT.js";
|
|
31
31
|
import {
|
|
32
32
|
defaultView
|
|
33
33
|
} from "./chunk-2V4AQPBR.js";
|
|
34
34
|
import {
|
|
35
35
|
isErrorWithCause,
|
|
36
36
|
isObject
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-6YXVQ5HC.js";
|
|
38
38
|
import {
|
|
39
39
|
XDG
|
|
40
40
|
} from "./chunk-XNLSTHDK.js";
|
|
@@ -1077,13 +1077,14 @@ var normalizeSingleBug = (bug) => {
|
|
|
1077
1077
|
} else if (isObject(bug)) {
|
|
1078
1078
|
if (isNormalizedBugsEntry(bug)) {
|
|
1079
1079
|
res.push(bug);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1080
|
+
} else {
|
|
1081
|
+
const obj = bug;
|
|
1082
|
+
if (obj.url) {
|
|
1083
|
+
res.push({ type: "link", url: obj.url });
|
|
1084
|
+
}
|
|
1085
|
+
if (obj.email) {
|
|
1086
|
+
res.push({ type: "email", email: obj.email });
|
|
1087
|
+
}
|
|
1087
1088
|
}
|
|
1088
1089
|
}
|
|
1089
1090
|
return res.length > 0 ? res : [];
|
|
@@ -1544,6 +1545,109 @@ var intersects = (r1, r2, includePrerelease) => {
|
|
|
1544
1545
|
(set1) => range2.set.some((set2) => intersectComparators(set1, set2))
|
|
1545
1546
|
);
|
|
1546
1547
|
};
|
|
1548
|
+
var subset = (r1, r2, includePrerelease) => {
|
|
1549
|
+
const range1 = typeof r1 === "string" ? parseRange(r1, includePrerelease) : r1;
|
|
1550
|
+
const range2 = typeof r2 === "string" ? parseRange(r2, includePrerelease) : r2;
|
|
1551
|
+
if (!range1 || !range2) return false;
|
|
1552
|
+
if (range2.isAny) return true;
|
|
1553
|
+
if (range1.isAny) return false;
|
|
1554
|
+
return range1.set.every(
|
|
1555
|
+
(set1) => range2.set.some((set2) => comparatorSubset(set1, set2))
|
|
1556
|
+
);
|
|
1557
|
+
};
|
|
1558
|
+
var comparatorSubset = (comp1, comp2) => {
|
|
1559
|
+
const tuples1 = comp1.tuples.filter(
|
|
1560
|
+
(t) => Array.isArray(t)
|
|
1561
|
+
);
|
|
1562
|
+
const tuples2 = comp2.tuples.filter(
|
|
1563
|
+
(t) => Array.isArray(t)
|
|
1564
|
+
);
|
|
1565
|
+
if (!satisfiableRange(tuples1)) return true;
|
|
1566
|
+
const bounds1 = getBounds(tuples1);
|
|
1567
|
+
const bounds2 = getBounds(tuples2);
|
|
1568
|
+
if (bounds2.hasExact) {
|
|
1569
|
+
if (bounds1.hasExact) {
|
|
1570
|
+
return eq(bounds1.hasExact, bounds2.hasExact);
|
|
1571
|
+
}
|
|
1572
|
+
if (!bounds1.lowerBound || !bounds1.upperBound || !eq(bounds1.lowerBound, bounds2.hasExact) || !eq(bounds1.upperBound, bounds2.hasExact) || !bounds1.lowerInclusive || !bounds1.upperInclusive) {
|
|
1573
|
+
return false;
|
|
1574
|
+
}
|
|
1575
|
+
return true;
|
|
1576
|
+
}
|
|
1577
|
+
if (bounds1.hasExact) {
|
|
1578
|
+
if (bounds2.lowerBound) {
|
|
1579
|
+
if (bounds2.lowerInclusive ? lt(bounds1.hasExact, bounds2.lowerBound) : lte(bounds1.hasExact, bounds2.lowerBound)) {
|
|
1580
|
+
return false;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
if (bounds2.upperBound) {
|
|
1584
|
+
if (bounds2.upperInclusive ? gt(bounds1.hasExact, bounds2.upperBound) : gte(bounds1.hasExact, bounds2.upperBound)) {
|
|
1585
|
+
return false;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
return true;
|
|
1589
|
+
}
|
|
1590
|
+
if (bounds2.lowerBound) {
|
|
1591
|
+
if (!bounds1.lowerBound) return false;
|
|
1592
|
+
const cmp = compare(bounds1.lowerBound, bounds2.lowerBound);
|
|
1593
|
+
if (cmp < 0) return false;
|
|
1594
|
+
if (cmp === 0 && !bounds2.lowerInclusive && bounds1.lowerInclusive)
|
|
1595
|
+
return false;
|
|
1596
|
+
}
|
|
1597
|
+
if (bounds2.upperBound) {
|
|
1598
|
+
if (!bounds1.upperBound) return false;
|
|
1599
|
+
const cmp = compare(bounds1.upperBound, bounds2.upperBound);
|
|
1600
|
+
if (cmp > 0) return false;
|
|
1601
|
+
if (cmp === 0 && !bounds2.upperInclusive && bounds1.upperInclusive)
|
|
1602
|
+
return false;
|
|
1603
|
+
}
|
|
1604
|
+
return true;
|
|
1605
|
+
};
|
|
1606
|
+
var getBounds = (tuples) => {
|
|
1607
|
+
let lowerBound = null;
|
|
1608
|
+
let lowerInclusive = false;
|
|
1609
|
+
let upperBound = null;
|
|
1610
|
+
let upperInclusive = false;
|
|
1611
|
+
let hasExact = null;
|
|
1612
|
+
for (const [op, ver] of tuples) {
|
|
1613
|
+
switch (op) {
|
|
1614
|
+
case "":
|
|
1615
|
+
hasExact = ver;
|
|
1616
|
+
break;
|
|
1617
|
+
case ">=":
|
|
1618
|
+
if (!lowerBound || gt(ver, lowerBound) || eq(ver, lowerBound) && !lowerInclusive) {
|
|
1619
|
+
lowerBound = ver;
|
|
1620
|
+
lowerInclusive = true;
|
|
1621
|
+
}
|
|
1622
|
+
break;
|
|
1623
|
+
case ">":
|
|
1624
|
+
if (!lowerBound || gt(ver, lowerBound)) {
|
|
1625
|
+
lowerBound = ver;
|
|
1626
|
+
lowerInclusive = false;
|
|
1627
|
+
}
|
|
1628
|
+
break;
|
|
1629
|
+
case "<=":
|
|
1630
|
+
if (!upperBound || lt(ver, upperBound) || eq(ver, upperBound) && !upperInclusive) {
|
|
1631
|
+
upperBound = ver;
|
|
1632
|
+
upperInclusive = true;
|
|
1633
|
+
}
|
|
1634
|
+
break;
|
|
1635
|
+
case "<":
|
|
1636
|
+
if (!upperBound || lt(ver, upperBound)) {
|
|
1637
|
+
upperBound = ver;
|
|
1638
|
+
upperInclusive = false;
|
|
1639
|
+
}
|
|
1640
|
+
break;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
return {
|
|
1644
|
+
lowerBound,
|
|
1645
|
+
lowerInclusive,
|
|
1646
|
+
upperBound,
|
|
1647
|
+
upperInclusive,
|
|
1648
|
+
hasExact
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1547
1651
|
var intersectComparators = (comp1, comp2) => {
|
|
1548
1652
|
const tuples1 = comp1.tuples.filter(
|
|
1549
1653
|
(t) => Array.isArray(t)
|
|
@@ -1656,6 +1760,7 @@ export {
|
|
|
1656
1760
|
minor,
|
|
1657
1761
|
patch,
|
|
1658
1762
|
intersects,
|
|
1763
|
+
subset,
|
|
1659
1764
|
asError,
|
|
1660
1765
|
isError,
|
|
1661
1766
|
isErrorWithCause,
|
|
@@ -11,15 +11,17 @@ 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-YQXDHMHG.js";
|
|
15
15
|
import {
|
|
16
|
-
joinDepIDTuple
|
|
17
|
-
|
|
16
|
+
joinDepIDTuple,
|
|
17
|
+
splitDepID
|
|
18
|
+
} from "./chunk-IAKUGHGT.js";
|
|
18
19
|
import {
|
|
19
20
|
Spec2 as Spec
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JKAZKVQU.js";
|
|
21
22
|
|
|
22
23
|
// ../../src/cli-sdk/src/parse-add-remove-args.ts
|
|
24
|
+
import { isAbsolute, relative, resolve } from "node:path";
|
|
23
25
|
var rootDepID = joinDepIDTuple(["file", "."]);
|
|
24
26
|
var getCwdDepID = (scurry) => {
|
|
25
27
|
const cwd = process.cwd();
|
|
@@ -45,25 +47,73 @@ var AddImportersDependenciesMapImpl = class extends Map {
|
|
|
45
47
|
var RemoveImportersDependenciesMapImpl = class extends Map {
|
|
46
48
|
modifiedDependencies = false;
|
|
47
49
|
};
|
|
50
|
+
var rebaseFileSpec = (spec, importerPath, scurryCwd, specOptions, monorepo) => {
|
|
51
|
+
if (spec.type !== "file" || !spec.file || isAbsolute(spec.file)) {
|
|
52
|
+
return spec;
|
|
53
|
+
}
|
|
54
|
+
const targetAbs = resolve(process.cwd(), spec.file);
|
|
55
|
+
if (monorepo) {
|
|
56
|
+
for (const ws of monorepo.values()) {
|
|
57
|
+
if (ws.fullpath === targetAbs) {
|
|
58
|
+
return Spec.parse(ws.name, "workspace:*", specOptions);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const importerAbs = resolve(scurryCwd, importerPath);
|
|
63
|
+
const rebasedPath = relative(importerAbs, targetAbs).split("\\").join("/");
|
|
64
|
+
if (rebasedPath === spec.file) return spec;
|
|
65
|
+
return Spec.parseArgs(rebasedPath, specOptions);
|
|
66
|
+
};
|
|
48
67
|
var parseAddArgs = (config, scurry, monorepo) => {
|
|
49
68
|
const add = new AddImportersDependenciesMapImpl();
|
|
50
69
|
const items = config.positionals;
|
|
51
70
|
const type = getType(config.values);
|
|
52
71
|
const importers = getWorkspaceImporters(config.values, monorepo);
|
|
53
|
-
const newDependencies = /* @__PURE__ */ new Map();
|
|
54
72
|
const specOptions = config.options;
|
|
55
73
|
const getName = (s) => s.name === "(unknown)" ? s.spec : s.name;
|
|
74
|
+
const parsedItems = [];
|
|
75
|
+
let hasFileSpecs = false;
|
|
56
76
|
for (const item of items) {
|
|
57
77
|
const spec = Spec.parseArgs(item, specOptions);
|
|
58
|
-
|
|
78
|
+
parsedItems.push({ spec, type });
|
|
79
|
+
if (spec.type === "file") hasFileSpecs = true;
|
|
59
80
|
add.modifiedDependencies = true;
|
|
60
81
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
if (hasFileSpecs && importers.size) {
|
|
83
|
+
const scurryCwd = scurry.cwd.fullpath();
|
|
84
|
+
for (const importer of importers) {
|
|
85
|
+
const [, importerPath] = splitDepID(importer);
|
|
86
|
+
const importerDeps = /* @__PURE__ */ new Map();
|
|
87
|
+
for (const { spec, type: depType } of parsedItems) {
|
|
88
|
+
const rebased = rebaseFileSpec(
|
|
89
|
+
spec,
|
|
90
|
+
importerPath,
|
|
91
|
+
scurryCwd,
|
|
92
|
+
specOptions,
|
|
93
|
+
monorepo
|
|
94
|
+
);
|
|
95
|
+
importerDeps.set(
|
|
96
|
+
getName(rebased),
|
|
97
|
+
asDependency({ spec: rebased, type: depType })
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
add.set(importer, importerDeps);
|
|
101
|
+
}
|
|
102
|
+
} else {
|
|
103
|
+
const newDependencies = /* @__PURE__ */ new Map();
|
|
104
|
+
for (const { spec, type: depType } of parsedItems) {
|
|
105
|
+
newDependencies.set(
|
|
106
|
+
getName(spec),
|
|
107
|
+
asDependency({ spec, type: depType })
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
for (const importer of importers) {
|
|
111
|
+
add.set(importer, newDependencies);
|
|
112
|
+
}
|
|
113
|
+
if (!importers.size) {
|
|
114
|
+
const cwdDepID = getCwdDepID(scurry);
|
|
115
|
+
add.set(cwdDepID, newDependencies);
|
|
116
|
+
}
|
|
67
117
|
}
|
|
68
118
|
return {
|
|
69
119
|
add
|
|
@@ -12,12 +12,12 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
init,
|
|
14
14
|
install
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YQXDHMHG.js";
|
|
16
16
|
import {
|
|
17
17
|
asWSConfig,
|
|
18
18
|
assertWSConfig,
|
|
19
19
|
minimatch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KRGA5VLT.js";
|
|
21
21
|
import {
|
|
22
22
|
load,
|
|
23
23
|
save
|
|
@@ -0,0 +1,73 @@
|
|
|
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-SQZRJLJA.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-BMZ5UERM.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-LGQI6OGM.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-JWHNATAX.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-FQJANSQW.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-4KQTTXJH.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-KN6AXEA6.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-P26WHVFB.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-FA2BT7SA.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-OAPIY4SC.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-3AHODVRN.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-I4OJX76E.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-CVZGHJZS.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-QFIQSPNS.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-QLADIAP5.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-B7CU2BLC.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-OB6SNHOZ.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-OTFV3LOM.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-LG2ZOIDQ.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-KUI773AM.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-C55TTBIQ.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-VNUOC26G.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-H4RJEBK5.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-DIJ5JUSE.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-XF2TRBPH.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-BGP5JMJ7.js"),
|
|
47
|
+
"./commands/repo.ts": () => import("./repo-NCEHK7KB.js"),
|
|
48
|
+
"./commands/run-exec.ts": () => import("./run-exec-F5OV7MVN.js"),
|
|
49
|
+
"./commands/run.ts": () => import("./run-ZNJJYEJF.js"),
|
|
50
|
+
"./commands/token.ts": () => import("./token-KXCVRJGF.js"),
|
|
51
|
+
"./commands/uninstall.ts": () => import("./uninstall-33SUWR6K.js"),
|
|
52
|
+
"./commands/unpublish.ts": () => import("./unpublish-7AZPBZF2.js"),
|
|
53
|
+
"./commands/update.ts": () => import("./update-2EQF6IKZ.js"),
|
|
54
|
+
"./commands/version.ts": () => import("./version-HFYI3SEX.js"),
|
|
55
|
+
"./commands/view.ts": () => import("./view-C5OT36OB.js"),
|
|
56
|
+
"./commands/whoami.ts": () => import("./whoami-KKFV3XR6.js")
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
60
|
+
var loadCommand = async (command) => {
|
|
61
|
+
try {
|
|
62
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
63
|
+
} catch (e) {
|
|
64
|
+
throw error("Could not load command", {
|
|
65
|
+
found: command,
|
|
66
|
+
cause: e
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
loadCommand
|
|
73
|
+
};
|
|
@@ -11,18 +11,18 @@ 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-LEX7YPHR.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KRGA5VLT.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IAKUGHGT.js";
|
|
23
23
|
import {
|
|
24
24
|
getOptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JKAZKVQU.js";
|
|
26
26
|
import {
|
|
27
27
|
find,
|
|
28
28
|
load,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
assertRecordStringString,
|
|
41
41
|
assertRecordStringT,
|
|
42
42
|
isRecordStringString
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6YXVQ5HC.js";
|
|
44
44
|
import {
|
|
45
45
|
error
|
|
46
46
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-HQ4US6G3.js";
|
|
17
17
|
import {
|
|
18
18
|
minimatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KRGA5VLT.js";
|
|
20
20
|
import {
|
|
21
21
|
Spec2 as Spec
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JKAZKVQU.js";
|
|
23
23
|
import {
|
|
24
24
|
parse,
|
|
25
25
|
stringify
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
graphRun,
|
|
14
14
|
graphRunSync,
|
|
15
15
|
joinDepIDTuple
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IAKUGHGT.js";
|
|
17
17
|
import {
|
|
18
18
|
Spec2 as Spec,
|
|
19
19
|
isSpec
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JKAZKVQU.js";
|
|
21
21
|
import {
|
|
22
22
|
load,
|
|
23
23
|
parse as parse2,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
normalizeManifest,
|
|
40
40
|
parse,
|
|
41
41
|
satisfies
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6YXVQ5HC.js";
|
|
43
43
|
import {
|
|
44
44
|
error
|
|
45
45
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
pickManifest,
|
|
21
21
|
resolve,
|
|
22
22
|
revs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KRGA5VLT.js";
|
|
24
24
|
import {
|
|
25
25
|
Spec2 as Spec
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JKAZKVQU.js";
|
|
27
27
|
import {
|
|
28
28
|
RegistryClient
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DI2CYYXF.js";
|
|
30
30
|
import {
|
|
31
31
|
rimraf
|
|
32
32
|
} from "./chunk-R44FR7BY.js";
|
|
33
33
|
import {
|
|
34
34
|
asError,
|
|
35
35
|
asPackument
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6YXVQ5HC.js";
|
|
37
37
|
import {
|
|
38
38
|
XDG
|
|
39
39
|
} from "./chunk-XNLSTHDK.js";
|