@vltpkg/cli-js 1.0.0-rc.30 → 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.
Files changed (69) hide show
  1. package/{access-I7Q5S4HE.js → access-SQZRJLJA.js} +2 -2
  2. package/{bugs-XJDVOIWV.js → bugs-BMZ5UERM.js} +9 -9
  3. package/{build-KFMSG6YJ.js → build-LGQI6OGM.js} +6 -6
  4. package/{cache-RL4MUZZ4.js → cache-JWHNATAX.js} +6 -6
  5. package/{chunk-6SMCDBB5.js → chunk-3TVABXAG.js} +2 -2
  6. package/{chunk-LPLXAVG7.js → chunk-5UXEBLLT.js} +3 -3
  7. package/{chunk-Q3DNNTPG.js → chunk-6YXVQ5HC.js} +112 -7
  8. package/{chunk-AAO77QBG.js → chunk-7XE7OES7.js} +62 -12
  9. package/{chunk-IYO5QKUW.js → chunk-DFNHGGGV.js} +1 -1
  10. package/{chunk-UUE6D7ZK.js → chunk-DI2CYYXF.js} +1 -1
  11. package/{chunk-EGIFRSA7.js → chunk-DIKKTUBV.js} +2 -2
  12. package/{chunk-MAIQR5GM.js → chunk-DM3WGEVB.js} +1 -1
  13. package/chunk-FXIBCUIM.js +73 -0
  14. package/{chunk-CX6CSVSZ.js → chunk-G6PG3AGN.js} +5 -5
  15. package/{chunk-TYV4N3S3.js → chunk-IAKUGHGT.js} +1 -1
  16. package/{chunk-QI6JZT5E.js → chunk-JBVLIV37.js} +2 -2
  17. package/{chunk-IEISSXS4.js → chunk-JKAZKVQU.js} +3 -2
  18. package/{chunk-XYCCQT7N.js → chunk-KRGA5VLT.js} +3 -3
  19. package/{chunk-DPQWORL7.js → chunk-LEX7YPHR.js} +4 -4
  20. package/{chunk-YXHBZAYO.js → chunk-M2WD7IBO.js} +1 -1
  21. package/{chunk-FXFN5J74.js → chunk-SDBTQF2Y.js} +5 -5
  22. package/{chunk-I626GJCR.js → chunk-SIXXDCBI.js} +5 -5
  23. package/{chunk-LUL76G2K.js → chunk-XFQ2EH5D.js} +3 -3
  24. package/{chunk-E76YOTJF.js → chunk-YQXDHMHG.js} +238 -42
  25. package/{chunk-BCS77CZK.js → chunk-ZUP6UTME.js} +1 -1
  26. package/{ci-25PDKMKT.js → ci-FQJANSQW.js} +7 -7
  27. package/cli-package.json +1 -1
  28. package/{config-SGKD6FN7.js → config-4KQTTXJH.js} +8 -8
  29. package/{config-EUN3UG63.js → config-LRL3N7TN.js} +7 -7
  30. package/{create-7MBL7X4J.js → create-KN6AXEA6.js} +13 -13
  31. package/{deprecate-RXSOKRB6.js → deprecate-P26WHVFB.js} +6 -6
  32. package/{dist-tag-TR6YTPWB.js → dist-tag-FA2BT7SA.js} +3 -3
  33. package/{docs-SXJQN3VK.js → docs-OAPIY4SC.js} +9 -9
  34. package/{exec-GZUI7N7U.js → exec-CVZGHJZS.js} +13 -13
  35. package/{exec-cache-ERIWZB3O.js → exec-cache-3AHODVRN.js} +11 -11
  36. package/{exec-local-5EIXJDU2.js → exec-local-I4OJX76E.js} +10 -10
  37. package/{help-VZXBYP36.js → help-QFIQSPNS.js} +1 -1
  38. package/{init-B3GRYNH5.js → init-QLADIAP5.js} +7 -7
  39. package/{install-GFUAOCU3.js → install-B7CU2BLC.js} +8 -8
  40. package/{list-SWSGDOS2.js → list-OTFV3LOM.js} +10 -10
  41. package/{login-2QU5SPGP.js → login-LG2ZOIDQ.js} +2 -2
  42. package/{logout-DVW3KZKJ.js → logout-KUI773AM.js} +2 -2
  43. package/{pack-GNYL35NY.js → pack-C55TTBIQ.js} +8 -8
  44. package/package.json +1 -1
  45. package/{ping-5NKJAV3C.js → ping-VNUOC26G.js} +2 -2
  46. package/{pkg-XGXCIZCS.js → pkg-H4RJEBK5.js} +8 -8
  47. package/{profile-OZYH6GL2.js → profile-DIJ5JUSE.js} +2 -2
  48. package/{publish-PUXCD3CT.js → publish-XF2TRBPH.js} +9 -9
  49. package/{query-TUQMPQGD.js → query-BGP5JMJ7.js} +10 -10
  50. package/registry-client-package.json +1 -1
  51. package/{repo-ALXGJFIG.js → repo-NCEHK7KB.js} +9 -9
  52. package/{reporter-MSQWYN76.js → reporter-OB6SNHOZ.js} +2 -2
  53. package/{run-GM2E5WHJ.js → run-ZNJJYEJF.js} +10 -10
  54. package/{run-exec-3AMM56A3.js → run-exec-F5OV7MVN.js} +10 -10
  55. package/security-archive-src-update-expired.js +2 -1
  56. package/{src-QQVS7FWK.js → src-M3WI7TSB.js} +10 -10
  57. package/{token-MW32RFPW.js → token-KXCVRJGF.js} +5 -3
  58. package/{uninstall-QTAVWQNB.js → uninstall-33SUWR6K.js} +8 -8
  59. package/{unpublish-B5JROG62.js → unpublish-7AZPBZF2.js} +3 -3
  60. package/{update-P274ATK3.js → update-2EQF6IKZ.js} +7 -7
  61. package/{version-23AKGCGL.js → version-HFYI3SEX.js} +7 -7
  62. package/{view-Q35LCZGS.js → view-C5OT36OB.js} +7 -7
  63. package/vlr.js +1 -1
  64. package/vlrx.js +1 -1
  65. package/vlt.js +1 -1
  66. package/vlx.js +1 -1
  67. package/vlxl.js +1 -1
  68. package/{whoami-XH64UEWS.js → whoami-KKFV3XR6.js} +2 -2
  69. package/chunk-HDWMQCAC.js +0 -73
@@ -14,11 +14,11 @@ import {
14
14
  } from "./chunk-FBTBHRPG.js";
15
15
  import {
16
16
  RegistryClient
17
- } from "./chunk-UUE6D7ZK.js";
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-Q3DNNTPG.js";
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-LUL76G2K.js";
17
+ } from "./chunk-XFQ2EH5D.js";
18
18
  import {
19
19
  Query,
20
20
  actual
21
- } from "./chunk-E76YOTJF.js";
21
+ } from "./chunk-YQXDHMHG.js";
22
22
  import {
23
23
  SecurityArchive
24
- } from "./chunk-MAIQR5GM.js";
24
+ } from "./chunk-DM3WGEVB.js";
25
25
  import {
26
26
  PackageInfoClient
27
- } from "./chunk-DPQWORL7.js";
27
+ } from "./chunk-LEX7YPHR.js";
28
28
  import "./chunk-HQ4US6G3.js";
29
- import "./chunk-XYCCQT7N.js";
30
- import "./chunk-TYV4N3S3.js";
29
+ import "./chunk-KRGA5VLT.js";
30
+ import "./chunk-IAKUGHGT.js";
31
31
  import {
32
32
  Spec2 as Spec
33
- } from "./chunk-IEISSXS4.js";
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-UUE6D7ZK.js";
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-Q3DNNTPG.js";
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-E76YOTJF.js";
15
- import "./chunk-MAIQR5GM.js";
16
- import "./chunk-XYCCQT7N.js";
17
- import "./chunk-TYV4N3S3.js";
18
- import "./chunk-IEISSXS4.js";
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-Q3DNNTPG.js";
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-LPLXAVG7.js";
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-IYO5QKUW.js";
26
- import "./chunk-TYV4N3S3.js";
25
+ import "./chunk-DFNHGGGV.js";
26
+ import "./chunk-IAKUGHGT.js";
27
27
  import {
28
28
  Spec2 as Spec
29
- } from "./chunk-IEISSXS4.js";
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-UUE6D7ZK.js";
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-Q3DNNTPG.js";
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-LPLXAVG7.js";
14
+ } from "./chunk-5UXEBLLT.js";
15
15
  import {
16
16
  mermaidOutput
17
- } from "./chunk-E76YOTJF.js";
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-IYO5QKUW.js";
26
+ } from "./chunk-DFNHGGGV.js";
27
27
  import {
28
28
  isGraphRunError,
29
29
  splitDepID
30
- } from "./chunk-TYV4N3S3.js";
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-Q3DNNTPG.js";
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
- 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 });
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-E76YOTJF.js";
14
+ } from "./chunk-YQXDHMHG.js";
15
15
  import {
16
- joinDepIDTuple
17
- } from "./chunk-TYV4N3S3.js";
16
+ joinDepIDTuple,
17
+ splitDepID
18
+ } from "./chunk-IAKUGHGT.js";
18
19
  import {
19
20
  Spec2 as Spec
20
- } from "./chunk-IEISSXS4.js";
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
- newDependencies.set(getName(spec), asDependency({ spec, type }));
78
+ parsedItems.push({ spec, type });
79
+ if (spec.type === "file") hasFileSpecs = true;
59
80
  add.modifiedDependencies = true;
60
81
  }
61
- for (const importer of importers) {
62
- add.set(importer, newDependencies);
63
- }
64
- if (!importers.size) {
65
- const cwdDepID = getCwdDepID(scurry);
66
- add.set(cwdDepID, newDependencies);
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,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  isError,
14
14
  isObject
15
- } from "./chunk-Q3DNNTPG.js";
15
+ } from "./chunk-6YXVQ5HC.js";
16
16
 
17
17
  // ../../src/output/src/error.ts
18
18
  var parseError = (err) => {
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  asError,
24
24
  logRequest
25
- } from "./chunk-Q3DNNTPG.js";
25
+ } from "./chunk-6YXVQ5HC.js";
26
26
  import {
27
27
  XDG
28
28
  } from "./chunk-XNLSTHDK.js";
@@ -12,12 +12,12 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  init,
14
14
  install
15
- } from "./chunk-E76YOTJF.js";
15
+ } from "./chunk-YQXDHMHG.js";
16
16
  import {
17
17
  asWSConfig,
18
18
  assertWSConfig,
19
19
  minimatch
20
- } from "./chunk-XYCCQT7N.js";
20
+ } from "./chunk-KRGA5VLT.js";
21
21
  import {
22
22
  load,
23
23
  save
@@ -13,7 +13,7 @@ import {
13
13
  asDepID,
14
14
  baseDepID,
15
15
  splitDepID
16
- } from "./chunk-TYV4N3S3.js";
16
+ } from "./chunk-IAKUGHGT.js";
17
17
  import {
18
18
  L
19
19
  } from "./chunk-R44FR7BY.js";
@@ -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-DPQWORL7.js";
14
+ } from "./chunk-LEX7YPHR.js";
15
15
  import {
16
16
  Monorepo,
17
17
  PackageJson,
18
18
  PathScurry
19
- } from "./chunk-XYCCQT7N.js";
19
+ } from "./chunk-KRGA5VLT.js";
20
20
  import {
21
21
  resetCaches
22
- } from "./chunk-TYV4N3S3.js";
22
+ } from "./chunk-IAKUGHGT.js";
23
23
  import {
24
24
  getOptions
25
- } from "./chunk-IEISSXS4.js";
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-Q3DNNTPG.js";
43
+ } from "./chunk-6YXVQ5HC.js";
44
44
  import {
45
45
  error
46
46
  } from "./chunk-WZWDS3W4.js";
@@ -14,7 +14,7 @@ import {
14
14
  Spec2,
15
15
  currentDefaultRegistryName,
16
16
  defaultRegistryName
17
- } from "./chunk-IEISSXS4.js";
17
+ } from "./chunk-JKAZKVQU.js";
18
18
  import {
19
19
  error
20
20
  } from "./chunk-WZWDS3W4.js";
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-HQ4US6G3.js";
17
17
  import {
18
18
  minimatch
19
- } from "./chunk-XYCCQT7N.js";
19
+ } from "./chunk-KRGA5VLT.js";
20
20
  import {
21
21
  Spec2 as Spec
22
- } from "./chunk-IEISSXS4.js";
22
+ } from "./chunk-JKAZKVQU.js";
23
23
  import {
24
24
  parse,
25
25
  stringify
@@ -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
  parseRange
14
- } from "./chunk-Q3DNNTPG.js";
14
+ } from "./chunk-6YXVQ5HC.js";
15
15
  import {
16
16
  error,
17
17
  typeError
@@ -229,8 +229,9 @@ var Spec = class _Spec {
229
229
  validOptions: Object.keys(catalog)
230
230
  });
231
231
  }
232
- this.subspec = _Spec.parse(this.name, sub);
232
+ this.subspec = _Spec.parse(this.name, sub, this.options);
233
233
  this.type = "catalog";
234
+ this.registry = this.subspec.final.registry;
234
235
  return;
235
236
  }
236
237
  if (this.bareSpec.startsWith("https://")) {
@@ -13,11 +13,11 @@ import {
13
13
  graphRun,
14
14
  graphRunSync,
15
15
  joinDepIDTuple
16
- } from "./chunk-TYV4N3S3.js";
16
+ } from "./chunk-IAKUGHGT.js";
17
17
  import {
18
18
  Spec2 as Spec,
19
19
  isSpec
20
- } from "./chunk-IEISSXS4.js";
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-Q3DNNTPG.js";
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-XYCCQT7N.js";
23
+ } from "./chunk-KRGA5VLT.js";
24
24
  import {
25
25
  Spec2 as Spec
26
- } from "./chunk-IEISSXS4.js";
26
+ } from "./chunk-JKAZKVQU.js";
27
27
  import {
28
28
  RegistryClient
29
- } from "./chunk-UUE6D7ZK.js";
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-Q3DNNTPG.js";
36
+ } from "./chunk-6YXVQ5HC.js";
37
37
  import {
38
38
  XDG
39
39
  } from "./chunk-XNLSTHDK.js";
@@ -17,7 +17,7 @@ var run = async (command) => {
17
17
  if (command) {
18
18
  process.argv.splice(2, 0, command);
19
19
  }
20
- const vlt = await import("./src-QQVS7FWK.js");
20
+ const vlt = await import("./src-M3WI7TSB.js");
21
21
  await vlt.default();
22
22
  };
23
23