@vltpkg/cli-js 1.3.8 → 1.4.0
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-WLKANIOE.js → access-422UGEWN.js} +8 -8
- package/{bugs-5Q3QSTWP.js → bugs-RED7Y33Q.js} +17 -17
- package/{build-XSFR63AW.js → build-IHMPBWRO.js} +9 -9
- package/{cache-UVPK5J5A.js → cache-FJP2RZJX.js} +31 -19
- package/cache-unzip-src-unzip.js +21 -1
- package/{chunk-IUL6MPP6.js → chunk-2AMOC4DN.js} +4 -4
- package/{chunk-BGA3WB7H.js → chunk-4UCADW6S.js} +5 -5
- package/{chunk-GZ5MYMBT.js → chunk-5IJTPZXP.js} +1 -1
- package/{chunk-43HNQWPQ.js → chunk-5RHABCYI.js} +76 -11
- package/{chunk-XCDLOQZZ.js → chunk-5TNXLRW2.js} +33 -20
- package/{chunk-IHXJVKAE.js → chunk-5Y4SYLJ2.js} +2 -1
- package/chunk-6IF3RJND.js +81 -0
- package/{chunk-3U6QWN62.js → chunk-7T3XAYP4.js} +1 -1
- package/{chunk-WHLYMMI2.js → chunk-ASLX43R3.js} +3 -3
- package/{chunk-OAP2ROTL.js → chunk-C23TDXRG.js} +1 -1
- package/{chunk-H77JYU7F.js → chunk-DNRR3XMG.js} +12 -3
- package/{chunk-IBGFQR23.js → chunk-FLH4YC6W.js} +21 -0
- package/{chunk-XDSZO74H.js → chunk-FZUYGJZU.js} +7 -7
- package/{chunk-PJJCFMLW.js → chunk-GIIAODRI.js} +4 -4
- package/{chunk-QNDM4DVO.js → chunk-HZXJ423P.js} +1 -1
- package/{chunk-CB65DPZ2.js → chunk-I7UMHYZX.js} +151 -27
- package/{chunk-6P5CFJR7.js → chunk-ISE4IRHF.js} +4 -4
- package/{chunk-TLY4VGMH.js → chunk-LHPEBLOU.js} +1 -1
- package/{chunk-EL4GVZK5.js → chunk-MKWPTN3C.js} +2 -2
- package/{chunk-5KOLUYXH.js → chunk-OAJ3PO3Z.js} +57 -11
- package/{chunk-NWHKSRO3.js → chunk-OVPHE4O7.js} +93 -10
- package/{chunk-WKA5UYNA.js → chunk-PHJJPY5G.js} +3 -3
- package/{chunk-SV4WK3KX.js → chunk-PLG3OYCX.js} +2 -2
- package/{chunk-KMOOTBHM.js → chunk-QCSUWACA.js} +1 -1
- package/{chunk-6D54UN4T.js → chunk-SR2VOY5J.js} +1 -1
- package/chunk-T6FBP4OU.js +76 -0
- package/{chunk-A2TSRXZD.js → chunk-THSYN5EK.js} +1 -1
- package/{chunk-DL3H4EMY.js → chunk-TO23PR7J.js} +22 -15
- package/{chunk-OWMR2EDW.js → chunk-TPRK6IDA.js} +1 -1
- package/chunk-UGCKF5ZE.js +57 -0
- package/{chunk-SE2FSMBR.js → chunk-WF6KLKRN.js} +26 -10
- package/{chunk-FIUUAQGC.js → chunk-X4FVR4R5.js} +23 -18
- package/{chunk-6BQKR2FM.js → chunk-ZJMJ7MCT.js} +1 -1
- package/{ci-EDRETPUF.js → ci-YSKNNO5M.js} +10 -10
- package/cli-package.json +1 -1
- package/{config-MVNXGEOQ.js → config-CSPCDMR3.js} +9 -8
- package/{config-OKBXU7TU.js → config-HO7GY3QT.js} +11 -10
- package/{create-R7BXYJSU.js → create-2TJT3AHJ.js} +19 -18
- package/{deprecate-YSUKBKQM.js → deprecate-7FRJI2RL.js} +11 -11
- package/{dist-tag-MIGYSR4F.js → dist-tag-WCFF5OEG.js} +8 -8
- package/{docs-4WVIN75H.js → docs-JMBPTU23.js} +17 -17
- package/{exec-IXHDQLAM.js → exec-FBOUKZZ2.js} +19 -18
- package/{exec-cache-EA7GHIK7.js → exec-cache-X3ZWM5S3.js} +16 -16
- package/{exec-local-GM4LH56M.js → exec-local-Y3KQC22N.js} +16 -15
- package/{help-TCXGBICU.js → help-PUKVH5X7.js} +4 -4
- package/{init-MWZDWQHM.js → init-GOKAQXXZ.js} +10 -10
- package/{install-HPI5HU3C.js → install-XFN4UFOC.js} +116 -16
- package/{list-2CX6REPJ.js → list-43JFFG5D.js} +19 -19
- package/{login-RAY23CVG.js → login-RSTZKNKN.js} +13 -12
- package/{logout-ICB5OMGY.js → logout-4576FFXZ.js} +8 -8
- package/{outdated-FYHPXRMT.js → outdated-ACQ5A2Y7.js} +15 -15
- package/{pack-E5MNPQXK.js → pack-QQVJ3G25.js} +15 -12
- package/package.json +1 -1
- package/{ping-REQ2KSAR.js → ping-QCDQQRO5.js} +8 -8
- package/{pkg-YB4GSRII.js → pkg-CSOJV7UC.js} +17 -12
- package/{profile-GKBW6GRI.js → profile-VL4HPW3N.js} +8 -8
- package/{publish-4ZQJYYLF.js → publish-2YBO6ZXE.js} +23 -18
- package/{query-SKXBF3MJ.js → query-IHHFMJRT.js} +19 -19
- package/{registry-MQJJCWJY.js → registry-W7BRZZZ2.js} +5 -5
- package/registry-client-src-revalidate.js +75 -9
- package/{repo-ACPTZI2C.js → repo-L3BXAAWS.js} +17 -17
- package/{reporter-4KK2JNGO.js → reporter-5NYOHBO7.js} +11 -10
- package/{run-YW3ITX2A.js → run-AMUUVLTI.js} +16 -15
- package/{run-exec-7VQX3OFG.js → run-exec-5W3XWQZA.js} +16 -15
- package/security-archive-src-update-expired.js +46 -12
- package/{setup-PLEKCMXN.js → setup-TFM4GJF7.js} +16 -15
- package/{src-XQ7KVUVN.js → src-4CYCUWZL.js} +29 -24
- package/{src-PXDFMQ6W.js → src-I3GMULFP.js} +4 -4
- package/{src-GP7VLT7P.js → src-LUTN2ODD.js} +58 -9
- package/{token-GB7RPE5J.js → token-OANOBE3G.js} +8 -8
- package/{uninstall-RLCECX37.js → uninstall-YXTQ4AIZ.js} +12 -12
- package/{unpublish-3ZXEAVHF.js → unpublish-SZXYMYIU.js} +8 -8
- package/{update-VDZP6EZN.js → update-FHLMWGIM.js} +16 -15
- package/{version-MRELJPOK.js → version-ZWFCTU5V.js} +16 -11
- package/{view-LCXMTGCJ.js → view-NFNJXMLV.js} +11 -11
- 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-PNRDBS45.js → whoami-O7GOSGCI.js} +8 -8
- package/chunk-4JAZZRKR.js +0 -76
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
pickManifest,
|
|
20
20
|
resolve,
|
|
21
21
|
revs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I7UMHYZX.js";
|
|
23
23
|
import {
|
|
24
24
|
Spec
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5IJTPZXP.js";
|
|
26
26
|
import {
|
|
27
27
|
registryErrorMessage,
|
|
28
28
|
storeRoot,
|
|
29
29
|
tokenRefusalAdvice
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SR2VOY5J.js";
|
|
31
31
|
import {
|
|
32
32
|
logRequest
|
|
33
33
|
} from "./chunk-U7TEQCBN.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
brotliTarballUrl,
|
|
40
40
|
integrityHex,
|
|
41
41
|
tarballFormat
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FLH4YC6W.js";
|
|
43
43
|
import {
|
|
44
44
|
error
|
|
45
45
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -226,7 +226,12 @@ var isStableSelector = (f) => {
|
|
|
226
226
|
if (!range) return false;
|
|
227
227
|
return !range.isAny && !range.raw.includes("-");
|
|
228
228
|
};
|
|
229
|
-
var storeLinkers = /* @__PURE__ */ new Set([
|
|
229
|
+
var storeLinkers = /* @__PURE__ */ new Set([
|
|
230
|
+
"auto",
|
|
231
|
+
"hardlink",
|
|
232
|
+
"clone",
|
|
233
|
+
"copy"
|
|
234
|
+
]);
|
|
230
235
|
var storedIntegrity = (response) => !response.fromCache ? response.integrityActual : !response.contentType ? void 0 : response.integrity ?? (response.isGzip ? response.integrityActual : void 0);
|
|
231
236
|
var PackageInfoClient = class {
|
|
232
237
|
#registryClient;
|
|
@@ -243,18 +248,19 @@ var PackageInfoClient = class {
|
|
|
243
248
|
#cachePath;
|
|
244
249
|
#storeRoot;
|
|
245
250
|
#storeLinker;
|
|
246
|
-
#storeHits = { link: 0, copy: 0 };
|
|
251
|
+
#storeHits = { link: 0, clone: 0, copy: 0 };
|
|
247
252
|
#storeMisses = 0;
|
|
248
253
|
#storeHitRateLogged = false;
|
|
249
254
|
#logStoreHitRate = () => {
|
|
250
|
-
const { link, copy } = this.#storeHits;
|
|
251
|
-
const n = Math.max(1, link + copy + this.#storeMisses);
|
|
255
|
+
const { link, clone: clone2, copy } = this.#storeHits;
|
|
256
|
+
const n = Math.max(1, link + clone2 + copy + this.#storeMisses);
|
|
252
257
|
debug(
|
|
253
|
-
"global store: linked=%d copied=%d missed=%d hit rate=%s%%",
|
|
258
|
+
"global store: linked=%d cloned=%d copied=%d missed=%d hit rate=%s%%",
|
|
254
259
|
link,
|
|
260
|
+
clone2,
|
|
255
261
|
copy,
|
|
256
262
|
this.#storeMisses,
|
|
257
|
-
((link + copy) / n * 100).toFixed(1)
|
|
263
|
+
((link + clone2 + copy) / n * 100).toFixed(1)
|
|
258
264
|
);
|
|
259
265
|
};
|
|
260
266
|
// In-flight coalescing key is `${registry}${name}` — no representation
|
|
@@ -330,7 +336,7 @@ var PackageInfoClient = class {
|
|
|
330
336
|
}
|
|
331
337
|
async getRegistryClient() {
|
|
332
338
|
if (this.#registryClient) return this.#registryClient;
|
|
333
|
-
this.#registryClientPromise ??= import("./src-
|
|
339
|
+
this.#registryClientPromise ??= import("./src-I3GMULFP.js").then(({ RegistryClient }) => {
|
|
334
340
|
this.#registryClient = new RegistryClient(this.options);
|
|
335
341
|
return this.#registryClient;
|
|
336
342
|
});
|
|
@@ -369,7 +375,7 @@ var PackageInfoClient = class {
|
|
|
369
375
|
}
|
|
370
376
|
async getTarPool() {
|
|
371
377
|
if (this.#tarPool) return this.#tarPool;
|
|
372
|
-
this.#tarPoolPromise ??= import("./src-
|
|
378
|
+
this.#tarPoolPromise ??= import("./src-LUTN2ODD.js").then(
|
|
373
379
|
({ Pool }) => {
|
|
374
380
|
this.#tarPool = new Pool();
|
|
375
381
|
return this.#tarPool;
|
|
@@ -462,6 +468,7 @@ var PackageInfoClient = class {
|
|
|
462
468
|
const format = tarballFormat(r.resolved);
|
|
463
469
|
const storeOn = f.type === "registry" && this.#storeLinker !== "unpack";
|
|
464
470
|
const copy = this.#storeLinker === "copy";
|
|
471
|
+
const clone2 = this.#storeLinker === "clone";
|
|
465
472
|
const hex = !storeOn ? void 0 : r.integrity ? integrityHex(r.integrity) : integrityHex(
|
|
466
473
|
(await this.getRegistryClient()).cachedIntegrity(
|
|
467
474
|
r.resolved
|
|
@@ -475,12 +482,12 @@ var PackageInfoClient = class {
|
|
|
475
482
|
const linked = await pool.linkFromStore(
|
|
476
483
|
pathResolve(this.#storeRoot, hex),
|
|
477
484
|
target,
|
|
478
|
-
{ copy }
|
|
485
|
+
{ copy, clone: clone2 }
|
|
479
486
|
);
|
|
480
487
|
if (linked) {
|
|
481
488
|
const { how, index } = linked;
|
|
482
489
|
this.#storeHits[how]++;
|
|
483
|
-
logRequest(r.resolved, how === "
|
|
490
|
+
logRequest(r.resolved, how === "copy" ? "cache" : "store");
|
|
484
491
|
return {
|
|
485
492
|
...r,
|
|
486
493
|
manifest: index.manifest,
|
|
@@ -584,7 +591,7 @@ var PackageInfoClient = class {
|
|
|
584
591
|
}
|
|
585
592
|
case "remote": {
|
|
586
593
|
const rc = await this.getRegistryClient();
|
|
587
|
-
const { CacheEntry: Entry, cacheKey } = await import("./src-
|
|
594
|
+
const { CacheEntry: Entry, cacheKey } = await import("./src-I3GMULFP.js");
|
|
588
595
|
const key = cacheKey("GET", new URL(r.resolved));
|
|
589
596
|
const unzipped = (entry) => {
|
|
590
597
|
try {
|
|
@@ -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
|
stderr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FZUYGJZU.js";
|
|
15
15
|
import {
|
|
16
16
|
urlOpen
|
|
17
17
|
} from "./chunk-APMYKJI2.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
graphRunSync
|
|
14
|
+
} from "./chunk-PLG3OYCX.js";
|
|
15
|
+
|
|
16
|
+
// ../../src/cli-sdk/src/sort-scope-locations.ts
|
|
17
|
+
import { resolve } from "node:path";
|
|
18
|
+
var sortScopeLocations = (locations, monorepo) => {
|
|
19
|
+
if (!monorepo || locations.length < 2) return locations;
|
|
20
|
+
const wsAt = (loc) => monorepo.get(resolve(monorepo.projectRoot, loc));
|
|
21
|
+
const slots = locations.map((loc) => [loc, wsAt(loc)]);
|
|
22
|
+
const locOf = /* @__PURE__ */ new Map();
|
|
23
|
+
for (const [loc, ws] of slots) {
|
|
24
|
+
if (ws && !locOf.has(ws)) locOf.set(ws, loc);
|
|
25
|
+
}
|
|
26
|
+
const [first, ...rest] = locOf.keys();
|
|
27
|
+
if (!first || !rest.length) return locations;
|
|
28
|
+
const getDeps = (ws) => {
|
|
29
|
+
const found = [];
|
|
30
|
+
const seen = /* @__PURE__ */ new Set([ws]);
|
|
31
|
+
const queue = monorepo.getDeps(ws);
|
|
32
|
+
for (const dep of queue) {
|
|
33
|
+
if (seen.has(dep)) continue;
|
|
34
|
+
seen.add(dep);
|
|
35
|
+
if (locOf.has(dep)) found.push(dep);
|
|
36
|
+
else queue.push(...monorepo.getDeps(dep));
|
|
37
|
+
}
|
|
38
|
+
return found;
|
|
39
|
+
};
|
|
40
|
+
const sorted = graphRunSync({
|
|
41
|
+
graph: [first, ...rest],
|
|
42
|
+
getDeps,
|
|
43
|
+
visit: () => {
|
|
44
|
+
}
|
|
45
|
+
}).keys();
|
|
46
|
+
const placed = /* @__PURE__ */ new Set();
|
|
47
|
+
return slots.map(([loc, ws]) => {
|
|
48
|
+
if (!ws || placed.has(ws)) return loc;
|
|
49
|
+
placed.add(ws);
|
|
50
|
+
const next = sorted.next().value;
|
|
51
|
+
return (next && locOf.get(next)) ?? loc;
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
sortScopeLocations
|
|
57
|
+
};
|
|
@@ -1168,6 +1168,7 @@ var isRecordField = (s) => recordFields.includes(s);
|
|
|
1168
1168
|
var storeLinkers = [
|
|
1169
1169
|
"auto",
|
|
1170
1170
|
"hardlink",
|
|
1171
|
+
"clone",
|
|
1171
1172
|
"copy",
|
|
1172
1173
|
"unpack"
|
|
1173
1174
|
];
|
|
@@ -1275,8 +1276,11 @@ var definition = j2.heading("Configuration").description(
|
|
|
1275
1276
|
|
|
1276
1277
|
There is **no** built-in \`npm\` registry URL; the \`npm\`
|
|
1277
1278
|
alias must be configured (e.g. via \`vlt setup\`) before it
|
|
1278
|
-
can be used. The \`gh\`
|
|
1279
|
-
|
|
1279
|
+
can be used. The \`gh\` alias has a built-in default
|
|
1280
|
+
that can be overridden here. A name used by
|
|
1281
|
+
\`--jsr-registries\` or \`--git-hosts\` (e.g. \`jsr\`,
|
|
1282
|
+
\`github\`), or a built-in protocol (e.g. \`file\`), is
|
|
1283
|
+
an error.
|
|
1280
1284
|
|
|
1281
1285
|
Aliases given on the command line or in
|
|
1282
1286
|
\`VLT_REGISTRIES\` (newline-delimited) merge with the
|
|
@@ -1365,28 +1369,35 @@ var definition = j2.heading("Configuration").description(
|
|
|
1365
1369
|
default: cacheDir
|
|
1366
1370
|
},
|
|
1367
1371
|
"store-linker": {
|
|
1368
|
-
hint: "auto | hardlink | copy | unpack",
|
|
1372
|
+
hint: "auto | hardlink | clone | copy | unpack",
|
|
1369
1373
|
description: `How packages are placed in \`node_modules\`. Every
|
|
1370
1374
|
linker but \`unpack\` fills a global store under
|
|
1371
1375
|
\`cache\` in the background, then places packages
|
|
1372
1376
|
from it.
|
|
1373
1377
|
|
|
1374
1378
|
- auto: Default. On Linux, hardlink from the global
|
|
1375
|
-
store, copying any file that cannot be linked.
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
+
store, copying any file that cannot be linked. On
|
|
1380
|
+
macOS, clone from it, on a Node with \`node:ffi\`
|
|
1381
|
+
(26.1 and later, and \`--allow-ffi\` under
|
|
1382
|
+
\`--permission\`); a hardlink is the slowest way
|
|
1383
|
+
to place a file on APFS, so macOS without it, and
|
|
1384
|
+
Windows, unpack by default.
|
|
1379
1385
|
- hardlink: Hardlink from the global store on every
|
|
1380
1386
|
platform.
|
|
1387
|
+
- clone: Clone each package directory from the
|
|
1388
|
+
global store copy-on-write (\`clonefile\`, macOS
|
|
1389
|
+
on APFS). Files share storage with the store
|
|
1390
|
+
until edited, so editing in place is safe.
|
|
1391
|
+
Unpacks where cloning fails.
|
|
1381
1392
|
- copy: Copy from the global store. Use this when
|
|
1382
1393
|
editing files in \`node_modules\` in place, since
|
|
1383
1394
|
a hardlink shares its content with every project.
|
|
1384
1395
|
- unpack: Unpack each package tarball, skipping the
|
|
1385
1396
|
global store.
|
|
1386
1397
|
|
|
1387
|
-
A package is copied right before its
|
|
1388
|
-
scripts run, so they don't change its files
|
|
1389
|
-
store.
|
|
1398
|
+
A hardlinked package is copied right before its
|
|
1399
|
+
install scripts run, so they don't change its files
|
|
1400
|
+
in the store; a cloned one needs no copy.
|
|
1390
1401
|
An invalid \`VLT_STORE_LINKER\` warns and uses
|
|
1391
1402
|
\`unpack\`.`,
|
|
1392
1403
|
validOptions: storeLinkers,
|
|
@@ -1735,6 +1746,11 @@ var definition = j2.heading("Configuration").description(
|
|
|
1735
1746
|
devDependencies or optionalDependencies, but you want to
|
|
1736
1747
|
move it to be a non-optional production dependency.`
|
|
1737
1748
|
},
|
|
1749
|
+
"save-types": {
|
|
1750
|
+
description: `Also save the matching \`@types/*\` package as a
|
|
1751
|
+
devDependency for each added registry package that
|
|
1752
|
+
ships no TypeScript types of its own.`
|
|
1753
|
+
},
|
|
1738
1754
|
"save-config": {
|
|
1739
1755
|
description: `Save the registry and git host options given on the
|
|
1740
1756
|
command line or via \`VLT_*\` env (\`--registry\`,
|
|
@@ -9,17 +9,20 @@ 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
|
+
sortScopeLocations
|
|
14
|
+
} from "./chunk-UGCKF5ZE.js";
|
|
12
15
|
import {
|
|
13
16
|
createDiffFilesProvider
|
|
14
17
|
} from "./chunk-RIYFGX27.js";
|
|
15
18
|
import {
|
|
16
19
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ASLX43R3.js";
|
|
18
21
|
import {
|
|
19
22
|
stderr,
|
|
20
23
|
stdout,
|
|
21
24
|
styleTextStdout
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FZUYGJZU.js";
|
|
23
26
|
import {
|
|
24
27
|
require_emoji_regex
|
|
25
28
|
} from "./chunk-VTEFO2FT.js";
|
|
@@ -27,13 +30,13 @@ import {
|
|
|
27
30
|
Query,
|
|
28
31
|
actual,
|
|
29
32
|
isRunResult
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OVPHE4O7.js";
|
|
31
34
|
import {
|
|
32
35
|
Monorepo
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-I7UMHYZX.js";
|
|
34
37
|
import {
|
|
35
38
|
isErrorWithCause
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FLH4YC6W.js";
|
|
37
40
|
import {
|
|
38
41
|
error
|
|
39
42
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -1046,11 +1049,13 @@ var ExecCommand = class {
|
|
|
1046
1049
|
this.projectRoot
|
|
1047
1050
|
);
|
|
1048
1051
|
let graph;
|
|
1052
|
+
let monorepo;
|
|
1049
1053
|
if (mainManifest) {
|
|
1054
|
+
monorepo = Monorepo.load(this.projectRoot);
|
|
1050
1055
|
graph = actual.load({
|
|
1051
1056
|
...conf.options,
|
|
1052
1057
|
mainManifest,
|
|
1053
|
-
monorepo
|
|
1058
|
+
monorepo,
|
|
1054
1059
|
loadManifests: false
|
|
1055
1060
|
});
|
|
1056
1061
|
}
|
|
@@ -1068,7 +1073,7 @@ var ExecCommand = class {
|
|
|
1068
1073
|
const { nodes } = await query.search(queryString, {
|
|
1069
1074
|
signal: new AbortController().signal
|
|
1070
1075
|
});
|
|
1071
|
-
|
|
1076
|
+
const locations = [];
|
|
1072
1077
|
for (const node of nodes) {
|
|
1073
1078
|
const { location } = node.toJSON();
|
|
1074
1079
|
assert(
|
|
@@ -1077,8 +1082,9 @@ var ExecCommand = class {
|
|
|
1077
1082
|
found: node
|
|
1078
1083
|
})
|
|
1079
1084
|
);
|
|
1080
|
-
|
|
1085
|
+
locations.push(location);
|
|
1081
1086
|
}
|
|
1087
|
+
this.#nodes = sortScopeLocations(locations, monorepo);
|
|
1082
1088
|
} else if (paths?.length || groups?.length || recursive) {
|
|
1083
1089
|
this.#defaultIgnoreMissing = true;
|
|
1084
1090
|
this.#monorepo = Monorepo.load(this.projectRoot, {
|
|
@@ -1110,16 +1116,15 @@ var ExecCommand = class {
|
|
|
1110
1116
|
return this.noArgsMulti();
|
|
1111
1117
|
}
|
|
1112
1118
|
let failed = false;
|
|
1113
|
-
const runInDir = async (cwd, label) => {
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}
|
|
1119
|
-
failed = true;
|
|
1120
|
-
throw er;
|
|
1119
|
+
const runInDir = async (cwd, label, signal) => {
|
|
1120
|
+
const arg = { ...this.bgArg(cwd), signal };
|
|
1121
|
+
const result = await this.bg(arg).catch((er) => {
|
|
1122
|
+
if (isErrorWithCause(er) && isRunResult(er.cause)) {
|
|
1123
|
+
this.printResult(label, er.cause);
|
|
1121
1124
|
}
|
|
1122
|
-
|
|
1125
|
+
failed = true;
|
|
1126
|
+
throw er;
|
|
1127
|
+
});
|
|
1123
1128
|
if (!result.command) return null;
|
|
1124
1129
|
if (!failed) this.printResult(label, result);
|
|
1125
1130
|
return result;
|
|
@@ -1132,7 +1137,7 @@ var ExecCommand = class {
|
|
|
1132
1137
|
}
|
|
1133
1138
|
} else if (this.#monorepo) {
|
|
1134
1139
|
const wsResultMap = await this.#monorepo.run(
|
|
1135
|
-
(ws) => runInDir(ws.fullpath, ws.path)
|
|
1140
|
+
(ws, signal) => runInDir(ws.fullpath, ws.path, signal)
|
|
1136
1141
|
);
|
|
1137
1142
|
for (const [ws, result] of wsResultMap) {
|
|
1138
1143
|
if (result) resultMap.set(ws.path, result);
|
|
@@ -14,7 +14,7 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
14
14
|
var package_default = {
|
|
15
15
|
name: "@vltpkg/user-agent",
|
|
16
16
|
description: "The User-Agent string that vlt sends with every outbound request",
|
|
17
|
-
version: "1.
|
|
17
|
+
version: "1.4.0",
|
|
18
18
|
repository: {
|
|
19
19
|
type: "git",
|
|
20
20
|
url: "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -11,25 +11,25 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
install
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-OVPHE4O7.js";
|
|
15
|
+
import "./chunk-5TNXLRW2.js";
|
|
16
16
|
import {
|
|
17
17
|
commandUsage
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-LHPEBLOU.js";
|
|
19
|
+
import "./chunk-I7UMHYZX.js";
|
|
20
20
|
import {
|
|
21
21
|
lazyView
|
|
22
22
|
} from "./chunk-4KCU2KZL.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-PLG3OYCX.js";
|
|
24
|
+
import "./chunk-5IJTPZXP.js";
|
|
25
|
+
import "./chunk-WF6KLKRN.js";
|
|
26
26
|
import "./chunk-HTOTG4TS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-ZJMJ7MCT.js";
|
|
28
28
|
import "./chunk-U7TEQCBN.js";
|
|
29
29
|
import "./chunk-XNLSTHDK.js";
|
|
30
30
|
import "./chunk-PDWPFR5T.js";
|
|
31
31
|
import "./chunk-Y5PA7DVK.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-FLH4YC6W.js";
|
|
33
33
|
import "./chunk-WZWDS3W4.js";
|
|
34
34
|
import "./chunk-PZLD7RTK.js";
|
|
35
35
|
|
|
@@ -63,7 +63,7 @@ var usage = () => commandUsage({
|
|
|
63
63
|
var views = {
|
|
64
64
|
json: (i) => i.graph.toJSON(),
|
|
65
65
|
human: lazyView(
|
|
66
|
-
async () => (await import("./reporter-
|
|
66
|
+
async () => (await import("./reporter-5NYOHBO7.js")).InstallReporter
|
|
67
67
|
)
|
|
68
68
|
};
|
|
69
69
|
var command = async (conf) => {
|
package/cli-package.json
CHANGED
|
@@ -16,24 +16,25 @@ import {
|
|
|
16
16
|
kCustomInspect,
|
|
17
17
|
pairsToRecords,
|
|
18
18
|
recordsToPairs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-5RHABCYI.js";
|
|
20
|
+
import "./chunk-TO23PR7J.js";
|
|
21
21
|
import "./chunk-SRWDPPLX.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-I7UMHYZX.js";
|
|
23
|
+
import "./chunk-PLG3OYCX.js";
|
|
24
|
+
import "./chunk-5IJTPZXP.js";
|
|
25
25
|
import {
|
|
26
26
|
commands,
|
|
27
27
|
definition,
|
|
28
28
|
isRecordField,
|
|
29
29
|
recordFields
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WF6KLKRN.js";
|
|
31
31
|
import "./chunk-HTOTG4TS.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-SR2VOY5J.js";
|
|
33
33
|
import "./chunk-U7TEQCBN.js";
|
|
34
34
|
import "./chunk-XNLSTHDK.js";
|
|
35
|
+
import "./chunk-6IF3RJND.js";
|
|
35
36
|
import "./chunk-Y5PA7DVK.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-FLH4YC6W.js";
|
|
37
38
|
import "./chunk-WZWDS3W4.js";
|
|
38
39
|
import "./chunk-PZLD7RTK.js";
|
|
39
40
|
export {
|
|
@@ -15,34 +15,35 @@ import {
|
|
|
15
15
|
} from "./chunk-DBANBIL2.js";
|
|
16
16
|
import {
|
|
17
17
|
asRootError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5Y4SYLJ2.js";
|
|
19
19
|
import {
|
|
20
20
|
pairsToRecords,
|
|
21
21
|
recordsToPairs
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-5RHABCYI.js";
|
|
23
|
+
import "./chunk-TO23PR7J.js";
|
|
24
24
|
import "./chunk-SRWDPPLX.js";
|
|
25
25
|
import {
|
|
26
26
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-LHPEBLOU.js";
|
|
28
|
+
import "./chunk-I7UMHYZX.js";
|
|
29
|
+
import "./chunk-PLG3OYCX.js";
|
|
30
|
+
import "./chunk-5IJTPZXP.js";
|
|
31
31
|
import {
|
|
32
32
|
getSortedKeys,
|
|
33
33
|
isRecordField
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WF6KLKRN.js";
|
|
35
35
|
import {
|
|
36
36
|
find,
|
|
37
37
|
load
|
|
38
38
|
} from "./chunk-HTOTG4TS.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-SR2VOY5J.js";
|
|
40
40
|
import "./chunk-U7TEQCBN.js";
|
|
41
41
|
import "./chunk-XNLSTHDK.js";
|
|
42
|
+
import "./chunk-6IF3RJND.js";
|
|
42
43
|
import "./chunk-Y5PA7DVK.js";
|
|
43
44
|
import {
|
|
44
45
|
isObject
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FLH4YC6W.js";
|
|
46
47
|
import {
|
|
47
48
|
error
|
|
48
49
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,45 +11,46 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
vlxResolve
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4UCADW6S.js";
|
|
15
15
|
import {
|
|
16
16
|
ExecCommand,
|
|
17
17
|
views
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X4FVR4R5.js";
|
|
19
|
+
import "./chunk-UGCKF5ZE.js";
|
|
19
20
|
import "./chunk-RIYFGX27.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ASLX43R3.js";
|
|
21
22
|
import {
|
|
22
23
|
styleTextStdout
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-FZUYGJZU.js";
|
|
25
|
+
import "./chunk-QCSUWACA.js";
|
|
25
26
|
import "./chunk-G2YT2GWF.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-5Y4SYLJ2.js";
|
|
27
28
|
import "./chunk-VTEFO2FT.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-TO23PR7J.js";
|
|
29
30
|
import "./chunk-SRWDPPLX.js";
|
|
30
31
|
import "./chunk-WGDTG44V.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-THSYN5EK.js";
|
|
32
33
|
import {
|
|
33
34
|
exec,
|
|
34
35
|
execFG
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-OVPHE4O7.js";
|
|
37
|
+
import "./chunk-5TNXLRW2.js";
|
|
37
38
|
import {
|
|
38
39
|
commandUsage
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-LHPEBLOU.js";
|
|
41
|
+
import "./chunk-I7UMHYZX.js";
|
|
41
42
|
import "./chunk-4KCU2KZL.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-PLG3OYCX.js";
|
|
44
|
+
import "./chunk-5IJTPZXP.js";
|
|
45
|
+
import "./chunk-WF6KLKRN.js";
|
|
45
46
|
import "./chunk-HTOTG4TS.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-SR2VOY5J.js";
|
|
48
|
+
import "./chunk-ZJMJ7MCT.js";
|
|
48
49
|
import "./chunk-U7TEQCBN.js";
|
|
49
50
|
import "./chunk-XNLSTHDK.js";
|
|
50
51
|
import "./chunk-PDWPFR5T.js";
|
|
51
52
|
import "./chunk-Y5PA7DVK.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-FLH4YC6W.js";
|
|
53
54
|
import "./chunk-WZWDS3W4.js";
|
|
54
55
|
import "./chunk-PZLD7RTK.js";
|
|
55
56
|
|
|
@@ -11,37 +11,37 @@ 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-TO23PR7J.js";
|
|
15
15
|
import "./chunk-SRWDPPLX.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveRegistry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-THSYN5EK.js";
|
|
19
19
|
import {
|
|
20
20
|
commandUsage
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-LHPEBLOU.js";
|
|
22
|
+
import "./chunk-I7UMHYZX.js";
|
|
23
|
+
import "./chunk-PLG3OYCX.js";
|
|
24
24
|
import {
|
|
25
25
|
Spec
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-5IJTPZXP.js";
|
|
27
|
+
import "./chunk-WF6KLKRN.js";
|
|
28
28
|
import "./chunk-HTOTG4TS.js";
|
|
29
29
|
import {
|
|
30
30
|
RegistryClient
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OAJ3PO3Z.js";
|
|
32
32
|
import "./chunk-APMYKJI2.js";
|
|
33
33
|
import {
|
|
34
34
|
assertOk,
|
|
35
35
|
requestError
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-SR2VOY5J.js";
|
|
37
|
+
import "./chunk-ZJMJ7MCT.js";
|
|
38
38
|
import "./chunk-U7TEQCBN.js";
|
|
39
39
|
import "./chunk-XNLSTHDK.js";
|
|
40
40
|
import "./chunk-PDWPFR5T.js";
|
|
41
41
|
import "./chunk-Y5PA7DVK.js";
|
|
42
42
|
import {
|
|
43
43
|
satisfies
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FLH4YC6W.js";
|
|
45
45
|
import {
|
|
46
46
|
error
|
|
47
47
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,27 +11,27 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
resolveRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-THSYN5EK.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LHPEBLOU.js";
|
|
18
18
|
import {
|
|
19
19
|
Spec
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-5IJTPZXP.js";
|
|
21
|
+
import "./chunk-WF6KLKRN.js";
|
|
22
22
|
import {
|
|
23
23
|
RegistryClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OAJ3PO3Z.js";
|
|
25
25
|
import "./chunk-APMYKJI2.js";
|
|
26
26
|
import {
|
|
27
27
|
assertOk
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-SR2VOY5J.js";
|
|
29
|
+
import "./chunk-ZJMJ7MCT.js";
|
|
30
30
|
import "./chunk-U7TEQCBN.js";
|
|
31
31
|
import "./chunk-XNLSTHDK.js";
|
|
32
32
|
import "./chunk-PDWPFR5T.js";
|
|
33
33
|
import "./chunk-Y5PA7DVK.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-FLH4YC6W.js";
|
|
35
35
|
import {
|
|
36
36
|
error
|
|
37
37
|
} from "./chunk-WZWDS3W4.js";
|