@vltpkg/cli-js 1.0.0-rc.27 → 1.0.0-rc.29

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-6HRR4HXE.js +293 -0
  2. package/{bugs-CS34LDPD.js → bugs-2CAZQ32S.js} +19 -22
  3. package/{build-XHEFAWMN.js → build-OAWTNBMS.js} +10 -13
  4. package/{cache-LII2V5IM.js → cache-JTAFST6T.js} +14 -15
  5. package/cache-unzip-src-unzip.js +606 -575
  6. package/{chunk-D27QPHKI.js → chunk-2V4AQPBR.js} +67 -20
  7. package/{chunk-JQHMLTO5.js → chunk-3MWZTKGK.js} +419 -328
  8. package/{chunk-DJBBJDHI.js → chunk-7RZL7BZI.js} +159 -74
  9. package/chunk-7WHVJ56C.js +73 -0
  10. package/{chunk-LAG2R3YJ.js → chunk-BW6C3YUV.js} +6 -6
  11. package/{chunk-6YTJVEK2.js → chunk-CLDF5XLG.js} +11 -11
  12. package/{chunk-DYL7AFY7.js → chunk-CPM47YUH.js} +5 -3
  13. package/{chunk-QWWYZ3TT.js → chunk-D2MVJDUA.js} +1 -1
  14. package/{chunk-5E5GX4G6.js → chunk-FBTBHRPG.js} +1 -1
  15. package/{chunk-AZLX27EM.js → chunk-FXDRM4ZO.js} +296 -258
  16. package/chunk-G2YT2GWF.js +120 -0
  17. package/{chunk-INXSTZAX.js → chunk-HAGUS4HI.js} +21 -21
  18. package/{chunk-FI5TUER7.js → chunk-HQ4US6G3.js} +681 -687
  19. package/chunk-IEISSXS4.js +711 -0
  20. package/{chunk-TRXTSZFT.js → chunk-IYO5QKUW.js} +1 -1
  21. package/{chunk-DJBVQKBB.js → chunk-K3RN3BGU.js} +5 -5
  22. package/{chunk-P2HZ4ISK.js → chunk-LPLXAVG7.js} +54 -6
  23. package/{chunk-XSUIV5NF.js → chunk-M7HPHM7B.js} +14 -12
  24. package/{chunk-BIUCOMBH.js → chunk-MAIQR5GM.js} +5 -5
  25. package/{chunk-TDTJOKF2.js → chunk-NLFBANVO.js} +8 -1
  26. package/{chunk-XWF3GJKE.js → chunk-Q3DNNTPG.js} +27 -1
  27. package/{chunk-VCSVHRCS.js → chunk-R44FR7BY.js} +1269 -590
  28. package/{chunk-QDGZZ5FZ.js → chunk-TYV4N3S3.js} +6 -692
  29. package/{chunk-LKFTVDWS.js → chunk-VPKJNCKL.js} +26 -13
  30. package/{chunk-VTZZIXYW.js → chunk-VRIS5HAW.js} +3 -3
  31. package/{chunk-S5I2UOBT.js → chunk-WX2DCAG2.js} +7 -7
  32. package/{chunk-YR47M5L7.js → chunk-XYCCQT7N.js} +34 -39
  33. package/{chunk-D7U7KDEM.js → chunk-YCQTLBWF.js} +1 -1
  34. package/{chunk-SR66HWMM.js → chunk-ZINDEKAU.js} +144 -93
  35. package/{ci-EEXNEPKP.js → ci-TOJJVHI4.js} +13 -16
  36. package/cli-package.json +2 -1
  37. package/{config-4ZFJD5AY.js → config-DVAPEE5D.js} +12 -14
  38. package/{config-6MUU2TRJ.js → config-GOV4E2KK.js} +26 -26
  39. package/{create-DEKJKPYX.js → create-NGJD7K4L.js} +24 -26
  40. package/deprecate-WROL4AHK.js +176 -0
  41. package/{devtools-NOLON5YL.js → devtools-TPMVKPB5.js} +80 -77
  42. package/dist-tag-WZXXWXMB.js +204 -0
  43. package/{docs-5EKPZANX.js → docs-YCOZFMZG.js} +19 -22
  44. package/{exec-I4YPE6YW.js → exec-URG5OWLH.js} +24 -26
  45. package/{exec-cache-XEWPABLK.js → exec-cache-KHDOEH2F.js} +21 -23
  46. package/{exec-local-OQXG2VPW.js → exec-local-52TVUL5K.js} +19 -21
  47. package/{help-OG655SE5.js → help-LNSDVBGJ.js} +4 -5
  48. package/{init-LJH2YTBM.js → init-XNMWYATA.js} +10 -8
  49. package/{install-KP2FGWOR.js → install-SKUZERZJ.js} +28 -17
  50. package/{list-ACZ3ZSIZ.js → list-XEDVFUD5.js} +19 -21
  51. package/{login-VFTRKZE2.js → login-52SA2DSI.js} +6 -9
  52. package/{logout-Z4AVG64D.js → logout-5YYHNV5W.js} +6 -9
  53. package/{pack-GPJNX7RP.js → pack-B7QZHMYP.js} +14 -17
  54. package/package.json +1 -1
  55. package/{ping-B2YS4SR3.js → ping-PRGDYDRI.js} +6 -9
  56. package/{pkg-WUYJDFSH.js → pkg-UEIQIVVD.js} +15 -19
  57. package/profile-46FKVQEL.js +129 -0
  58. package/{publish-WTMGC4ET.js → publish-HBYHOSKH.js} +17 -20
  59. package/{query-UCM35VVC.js → query-5A4YLS2C.js} +19 -21
  60. package/registry-client-package.json +1 -1
  61. package/registry-client-src-revalidate.js +1157 -1032
  62. package/{repo-MZCPTQZU.js → repo-I6X66PHD.js} +19 -22
  63. package/{reporter-XRZ37LFK.js → reporter-NUXJTV4G.js} +2 -3
  64. package/{run-CAX4Z2SC.js → run-VEZMUMVH.js} +19 -21
  65. package/{run-exec-SM42FE7W.js → run-exec-6ADY4BKH.js} +19 -21
  66. package/security-archive-src-update-expired.js +8 -7
  67. package/{src-SDJWTPCU.js → src-O32QL33R.js} +20 -22
  68. package/token-YK6L74PA.js +206 -0
  69. package/{uninstall-YYPPXM2O.js → uninstall-UBUZBV7E.js} +14 -17
  70. package/unpublish-ZHJEKT7A.js +224 -0
  71. package/{update-YFUTH33A.js → update-WO4BHJF4.js} +13 -16
  72. package/{version-SK256WED.js → version-RLESYHML.js} +13 -16
  73. package/{view-CBYGJ76J.js → view-UA5HXFXG.js} +16 -17
  74. package/vlr.js +1 -1
  75. package/vlrx.js +1 -1
  76. package/vlt.js +1 -1
  77. package/vlx.js +1 -1
  78. package/vlxl.js +1 -1
  79. package/{whoami-ZT4ZEN2C.js → whoami-7H3FPR2O.js} +6 -9
  80. package/chunk-52LBC3AX.js +0 -75
  81. package/chunk-BGQCUUCA.js +0 -667
  82. package/chunk-E74WGW5C.js +0 -49
  83. package/chunk-JLJKOF75.js +0 -40
  84. package/chunk-YP4YNE5Y.js +0 -68
  85. package/token-YCURCCNR.js +0 -103
@@ -13,33 +13,17 @@ import {
13
13
  AbortError,
14
14
  SecurityArchive,
15
15
  pRetry
16
- } from "./chunk-BIUCOMBH.js";
17
- import {
18
- init
19
- } from "./chunk-52LBC3AX.js";
16
+ } from "./chunk-MAIQR5GM.js";
20
17
  import {
21
18
  Monorepo,
22
19
  PackageJson,
20
+ getUser,
23
21
  minimatch,
24
22
  platformCheck
25
- } from "./chunk-YR47M5L7.js";
26
- import {
27
- rimraf
28
- } from "./chunk-BGQCUUCA.js";
23
+ } from "./chunk-XYCCQT7N.js";
29
24
  import {
30
- Spec,
31
- Spec2,
32
25
  asDepID,
33
- defaultGitHostArchives,
34
- defaultGitHosts,
35
- defaultJsrRegistries,
36
- defaultRegistries,
37
- defaultRegistry,
38
- defaultRegistryName,
39
- defaultScopeRegistries,
40
26
  getId,
41
- getOptions,
42
- gitHostWebsites,
43
27
  graphRun,
44
28
  hydrate,
45
29
  hydrate2,
@@ -49,13 +33,28 @@ import {
49
33
  joinExtra,
50
34
  splitDepID,
51
35
  splitExtra
52
- } from "./chunk-QDGZZ5FZ.js";
36
+ } from "./chunk-TYV4N3S3.js";
37
+ import {
38
+ Spec,
39
+ Spec2,
40
+ defaultGitHostArchives,
41
+ defaultGitHosts,
42
+ defaultJsrRegistries,
43
+ defaultRegistries,
44
+ defaultRegistry,
45
+ defaultRegistryName,
46
+ defaultScopeRegistries,
47
+ getOptions,
48
+ gitHostWebsites
49
+ } from "./chunk-IEISSXS4.js";
53
50
  import {
54
- promiseSpawn
55
- } from "./chunk-VCSVHRCS.js";
51
+ load,
52
+ walkUp
53
+ } from "./chunk-HTOTG4TS.js";
56
54
  import {
57
- graphStep
58
- } from "./chunk-JLJKOF75.js";
55
+ promiseSpawn,
56
+ rimraf
57
+ } from "./chunk-R44FR7BY.js";
59
58
  import {
60
59
  Version,
61
60
  asError,
@@ -67,6 +66,7 @@ import {
67
66
  eq,
68
67
  expandNormalizedManifestSymbols,
69
68
  fastSplit,
69
+ graphStep,
70
70
  gt,
71
71
  gte,
72
72
  intersects,
@@ -84,11 +84,7 @@ import {
84
84
  patch,
85
85
  satisfies,
86
86
  shortDependencyTypes
87
- } from "./chunk-XWF3GJKE.js";
88
- import {
89
- load,
90
- walkUp
91
- } from "./chunk-HTOTG4TS.js";
87
+ } from "./chunk-Q3DNNTPG.js";
92
88
  import {
93
89
  XDG
94
90
  } from "./chunk-XNLSTHDK.js";
@@ -196,12 +192,12 @@ var require_isexe = __commonJS({
196
192
  if (typeof Promise !== "function") {
197
193
  throw new TypeError("callback not provided");
198
194
  }
199
- return new Promise(function(resolve12, reject) {
195
+ return new Promise(function(resolve13, reject) {
200
196
  isexe(path2, options || {}, function(er, is2) {
201
197
  if (er) {
202
198
  reject(er);
203
199
  } else {
204
- resolve12(is2);
200
+ resolve13(is2);
205
201
  }
206
202
  });
207
203
  });
@@ -267,27 +263,27 @@ var require_which = __commonJS({
267
263
  opt = {};
268
264
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
269
265
  const found = [];
270
- const step = (i) => new Promise((resolve12, reject) => {
266
+ const step = (i) => new Promise((resolve13, reject) => {
271
267
  if (i === pathEnv.length)
272
- return opt.all && found.length ? resolve12(found) : reject(getNotFoundError(cmd));
268
+ return opt.all && found.length ? resolve13(found) : reject(getNotFoundError(cmd));
273
269
  const ppRaw = pathEnv[i];
274
270
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
275
271
  const pCmd = path2.join(pathPart, cmd);
276
272
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
277
- resolve12(subStep(p, i, 0));
273
+ resolve13(subStep(p, i, 0));
278
274
  });
279
- const subStep = (p, i, ii) => new Promise((resolve12, reject) => {
275
+ const subStep = (p, i, ii) => new Promise((resolve13, reject) => {
280
276
  if (ii === pathExt.length)
281
- return resolve12(step(i + 1));
277
+ return resolve13(step(i + 1));
282
278
  const ext = pathExt[ii];
283
279
  isexe(p + ext, { pathExt: pathExtExe }, (er, is2) => {
284
280
  if (!er && is2) {
285
281
  if (opt.all)
286
282
  found.push(p + ext);
287
283
  else
288
- return resolve12(p + ext);
284
+ return resolve13(p + ext);
289
285
  }
290
- return resolve12(subStep(p, i, ii + 1));
286
+ return resolve13(subStep(p, i, ii + 1));
291
287
  });
292
288
  });
293
289
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -3888,7 +3884,7 @@ var require_processor = __commonJS({
3888
3884
  if (options === void 0) {
3889
3885
  options = {};
3890
3886
  }
3891
- return new Promise(function(resolve12, reject) {
3887
+ return new Promise(function(resolve13, reject) {
3892
3888
  try {
3893
3889
  var root2 = _this._root(rule, options);
3894
3890
  Promise.resolve(_this.func(root2)).then(function(transform) {
@@ -3902,7 +3898,7 @@ var require_processor = __commonJS({
3902
3898
  root: root2,
3903
3899
  string
3904
3900
  };
3905
- }).then(resolve12, reject);
3901
+ }).then(resolve13, reject);
3906
3902
  } catch (e) {
3907
3903
  reject(e);
3908
3904
  return;
@@ -6307,10 +6303,10 @@ var resolveGitHostname = (namedHost, gitHosts) => {
6307
6303
  } catch {
6308
6304
  }
6309
6305
  }
6310
- const template = gitHosts[namedHost];
6311
- if (template) {
6306
+ const template2 = gitHosts[namedHost];
6307
+ if (template2) {
6312
6308
  try {
6313
- const normalized = template.replace(/^git\+/, "").replace(/:(\$)/, "/$1");
6309
+ const normalized = template2.replace(/^git\+/, "").replace(/:(\$)/, "/$1");
6314
6310
  return new URL(normalized).hostname;
6315
6311
  } catch {
6316
6312
  }
@@ -8496,8 +8492,8 @@ var Query = class {
8496
8492
  specificity
8497
8493
  } = await walk({
8498
8494
  cancellable: async () => {
8499
- await new Promise((resolve12) => {
8500
- setTimeout(resolve12, 0);
8495
+ await new Promise((resolve13) => {
8496
+ setTimeout(resolve13, 0);
8501
8497
  });
8502
8498
  signal.throwIfAborted();
8503
8499
  },
@@ -8790,7 +8786,7 @@ var lockfileData = ({
8790
8786
  registries,
8791
8787
  saveManifests,
8792
8788
  saveBuildData,
8793
- "scope-registries": scopeRegistries,
8789
+ "scoped-registries": scopeRegistries,
8794
8790
  "jsr-registries": jsrRegistries,
8795
8791
  throwOnMissingManifest
8796
8792
  }) => {
@@ -8807,7 +8803,7 @@ var lockfileData = ({
8807
8803
  ...hasItems(cleanModifiers) ? { modifiers: cleanModifiers } : {},
8808
8804
  ...hasItems(catalog) ? { catalog } : {},
8809
8805
  ...hasItems(catalogs) ? { catalogs } : {},
8810
- ...hasItems(cleanScopeRegistries) ? { "scope-registries": cleanScopeRegistries } : void 0,
8806
+ ...hasItems(cleanScopeRegistries) ? { "scoped-registries": cleanScopeRegistries } : void 0,
8811
8807
  ...hasItems(cleanJsrRegistries) ? { "jsr-registries": cleanJsrRegistries } : void 0,
8812
8808
  ...registry2 !== void 0 && registry2 !== defaultRegistry ? { registry: registry2 } : void 0,
8813
8809
  ...hasItems(cleanRegistries) ? { registries: cleanRegistries } : void 0,
@@ -8956,7 +8952,7 @@ var Graph = class {
8956
8952
  registries: options.registries,
8957
8953
  "git-hosts": options["git-hosts"],
8958
8954
  "git-host-archives": options["git-host-archives"],
8959
- "scope-registries": options["scope-registries"],
8955
+ "scoped-registries": options["scoped-registries"],
8960
8956
  "jsr-registries": options["jsr-registries"],
8961
8957
  catalog: options.catalog,
8962
8958
  catalogs: options.catalogs
@@ -9539,18 +9535,19 @@ var loadObject = (options, lockfileData2) => {
9539
9535
  const {
9540
9536
  catalog = {},
9541
9537
  catalogs = {},
9542
- "scope-registries": scopeRegistries,
9538
+ "scoped-registries": scopedRegistriesOption,
9543
9539
  registry: registry2,
9544
9540
  registries,
9545
9541
  "git-hosts": gitHosts,
9546
9542
  "git-host-archives": gitHostArchives
9547
9543
  /* c8 ignore next */
9548
9544
  } = lockfileData2.options ?? {};
9545
+ const scopeRegistries = scopedRegistriesOption ?? lockfileData2.options["scope-registries"];
9549
9546
  const mergedOptions = {
9550
9547
  ...options,
9551
9548
  catalog,
9552
9549
  catalogs,
9553
- "scope-registries": scopeRegistries ? { ...options["scope-registries"], ...scopeRegistries } : options["scope-registries"],
9550
+ "scoped-registries": scopeRegistries ? { ...options["scoped-registries"], ...scopeRegistries } : options["scoped-registries"],
9554
9551
  registry: registry2 ?? options.registry,
9555
9552
  registries: registries ? { ...options.registries, ...registries } : options.registries,
9556
9553
  "git-hosts": gitHosts ? { ...options["git-hosts"], ...gitHosts } : options["git-hosts"],
@@ -11072,6 +11069,90 @@ var GraphModifier = class _GraphModifier {
11072
11069
  }
11073
11070
  };
11074
11071
 
11072
+ // ../../src/init/src/index.ts
11073
+ import {
11074
+ appendFileSync,
11075
+ existsSync as existsSync3,
11076
+ readFileSync as readFileSync3,
11077
+ writeFileSync as writeFileSync2
11078
+ } from "node:fs";
11079
+ import { basename as basename2, resolve as resolve7 } from "node:path";
11080
+
11081
+ // ../../src/init/src/get-author-from-git-user.ts
11082
+ var getAuthorFromGitUser = (user) => {
11083
+ if (!user) return "";
11084
+ const { name, email } = user;
11085
+ let res = "";
11086
+ if (name) res += name;
11087
+ if (email) {
11088
+ if (name) res += " ";
11089
+ res += `<${email}>`;
11090
+ }
11091
+ return res;
11092
+ };
11093
+
11094
+ // ../../src/init/src/index.ts
11095
+ var stderr = console.error;
11096
+ var template = ({ name, author }) => normalizeManifest({
11097
+ name,
11098
+ version: "1.0.0",
11099
+ description: "",
11100
+ main: "index.js",
11101
+ ...author ? { author } : void 0
11102
+ });
11103
+ var GITIGNORE_ENTRY = "node_modules";
11104
+ var ensureGitignore = (cwd) => {
11105
+ const gitignorePath = resolve7(cwd, ".gitignore");
11106
+ if (!existsSync3(gitignorePath)) {
11107
+ writeFileSync2(gitignorePath, `${GITIGNORE_ENTRY}
11108
+ `, "utf8");
11109
+ return { path: gitignorePath };
11110
+ }
11111
+ const content = readFileSync3(gitignorePath, "utf8");
11112
+ const lines = content.split("\n").map((l) => l.trim());
11113
+ if (!lines.includes(GITIGNORE_ENTRY)) {
11114
+ const prefix = content.endsWith("\n") ? "" : "\n";
11115
+ appendFileSync(
11116
+ gitignorePath,
11117
+ `${prefix}${GITIGNORE_ENTRY}
11118
+ `,
11119
+ "utf8"
11120
+ );
11121
+ return { path: gitignorePath };
11122
+ }
11123
+ return void 0;
11124
+ };
11125
+ var init = async ({
11126
+ cwd = process.cwd(),
11127
+ author,
11128
+ logger = stderr
11129
+ } = {}) => {
11130
+ const packageJson = new PackageJson();
11131
+ const path2 = resolve7(cwd, "package.json");
11132
+ let existingData;
11133
+ try {
11134
+ existingData = packageJson.read(cwd);
11135
+ logger("package.json already exists");
11136
+ } catch (err) {
11137
+ if (asError(err).message !== "Could not read package.json file") {
11138
+ throw err;
11139
+ }
11140
+ }
11141
+ const name = basename2(cwd);
11142
+ const templateData = template({
11143
+ name,
11144
+ author: author ?? getAuthorFromGitUser(await getUser().catch(() => void 0))
11145
+ });
11146
+ const data = existingData ? { ...templateData, ...existingData } : templateData;
11147
+ const indent = 2;
11148
+ packageJson.write(cwd, data, indent);
11149
+ const gitignore = ensureGitignore(cwd);
11150
+ return {
11151
+ manifest: { path: path2, data },
11152
+ ...gitignore ? { gitignore } : {}
11153
+ };
11154
+ };
11155
+
11075
11156
  // ../../src/graph/src/ideal/remove-satisfied-specs.ts
11076
11157
  var removeSatisfiedSpecs = ({
11077
11158
  add,
@@ -11089,6 +11170,9 @@ var removeSatisfiedSpecs = ({
11089
11170
  if (!edge) {
11090
11171
  continue;
11091
11172
  }
11173
+ const edgeIsCatalog = edge.spec.type === "catalog";
11174
+ const depIsCatalog = dependency.spec.type === "catalog";
11175
+ if (edgeIsCatalog !== depIsCatalog) continue;
11092
11176
  if (satisfies2(
11093
11177
  edge.to?.id,
11094
11178
  dependency.spec,
@@ -12526,7 +12610,7 @@ var callLimit = (queue, { limit: limit2 = defLimit, rejectLate } = {}) => new Pr
12526
12610
  rej(rejection);
12527
12611
  };
12528
12612
  let resolved = false;
12529
- const resolve12 = () => {
12613
+ const resolve13 = () => {
12530
12614
  if (resolved || active > 0)
12531
12615
  return;
12532
12616
  resolved = true;
@@ -12535,7 +12619,7 @@ var callLimit = (queue, { limit: limit2 = defLimit, rejectLate } = {}) => new Pr
12535
12619
  const run2 = () => {
12536
12620
  const c = current++;
12537
12621
  if (c >= queue.length)
12538
- return rejected ? reject() : resolve12();
12622
+ return rejected ? reject() : resolve13();
12539
12623
  active++;
12540
12624
  const step = queue[c];
12541
12625
  if (!step)
@@ -12599,7 +12683,7 @@ var replaceDollarWithPercentPair = (value) => {
12599
12683
 
12600
12684
  // ../../src/cmd-shim/src/read.ts
12601
12685
  import { lstat, readFile, readlink } from "node:fs/promises";
12602
- import { dirname as dirname4, resolve as resolve7 } from "node:path";
12686
+ import { dirname as dirname4, resolve as resolve8 } from "node:path";
12603
12687
 
12604
12688
  // ../../src/cmd-shim/src/paths.ts
12605
12689
  var paths = process.platform === "win32" ? (path2) => [
@@ -12648,11 +12732,11 @@ var readCmdShimIfExists = async (path2) => {
12648
12732
  try {
12649
12733
  const st = await lstat(path2);
12650
12734
  if (st.isSymbolicLink()) {
12651
- return resolve7(dirname4(path2), await readlink(path2));
12735
+ return resolve8(dirname4(path2), await readlink(path2));
12652
12736
  }
12653
12737
  const contents = await readFile(path2);
12654
12738
  const destination = extractPath(path2, contents.toString());
12655
- if (destination) return resolve7(dirname4(path2), destination);
12739
+ if (destination) return resolve8(dirname4(path2), destination);
12656
12740
  } catch {
12657
12741
  }
12658
12742
  };
@@ -12804,10 +12888,10 @@ var chmodShim = async (to) => await Promise.all([
12804
12888
 
12805
12889
  // ../../src/graph/src/reify/add-edge.ts
12806
12890
  import { mkdir as mkdir3, symlink } from "node:fs/promises";
12807
- import { dirname as dirname6, relative as relative3, resolve as resolve8 } from "node:path";
12891
+ import { dirname as dirname6, relative as relative3, resolve as resolve9 } from "node:path";
12808
12892
  var clobberSymlink = async (target, link2, remover, type2 = "file") => {
12809
12893
  const symlinkType = type2 === "dir" && process.platform === "win32" ? "junction" : type2;
12810
- const symlinkTarget = symlinkType === "junction" ? resolve8(dirname6(link2), target) : target;
12894
+ const symlinkTarget = symlinkType === "junction" ? resolve9(dirname6(link2), target) : target;
12811
12895
  await mkdir3(dirname6(link2), { recursive: true });
12812
12896
  try {
12813
12897
  await symlink(symlinkTarget, link2, symlinkType);
@@ -13368,12 +13452,12 @@ var reify_ = async (options, diff2, remover) => {
13368
13452
  };
13369
13453
 
13370
13454
  // ../../src/graph/src/install.ts
13371
- import { existsSync as existsSync5, rmSync as rmSync3 } from "node:fs";
13372
- import { resolve as resolve11 } from "node:path";
13455
+ import { existsSync as existsSync6, rmSync as rmSync3 } from "node:fs";
13456
+ import { resolve as resolve12 } from "node:path";
13373
13457
 
13374
13458
  // ../../src/graph/src/uninstall.ts
13375
- import { existsSync as existsSync3, rmSync } from "node:fs";
13376
- import { resolve as resolve9 } from "node:path";
13459
+ import { existsSync as existsSync4, rmSync } from "node:fs";
13460
+ import { resolve as resolve10 } from "node:path";
13377
13461
  var uninstall = async (options, remove) => {
13378
13462
  const mainManifest = options.packageJson.read(options.projectRoot);
13379
13463
  const modifiers = GraphModifier.maybeLoad(options);
@@ -13419,11 +13503,11 @@ var uninstall = async (options, remove) => {
13419
13503
  await remover.rollback().catch(() => {
13420
13504
  });
13421
13505
  try {
13422
- const hiddenLockfile = resolve9(
13506
+ const hiddenLockfile = resolve10(
13423
13507
  options.projectRoot,
13424
13508
  "node_modules/.vlt-lock.json"
13425
13509
  );
13426
- if (existsSync3(hiddenLockfile)) {
13510
+ if (existsSync4(hiddenLockfile)) {
13427
13511
  rmSync(hiddenLockfile, { force: true });
13428
13512
  }
13429
13513
  } catch {
@@ -13433,8 +13517,8 @@ var uninstall = async (options, remove) => {
13433
13517
  };
13434
13518
 
13435
13519
  // ../../src/graph/src/update.ts
13436
- import { existsSync as existsSync4, rmSync as rmSync2 } from "node:fs";
13437
- import { resolve as resolve10 } from "node:path";
13520
+ import { existsSync as existsSync5, rmSync as rmSync2 } from "node:fs";
13521
+ import { resolve as resolve11 } from "node:path";
13438
13522
  var update = async (options) => {
13439
13523
  let mainManifest = void 0;
13440
13524
  try {
@@ -13483,11 +13567,11 @@ var update = async (options) => {
13483
13567
  await remover.rollback().catch(() => {
13484
13568
  });
13485
13569
  try {
13486
- const hiddenLockfile = resolve10(
13570
+ const hiddenLockfile = resolve11(
13487
13571
  options.projectRoot,
13488
13572
  "node_modules/.vlt-lock.json"
13489
13573
  );
13490
- if (existsSync4(hiddenLockfile)) {
13574
+ if (existsSync5(hiddenLockfile)) {
13491
13575
  rmSync2(hiddenLockfile, { force: true });
13492
13576
  }
13493
13577
  } catch {
@@ -13581,8 +13665,8 @@ var install = async (options, add) => {
13581
13665
  );
13582
13666
  }
13583
13667
  if (options.expectLockfile || options.frozenLockfile) {
13584
- const lockfilePath = resolve11(options.projectRoot, "vlt-lock.json");
13585
- if (!existsSync5(lockfilePath)) {
13668
+ const lockfilePath = resolve12(options.projectRoot, "vlt-lock.json");
13669
+ if (!existsSync6(lockfilePath)) {
13586
13670
  throw error(
13587
13671
  "vlt-lock.json file is required when using --expect-lockfile, --frozen-lockfile, or ci command",
13588
13672
  {
@@ -13685,7 +13769,7 @@ var install = async (options, add) => {
13685
13769
  );
13686
13770
  }
13687
13771
  }
13688
- const lockfilePath = resolve11(
13772
+ const lockfilePath = resolve12(
13689
13773
  options.projectRoot,
13690
13774
  "vlt-lock.json"
13691
13775
  );
@@ -13699,11 +13783,11 @@ var install = async (options, add) => {
13699
13783
  }
13700
13784
  const remover = new RollbackRemove();
13701
13785
  if (options.cleanInstall) {
13702
- const nodeModulesPath = resolve11(
13786
+ const nodeModulesPath = resolve12(
13703
13787
  options.projectRoot,
13704
13788
  "node_modules"
13705
13789
  );
13706
- if (existsSync5(nodeModulesPath)) {
13790
+ if (existsSync6(nodeModulesPath)) {
13707
13791
  await remover.rm(nodeModulesPath);
13708
13792
  remover.confirm();
13709
13793
  }
@@ -13764,11 +13848,11 @@ var install = async (options, add) => {
13764
13848
  await remover.rollback().catch(() => {
13765
13849
  });
13766
13850
  try {
13767
- const hiddenLockfile = resolve11(
13851
+ const hiddenLockfile = resolve12(
13768
13852
  options.projectRoot,
13769
13853
  "node_modules/.vlt-lock.json"
13770
13854
  );
13771
- if (existsSync5(hiddenLockfile)) {
13855
+ if (existsSync6(hiddenLockfile)) {
13772
13856
  rmSync3(hiddenLockfile, { force: true });
13773
13857
  }
13774
13858
  } catch {
@@ -13796,6 +13880,7 @@ export {
13796
13880
  findCmdShimIfExists,
13797
13881
  RollbackRemove,
13798
13882
  GraphModifier,
13883
+ init,
13799
13884
  install,
13800
13885
  uninstall,
13801
13886
  update,
@@ -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-6HRR4HXE.js"),
22
+ "./commands/bugs.ts": () => import("./bugs-2CAZQ32S.js"),
23
+ "./commands/build.ts": () => import("./build-OAWTNBMS.js"),
24
+ "./commands/cache.ts": () => import("./cache-JTAFST6T.js"),
25
+ "./commands/ci.ts": () => import("./ci-TOJJVHI4.js"),
26
+ "./commands/config.ts": () => import("./config-GOV4E2KK.js"),
27
+ "./commands/create.ts": () => import("./create-NGJD7K4L.js"),
28
+ "./commands/deprecate.ts": () => import("./deprecate-WROL4AHK.js"),
29
+ "./commands/dist-tag.ts": () => import("./dist-tag-WZXXWXMB.js"),
30
+ "./commands/docs.ts": () => import("./docs-YCOZFMZG.js"),
31
+ "./commands/exec-cache.ts": () => import("./exec-cache-KHDOEH2F.js"),
32
+ "./commands/exec-local.ts": () => import("./exec-local-52TVUL5K.js"),
33
+ "./commands/exec.ts": () => import("./exec-URG5OWLH.js"),
34
+ "./commands/help.ts": () => import("./help-LNSDVBGJ.js"),
35
+ "./commands/init.ts": () => import("./init-XNMWYATA.js"),
36
+ "./commands/install.ts": () => import("./install-SKUZERZJ.js"),
37
+ "./commands/install/reporter.ts": () => import("./reporter-NUXJTV4G.js"),
38
+ "./commands/list.ts": () => import("./list-XEDVFUD5.js"),
39
+ "./commands/login.ts": () => import("./login-52SA2DSI.js"),
40
+ "./commands/logout.ts": () => import("./logout-5YYHNV5W.js"),
41
+ "./commands/pack.ts": () => import("./pack-B7QZHMYP.js"),
42
+ "./commands/ping.ts": () => import("./ping-PRGDYDRI.js"),
43
+ "./commands/pkg.ts": () => import("./pkg-UEIQIVVD.js"),
44
+ "./commands/profile.ts": () => import("./profile-46FKVQEL.js"),
45
+ "./commands/publish.ts": () => import("./publish-HBYHOSKH.js"),
46
+ "./commands/query.ts": () => import("./query-5A4YLS2C.js"),
47
+ "./commands/repo.ts": () => import("./repo-I6X66PHD.js"),
48
+ "./commands/run-exec.ts": () => import("./run-exec-6ADY4BKH.js"),
49
+ "./commands/run.ts": () => import("./run-VEZMUMVH.js"),
50
+ "./commands/token.ts": () => import("./token-YK6L74PA.js"),
51
+ "./commands/uninstall.ts": () => import("./uninstall-UBUZBV7E.js"),
52
+ "./commands/unpublish.ts": () => import("./unpublish-ZHJEKT7A.js"),
53
+ "./commands/update.ts": () => import("./update-WO4BHJF4.js"),
54
+ "./commands/version.ts": () => import("./version-RLESYHML.js"),
55
+ "./commands/view.ts": () => import("./view-UA5HXFXG.js"),
56
+ "./commands/whoami.ts": () => import("./whoami-7H3FPR2O.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,15 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  It,
14
- require_lib,
15
- zn
16
- } from "./chunk-FI5TUER7.js";
14
+ Zn,
15
+ require_lib
16
+ } from "./chunk-HQ4US6G3.js";
17
17
  import {
18
18
  minimatch
19
- } from "./chunk-YR47M5L7.js";
19
+ } from "./chunk-XYCCQT7N.js";
20
20
  import {
21
21
  Spec2 as Spec
22
- } from "./chunk-QDGZZ5FZ.js";
22
+ } from "./chunk-IEISSXS4.js";
23
23
  import {
24
24
  parse,
25
25
  stringify
@@ -164,7 +164,7 @@ var packTarball = async (manifest, dir, config) => {
164
164
  const tarballName = `${manifest.name}-${manifest.version}.tgz`;
165
165
  try {
166
166
  config.options.packageJson.write(packDir, processedManifest);
167
- const tarballData = await zn(
167
+ const tarballData = await Zn(
168
168
  {
169
169
  cwd: packDir,
170
170
  gzip: true,
@@ -12,28 +12,28 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  createDiffFilesProvider
14
14
  } from "./chunk-RIYFGX27.js";
15
+ import {
16
+ createHostContextsMap
17
+ } from "./chunk-VRIS5HAW.js";
15
18
  import {
16
19
  stderr,
17
20
  stdout,
18
21
  styleTextStdout
19
- } from "./chunk-P2HZ4ISK.js";
20
- import {
21
- require_emoji_regex
22
- } from "./chunk-VTEFO2FT.js";
23
- import {
24
- createHostContextsMap
25
- } from "./chunk-VTZZIXYW.js";
22
+ } from "./chunk-LPLXAVG7.js";
26
23
  import {
27
24
  Query,
28
25
  actual,
29
26
  isRunResult
30
- } from "./chunk-DJBBJDHI.js";
27
+ } from "./chunk-7RZL7BZI.js";
28
+ import {
29
+ require_emoji_regex
30
+ } from "./chunk-VTEFO2FT.js";
31
31
  import {
32
32
  Monorepo
33
- } from "./chunk-YR47M5L7.js";
33
+ } from "./chunk-XYCCQT7N.js";
34
34
  import {
35
35
  isErrorWithCause
36
- } from "./chunk-XWF3GJKE.js";
36
+ } from "./chunk-Q3DNNTPG.js";
37
37
  import {
38
38
  error
39
39
  } from "./chunk-WZWDS3W4.js";
@@ -1018,7 +1018,6 @@ var ExecCommand = class {
1018
1018
  this.conf = conf;
1019
1019
  this.bg = bg;
1020
1020
  this.fg = fg;
1021
- this.view = this.validViewValues.get(conf.values.view) ?? "human";
1022
1021
  const {
1023
1022
  projectRoot,
1024
1023
  positionals: [arg0, ...args]
@@ -1026,6 +1025,7 @@ var ExecCommand = class {
1026
1025
  this.arg0 = arg0;
1027
1026
  this.args = args;
1028
1027
  this.projectRoot = projectRoot;
1028
+ this.view = this.validViewValues.get(conf.values.view) ?? "human";
1029
1029
  }
1030
1030
  #targetCount() {
1031
1031
  if (this.#nodes) return this.#nodes.length;
@@ -11,11 +11,13 @@ 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-DJBBJDHI.js";
14
+ } from "./chunk-7RZL7BZI.js";
15
15
  import {
16
- Spec2 as Spec,
17
16
  joinDepIDTuple
18
- } from "./chunk-QDGZZ5FZ.js";
17
+ } from "./chunk-TYV4N3S3.js";
18
+ import {
19
+ Spec2 as Spec
20
+ } from "./chunk-IEISSXS4.js";
19
21
 
20
22
  // ../../src/cli-sdk/src/parse-add-remove-args.ts
21
23
  var rootDepID = joinDepIDTuple(["file", "."]);
@@ -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-SDJWTPCU.js");
20
+ const vlt = await import("./src-O32QL33R.js");
21
21
  await vlt.default();
22
22
  };
23
23
 
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  commandAliases,
14
14
  jack
15
- } from "./chunk-D27QPHKI.js";
15
+ } from "./chunk-2V4AQPBR.js";
16
16
 
17
17
  // ../../src/cli-sdk/src/config/usage.ts
18
18
  var toArr = (v) => Array.isArray(v) ? v : [v];