@vltpkg/cli-js 1.0.2 → 1.0.4

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 (85) hide show
  1. package/{access-DB347PPG.js → access-RYNHM3DJ.js} +9 -7
  2. package/{bugs-QBKI62J6.js → bugs-ZHOC4U52.js} +19 -18
  3. package/{build-EFJ3FFGU.js → build-HTM6Z7OQ.js} +12 -10
  4. package/{cache-BQJCMDJN.js → cache-74GIE5TO.js} +23 -21
  5. package/cache-unzip-src-unzip.js +23 -1
  6. package/{chunk-3HUTU5SO.js → chunk-2CLRMD5A.js} +2483 -1847
  7. package/{chunk-RXNA2XCX.js → chunk-4KCU2KZL.js} +8 -1
  8. package/{chunk-5PFGKHIS.js → chunk-A2EWSQPE.js} +10 -10
  9. package/{chunk-TM4LHSZV.js → chunk-AIQ7Z62O.js} +3 -3
  10. package/chunk-AK3RSABL.js +903 -0
  11. package/{chunk-YRMICBI4.js → chunk-AMDP7LYB.js} +5 -5
  12. package/chunk-BJBFEQRR.js +667 -0
  13. package/{chunk-ULCDRVY2.js → chunk-E737X73P.js} +38 -24
  14. package/{chunk-5OGQND6H.js → chunk-GXWZ5T4W.js} +3 -1
  15. package/{chunk-CNSTFT7U.js → chunk-HAYXR3MW.js} +1 -1
  16. package/{chunk-Q46JRSZU.js → chunk-IITIX4ID.js} +22 -3
  17. package/{chunk-L34LR5DV.js → chunk-JOEHZSS7.js} +4 -4
  18. package/chunk-LPIBYUMT.js +854 -0
  19. package/{chunk-YDUHQU7N.js → chunk-MZIM7X37.js} +3 -3
  20. package/{chunk-FM5DQZVN.js → chunk-OCJDISSI.js} +2 -2
  21. package/{chunk-47IR6Z6C.js → chunk-OR5LSCSK.js} +160 -105
  22. package/{chunk-F2GLBPGQ.js → chunk-PDLEQEZ3.js} +132 -81
  23. package/{chunk-42UTZKAU.js → chunk-R55OHZ2R.js} +8 -8
  24. package/{chunk-DEMBZY23.js → chunk-RB6SUM6U.js} +11 -11
  25. package/chunk-SKQHW56B.js +75 -0
  26. package/{chunk-ONVLPT73.js → chunk-T4GYDWUJ.js} +1 -1
  27. package/{chunk-BSB4XGBB.js → chunk-VB3IWNHX.js} +1 -1
  28. package/chunk-VE6CCH33.js +3000 -0
  29. package/{chunk-3MBSXZ62.js → chunk-WNDUKE42.js} +24 -17
  30. package/{chunk-NS4VFXHX.js → chunk-XU5SMHXP.js} +1 -1
  31. package/{chunk-CTDFRLS4.js → chunk-YRKCPGWZ.js} +5 -5
  32. package/{chunk-FWKQ7YDF.js → chunk-ZWKI5OSF.js} +118 -117
  33. package/{ci-A22A6TCQ.js → ci-XT7IAX2Y.js} +17 -16
  34. package/cli-package.json +1 -1
  35. package/{config-VOLRKFYD.js → config-B2LF4SJ7.js} +16 -19
  36. package/{config-JL4TW2AV.js → config-SRLA2XPZ.js} +10 -13
  37. package/{create-SL7HEXCS.js → create-VKNML6FC.js} +23 -23
  38. package/{deprecate-ZK525LQW.js → deprecate-IM4HEDIP.js} +17 -15
  39. package/{devtools-HGLF4KAO.js → devtools-66MVSNF5.js} +30 -30
  40. package/{dist-tag-FY3FB5VH.js → dist-tag-EKVJAQ66.js} +11 -9
  41. package/{docs-6BPWZJFW.js → docs-4DHMAMOU.js} +19 -18
  42. package/{exec-JZ5J7DI7.js → exec-7C74Z3WB.js} +23 -23
  43. package/{exec-cache-VGSXKZVF.js → exec-cache-QTUCQWSA.js} +22 -22
  44. package/{exec-local-GPZUSOSM.js → exec-local-ZCNI2JHK.js} +20 -18
  45. package/{help-XI7TNIRU.js → help-IKRPBT2R.js} +3 -3
  46. package/{init-6KWM7CDI.js → init-PCQ4YK7R.js} +12 -10
  47. package/{install-4VLOKCWH.js → install-OAQ4K3XX.js} +18 -17
  48. package/{list-3VLGWGKU.js → list-WYBKBCZU.js} +20 -18
  49. package/{login-3DGPSWCG.js → login-TTRCQ43Z.js} +9 -7
  50. package/{logout-DBFMZC6J.js → logout-3J77F4OO.js} +9 -7
  51. package/{pack-LHNYEZ5W.js → pack-ZLFGYGVZ.js} +16 -14
  52. package/package.json +1 -1
  53. package/{ping-VLLX5LIH.js → ping-IRLV5C4D.js} +9 -7
  54. package/{pkg-FYPUMX7U.js → pkg-EKOQ4XKM.js} +13 -11
  55. package/{profile-FOQ74TB7.js → profile-7UBKGJBP.js} +9 -7
  56. package/{publish-DFURU7DW.js → publish-2ODYT4R2.js} +21 -19
  57. package/{query-NC3EABMW.js → query-ADSAKEK4.js} +20 -18
  58. package/{registry-5DUFCPD6.js → registry-CZPFR3OF.js} +3 -3
  59. package/registry-client-package.json +1 -1
  60. package/registry-client-src-revalidate.js +1263 -610
  61. package/{repo-IZXACKQ2.js → repo-3THXRT64.js} +19 -18
  62. package/{chunk-UVZJFBYE.js → reporter-6BFJCFVZ.js} +87 -87
  63. package/{run-RDFVO7FY.js → run-2QLSVP6M.js} +20 -18
  64. package/{run-exec-OGMXEVN5.js → run-exec-VYD2Q4BD.js} +20 -18
  65. package/security-archive-src-update-expired.js +11 -2
  66. package/{setup-KTJQPDJB.js → setup-TDX5NXUN.js} +15 -13
  67. package/{src-BJU7XZNK.js → src-AVMBIRBC.js} +22 -23
  68. package/{reporter-UU654STB.js → src-SWL4UPPI.js} +42 -7
  69. package/src-X66SVM5T.js +933 -0
  70. package/{token-SKICECA4.js → token-3RDRZ4AO.js} +9 -7
  71. package/{uninstall-MTZJ33TO.js → uninstall-CNAFZTLA.js} +18 -17
  72. package/{unpublish-3QBJZFHQ.js → unpublish-7YHQQYZG.js} +12 -10
  73. package/{update-TH477PKA.js → update-3W27EZWN.js} +17 -16
  74. package/{version-YIBQZLQS.js → version-K37LT6GZ.js} +13 -11
  75. package/{view-FG74OAOV.js → view-ZVAYKUL2.js} +18 -20
  76. package/vlr.js +1 -1
  77. package/vlrx.js +1 -1
  78. package/vlt.js +1 -1
  79. package/vlx.js +1 -1
  80. package/vlxl.js +1 -1
  81. package/{whoami-LHJ4PRJQ.js → whoami-IOUW56D6.js} +9 -7
  82. package/chunk-7NHXV6AH.js +0 -4488
  83. package/chunk-WAFERMRI.js +0 -1663
  84. package/chunk-ZLZ4XF46.js +0 -75
  85. package/{chunk-Y7CQIZ7Y.js → chunk-FEIPJIEN.js} +3 -3
@@ -13,7 +13,10 @@ import {
13
13
  graphRun,
14
14
  graphRunSync,
15
15
  joinDepIDTuple
16
- } from "./chunk-FM5DQZVN.js";
16
+ } from "./chunk-OCJDISSI.js";
17
+ import {
18
+ Spec
19
+ } from "./chunk-XU5SMHXP.js";
17
20
  import {
18
21
  load,
19
22
  parse as parse2,
@@ -23,12 +26,11 @@ import {
23
26
  import {
24
27
  I,
25
28
  promiseSpawn,
26
- ts,
27
29
  whichSync
28
- } from "./chunk-7NHXV6AH.js";
30
+ } from "./chunk-LPIBYUMT.js";
29
31
  import {
30
- Spec
31
- } from "./chunk-NS4VFXHX.js";
32
+ ts
33
+ } from "./chunk-VE6CCH33.js";
32
34
  import {
33
35
  Range,
34
36
  Version,
@@ -39,7 +41,7 @@ import {
39
41
  normalizeManifest,
40
42
  parse,
41
43
  satisfies
42
- } from "./chunk-Q46JRSZU.js";
44
+ } from "./chunk-IITIX4ID.js";
43
45
  import {
44
46
  error
45
47
  } from "./chunk-WZWDS3W4.js";
@@ -1283,7 +1285,7 @@ var range = (a, b, str) => {
1283
1285
  return result;
1284
1286
  };
1285
1287
 
1286
- // ../../node_modules/.vlt/~npm~brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
1288
+ // ../../node_modules/.vlt/~npm~brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
1287
1289
  var escSlash = "\0SLASH" + Math.random() + "\0";
1288
1290
  var escOpen = "\0OPEN" + Math.random() + "\0";
1289
1291
  var escClose = "\0CLOSE" + Math.random() + "\0";
@@ -1300,6 +1302,7 @@ var closePattern = /\\}/g;
1300
1302
  var commaPattern = /\\,/g;
1301
1303
  var periodPattern = /\\\./g;
1302
1304
  var EXPANSION_MAX = 1e5;
1305
+ var EXPANSION_MAX_LENGTH = 4e6;
1303
1306
  function numeric(str) {
1304
1307
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
1305
1308
  }
@@ -1334,11 +1337,11 @@ function expand(str, options = {}) {
1334
1337
  if (!str) {
1335
1338
  return [];
1336
1339
  }
1337
- const { max = EXPANSION_MAX } = options;
1340
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
1338
1341
  if (str.slice(0, 2) === "{}") {
1339
1342
  str = "\\{\\}" + str.slice(2);
1340
1343
  }
1341
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
1344
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
1342
1345
  }
1343
1346
  function embrace(str) {
1344
1347
  return "{" + str + "}";
@@ -1352,20 +1355,87 @@ function lte(i, y) {
1352
1355
  function gte(i, y) {
1353
1356
  return i >= y;
1354
1357
  }
1355
- function expand_(str, max, isTop) {
1356
- const expansions = [];
1358
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
1359
+ const out = [];
1360
+ let length = 0;
1361
+ for (let a = 0; a < acc.length; a++) {
1362
+ for (let v = 0; v < values.length; v++) {
1363
+ if (out.length >= max)
1364
+ return out;
1365
+ const expansion = acc[a] + pre + values[v];
1366
+ if (dropEmpties && !expansion)
1367
+ continue;
1368
+ if (length + expansion.length > maxLength)
1369
+ return out;
1370
+ out.push(expansion);
1371
+ length += expansion.length;
1372
+ }
1373
+ }
1374
+ return out;
1375
+ }
1376
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
1377
+ const n = body.split(/\.\./);
1378
+ const N = [];
1379
+ if (n[0] === void 0 || n[1] === void 0) {
1380
+ return N;
1381
+ }
1382
+ const x = numeric(n[0]);
1383
+ const y = numeric(n[1]);
1384
+ const width = Math.max(n[0].length, n[1].length);
1385
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
1386
+ let test = lte;
1387
+ const reverse = y < x;
1388
+ if (reverse) {
1389
+ incr *= -1;
1390
+ test = gte;
1391
+ }
1392
+ const pad = n.some(isPadded);
1393
+ let length = 0;
1394
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
1395
+ let c;
1396
+ if (isAlphaSequence) {
1397
+ c = String.fromCharCode(i);
1398
+ if (c === "\\") {
1399
+ c = "";
1400
+ }
1401
+ } else {
1402
+ c = String(i);
1403
+ if (pad) {
1404
+ const need = width - c.length;
1405
+ if (need > 0) {
1406
+ const z = new Array(need + 1).join("0");
1407
+ if (i < 0) {
1408
+ c = "-" + z + c.slice(1);
1409
+ } else {
1410
+ c = z + c;
1411
+ }
1412
+ }
1413
+ }
1414
+ }
1415
+ if (length + c.length > maxLength)
1416
+ break;
1417
+ N.push(c);
1418
+ length += c.length;
1419
+ }
1420
+ return N;
1421
+ }
1422
+ function expand_(str, max, maxLength, isTop) {
1423
+ let acc = [""];
1424
+ let dropEmpties = false;
1425
+ let firstGroup = true;
1357
1426
  for (; ; ) {
1358
1427
  const m = balanced("{", "}", str);
1359
- if (!m)
1360
- return [str];
1428
+ if (!m) {
1429
+ return combine(acc, str, [""], max, maxLength, dropEmpties);
1430
+ }
1361
1431
  const pre = m.pre;
1362
- if (/\$$/.test(m.pre)) {
1363
- const post2 = m.post.length ? expand_(m.post, max, false) : [""];
1364
- for (let k = 0; k < post2.length && k < max; k++) {
1365
- const expansion = pre + "{" + m.body + "}" + post2[k];
1366
- expansions.push(expansion);
1367
- }
1368
- return expansions;
1432
+ if (/\$$/.test(pre)) {
1433
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
1434
+ firstGroup = false;
1435
+ if (!m.post.length)
1436
+ break;
1437
+ str = m.post;
1438
+ continue;
1369
1439
  }
1370
1440
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
1371
1441
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -1377,77 +1447,58 @@ function expand_(str, max, isTop) {
1377
1447
  isTop = true;
1378
1448
  continue;
1379
1449
  }
1380
- return [str];
1450
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
1381
1451
  }
1382
- const post = m.post.length ? expand_(m.post, max, false) : [""];
1383
- let n;
1452
+ if (firstGroup) {
1453
+ dropEmpties = isTop && !isSequence;
1454
+ firstGroup = false;
1455
+ }
1456
+ let values;
1384
1457
  if (isSequence) {
1385
- n = m.body.split(/\.\./);
1458
+ values = expandSequence(m.body, isAlphaSequence, max, maxLength);
1386
1459
  } else {
1387
- n = parseCommaParts(m.body);
1460
+ let n = parseCommaParts(m.body);
1388
1461
  if (n.length === 1 && n[0] !== void 0) {
1389
- n = expand_(n[0], max, false).map(embrace);
1462
+ n = expand_(n[0], max, maxLength, false).map(embrace);
1390
1463
  if (n.length === 1) {
1391
- return post.map((p) => m.pre + n[0] + p);
1464
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
1465
+ if (!m.post.length)
1466
+ break;
1467
+ str = m.post;
1468
+ continue;
1392
1469
  }
1393
1470
  }
1394
- }
1395
- let N;
1396
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
1397
- const x = numeric(n[0]);
1398
- const y = numeric(n[1]);
1399
- const width = Math.max(n[0].length, n[1].length);
1400
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
1401
- let test = lte;
1402
- const reverse = y < x;
1403
- if (reverse) {
1404
- incr *= -1;
1405
- test = gte;
1406
- }
1407
- const pad = n.some(isPadded);
1408
- N = [];
1409
- for (let i = x; test(i, y) && N.length < max; i += incr) {
1410
- let c;
1411
- if (isAlphaSequence) {
1412
- c = String.fromCharCode(i);
1413
- if (c === "\\") {
1414
- c = "";
1415
- }
1416
- } else {
1417
- c = String(i);
1418
- if (pad) {
1419
- const need = width - c.length;
1420
- if (need > 0) {
1421
- const z = new Array(need + 1).join("0");
1422
- if (i < 0) {
1423
- c = "-" + z + c.slice(1);
1424
- } else {
1425
- c = z + c;
1426
- }
1427
- }
1428
- }
1471
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
1472
+ for (let d = 0; dropsEmpties && d < acc.length; d++) {
1473
+ if (acc[d]) {
1474
+ dropsEmpties = false;
1429
1475
  }
1430
- N.push(c);
1431
- }
1432
- } else {
1433
- N = [];
1434
- for (let j = 0; j < n.length; j++) {
1435
- N.push.apply(N, expand_(n[j], max, false));
1436
1476
  }
1437
- }
1438
- for (let j = 0; j < N.length; j++) {
1439
- for (let k = 0; k < post.length && expansions.length < max; k++) {
1440
- const expansion = pre + N[j] + post[k];
1441
- if (!isTop || isSequence || expansion) {
1442
- expansions.push(expansion);
1477
+ values = [];
1478
+ let valuesLength = 0;
1479
+ outer: for (let j = 0; j < n.length; j++) {
1480
+ const expanded = expand_(n[j], max, maxLength, false);
1481
+ for (let k = 0; k < expanded.length; k++) {
1482
+ const v = expanded[k];
1483
+ if (dropsEmpties && !v)
1484
+ continue;
1485
+ if (values.length >= max || valuesLength + v.length > maxLength) {
1486
+ break outer;
1487
+ }
1488
+ values.push(v);
1489
+ valuesLength += v.length;
1443
1490
  }
1444
1491
  }
1445
1492
  }
1446
- return expansions;
1493
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
1494
+ if (!m.post.length)
1495
+ break;
1496
+ str = m.post;
1447
1497
  }
1498
+ return acc;
1448
1499
  }
1449
1500
 
1450
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
1501
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
1451
1502
  var MAX_PATTERN_LENGTH = 1024 * 64;
1452
1503
  var assertValidPattern = (pattern) => {
1453
1504
  if (typeof pattern !== "string") {
@@ -1458,7 +1509,7 @@ var assertValidPattern = (pattern) => {
1458
1509
  }
1459
1510
  };
1460
1511
 
1461
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
1512
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
1462
1513
  var posixClasses = {
1463
1514
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
1464
1515
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -1567,7 +1618,7 @@ var parseClass = (glob, position) => {
1567
1618
  return [comb, uflag, endPos - pos, true];
1568
1619
  };
1569
1620
 
1570
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
1621
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
1571
1622
  var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
1572
1623
  if (magicalBraces) {
1573
1624
  return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
@@ -1575,7 +1626,7 @@ var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {})
1575
1626
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
1576
1627
  };
1577
1628
 
1578
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
1629
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
1579
1630
  var _a;
1580
1631
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
1581
1632
  var isExtglobType = (c) => types.has(c);
@@ -2219,7 +2270,7 @@ var AST = class {
2219
2270
  };
2220
2271
  _a = AST;
2221
2272
 
2222
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
2273
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
2223
2274
  var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
2224
2275
  if (magicalBraces) {
2225
2276
  return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -2227,7 +2278,7 @@ var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) =
2227
2278
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
2228
2279
  };
2229
2280
 
2230
- // ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
2281
+ // ../../node_modules/.vlt/~npm~minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
2231
2282
  var minimatch = (p, pattern, options = {}) => {
2232
2283
  assertValidPattern(pattern);
2233
2284
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -14,26 +14,26 @@ import {
14
14
  } from "./chunk-RIYFGX27.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-YDUHQU7N.js";
17
+ } from "./chunk-MZIM7X37.js";
18
18
  import {
19
19
  stderr,
20
20
  stdout,
21
21
  styleTextStdout
22
- } from "./chunk-ULCDRVY2.js";
22
+ } from "./chunk-E737X73P.js";
23
+ import {
24
+ require_emoji_regex
25
+ } from "./chunk-VTEFO2FT.js";
23
26
  import {
24
27
  Query,
25
28
  actual,
26
29
  isRunResult
27
- } from "./chunk-47IR6Z6C.js";
28
- import {
29
- require_emoji_regex
30
- } from "./chunk-VTEFO2FT.js";
30
+ } from "./chunk-OR5LSCSK.js";
31
31
  import {
32
32
  Monorepo
33
- } from "./chunk-F2GLBPGQ.js";
33
+ } from "./chunk-PDLEQEZ3.js";
34
34
  import {
35
35
  isErrorWithCause
36
- } from "./chunk-Q46JRSZU.js";
36
+ } from "./chunk-IITIX4ID.js";
37
37
  import {
38
38
  error
39
39
  } from "./chunk-WZWDS3W4.js";
@@ -9,28 +9,28 @@ globalThis.setInterval = _vlt_setInterval;
9
9
  globalThis.clearInterval = _vlt_clearInterval;
10
10
  import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
+ import {
13
+ PackageInfoClient
14
+ } from "./chunk-AK3RSABL.js";
12
15
  import {
13
16
  findCmdShimIfExists,
14
17
  install
15
- } from "./chunk-47IR6Z6C.js";
16
- import {
17
- PackageInfoClient
18
- } from "./chunk-WAFERMRI.js";
18
+ } from "./chunk-OR5LSCSK.js";
19
19
  import {
20
20
  PathScurry
21
- } from "./chunk-F2GLBPGQ.js";
22
- import {
23
- walkUp
24
- } from "./chunk-HTOTG4TS.js";
21
+ } from "./chunk-PDLEQEZ3.js";
25
22
  import {
26
23
  Spec
27
- } from "./chunk-NS4VFXHX.js";
24
+ } from "./chunk-XU5SMHXP.js";
28
25
  import {
29
- parseScope
30
- } from "./chunk-Q46JRSZU.js";
26
+ walkUp
27
+ } from "./chunk-HTOTG4TS.js";
31
28
  import {
32
29
  XDG
33
30
  } from "./chunk-XNLSTHDK.js";
31
+ import {
32
+ parseScope
33
+ } from "./chunk-IITIX4ID.js";
34
34
  import {
35
35
  error
36
36
  } 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-RYNHM3DJ.js"),
22
+ "./commands/bugs.ts": () => import("./bugs-ZHOC4U52.js"),
23
+ "./commands/build.ts": () => import("./build-HTM6Z7OQ.js"),
24
+ "./commands/cache.ts": () => import("./cache-74GIE5TO.js"),
25
+ "./commands/ci.ts": () => import("./ci-XT7IAX2Y.js"),
26
+ "./commands/config.ts": () => import("./config-B2LF4SJ7.js"),
27
+ "./commands/create.ts": () => import("./create-VKNML6FC.js"),
28
+ "./commands/deprecate.ts": () => import("./deprecate-IM4HEDIP.js"),
29
+ "./commands/dist-tag.ts": () => import("./dist-tag-EKVJAQ66.js"),
30
+ "./commands/docs.ts": () => import("./docs-4DHMAMOU.js"),
31
+ "./commands/exec-cache.ts": () => import("./exec-cache-QTUCQWSA.js"),
32
+ "./commands/exec-local.ts": () => import("./exec-local-ZCNI2JHK.js"),
33
+ "./commands/exec.ts": () => import("./exec-7C74Z3WB.js"),
34
+ "./commands/help.ts": () => import("./help-IKRPBT2R.js"),
35
+ "./commands/init.ts": () => import("./init-PCQ4YK7R.js"),
36
+ "./commands/install.ts": () => import("./install-OAQ4K3XX.js"),
37
+ "./commands/install/reporter.ts": () => import("./reporter-6BFJCFVZ.js"),
38
+ "./commands/list.ts": () => import("./list-WYBKBCZU.js"),
39
+ "./commands/login.ts": () => import("./login-TTRCQ43Z.js"),
40
+ "./commands/logout.ts": () => import("./logout-3J77F4OO.js"),
41
+ "./commands/pack.ts": () => import("./pack-ZLFGYGVZ.js"),
42
+ "./commands/ping.ts": () => import("./ping-IRLV5C4D.js"),
43
+ "./commands/pkg.ts": () => import("./pkg-EKOQ4XKM.js"),
44
+ "./commands/profile.ts": () => import("./profile-7UBKGJBP.js"),
45
+ "./commands/publish.ts": () => import("./publish-2ODYT4R2.js"),
46
+ "./commands/query.ts": () => import("./query-ADSAKEK4.js"),
47
+ "./commands/registry.ts": () => import("./registry-CZPFR3OF.js"),
48
+ "./commands/repo.ts": () => import("./repo-3THXRT64.js"),
49
+ "./commands/run-exec.ts": () => import("./run-exec-VYD2Q4BD.js"),
50
+ "./commands/run.ts": () => import("./run-2QLSVP6M.js"),
51
+ "./commands/setup.ts": () => import("./setup-TDX5NXUN.js"),
52
+ "./commands/token.ts": () => import("./token-3RDRZ4AO.js"),
53
+ "./commands/uninstall.ts": () => import("./uninstall-CNAFZTLA.js"),
54
+ "./commands/unpublish.ts": () => import("./unpublish-7YHQQYZG.js"),
55
+ "./commands/update.ts": () => import("./update-3W27EZWN.js"),
56
+ "./commands/version.ts": () => import("./version-K37LT6GZ.js"),
57
+ "./commands/view.ts": () => import("./view-ZVAYKUL2.js"),
58
+ "./commands/whoami.ts": () => import("./whoami-IOUW56D6.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-Q46JRSZU.js";
14
+ } from "./chunk-IITIX4ID.js";
15
15
  import {
16
16
  error
17
17
  } from "./chunk-WZWDS3W4.js";
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  isError,
14
14
  isObject
15
- } from "./chunk-Q46JRSZU.js";
15
+ } from "./chunk-IITIX4ID.js";
16
16
 
17
17
  // ../../src/output/src/error.ts
18
18
  var parseError = (err) => {