@vltpkg/cli-js 1.0.0-rc.32 → 1.0.0-rc.34
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-SQZRJLJA.js → access-SXQICNAN.js} +23 -12
- package/{bugs-BMZ5UERM.js → bugs-OOPMFRCI.js} +19 -17
- package/{build-LGQI6OGM.js → build-HDXI5OA7.js} +13 -9
- package/{cache-JWHNATAX.js → cache-RW4Y4XNQ.js} +19 -14
- package/cache-unzip-src-unzip.js +434 -428
- package/{chunk-6YXVQ5HC.js → chunk-2PLIV3N3.js} +1 -27
- package/{chunk-G6PG3AGN.js → chunk-3SQ5Y324.js} +11 -8
- package/{chunk-ZUP6UTME.js → chunk-4RZDJQ5U.js} +42 -61
- package/{chunk-M2WD7IBO.js → chunk-4ZXA6RLP.js} +1 -1
- package/{chunk-R44FR7BY.js → chunk-7NHXV6AH.js} +439 -433
- package/{chunk-SIXXDCBI.js → chunk-CCQYIYTA.js} +7 -7
- package/{chunk-FXDRM4ZO.js → chunk-CLVRCGOZ.js} +247 -235
- package/{chunk-YCQTLBWF.js → chunk-CNSTFT7U.js} +1 -1
- package/{chunk-7XE7OES7.js → chunk-D5CP6O6G.js} +3 -3
- package/{chunk-YQXDHMHG.js → chunk-E5YE7UTZ.js} +3167 -2991
- package/chunk-E74WGW5C.js +49 -0
- package/{chunk-DFNHGGGV.js → chunk-EFWPI6IY.js} +1 -1
- package/{chunk-5UXEBLLT.js → chunk-EHEVBLDB.js} +68 -7
- package/{chunk-JBVLIV37.js → chunk-EQ633HIM.js} +14 -13
- package/{chunk-DM3WGEVB.js → chunk-F2FKLPZD.js} +7 -7
- package/chunk-FAG776ZD.js +137 -0
- package/{chunk-HQ4US6G3.js → chunk-FWKQ7YDF.js} +1049 -980
- package/chunk-HB7CKTYO.js +75 -0
- package/{chunk-KRGA5VLT.js → chunk-ICJRCXSG.js} +31 -27
- package/{chunk-FBTBHRPG.js → chunk-LCDBW6IT.js} +1 -1
- package/{chunk-IAKUGHGT.js → chunk-MT76WHSM.js} +1 -1
- package/{chunk-3TVABXAG.js → chunk-MU7Y4R5E.js} +3 -3
- package/{chunk-JKAZKVQU.js → chunk-PW6S6AIO.js} +15 -11
- package/{chunk-DI2CYYXF.js → chunk-U6DM3ROE.js} +706 -442
- package/chunk-UBLFPJHV.js +40 -0
- package/{chunk-SDBTQF2Y.js → chunk-UCD3RJYG.js} +5 -5
- package/{chunk-XFQ2EH5D.js → chunk-VM2RMMY4.js} +3 -3
- package/{chunk-DIKKTUBV.js → chunk-VZ7UNZHR.js} +3 -3
- package/{chunk-2V4AQPBR.js → chunk-WP6CYBPM.js} +81 -46
- package/{chunk-LEX7YPHR.js → chunk-WXMYKCQW.js} +118 -92
- package/{chunk-LRPTCGTW.js → chunk-XA47WS4N.js} +11 -15
- package/{chunk-NLFBANVO.js → chunk-Y7CQIZ7Y.js} +106 -150
- package/{ci-FQJANSQW.js → ci-MTYU2K2A.js} +14 -10
- package/cli-package.json +6 -2
- package/{config-4KQTTXJH.js → config-6NXV2BXW.js} +15 -13
- package/{config-LRL3N7TN.js → config-TVAXCTQO.js} +13 -11
- package/{create-KN6AXEA6.js → create-LXI5DCDW.js} +24 -19
- package/{deprecate-P26WHVFB.js → deprecate-2AQBL5XT.js} +22 -14
- package/{devtools-6NFQDW4L.js → devtools-HGLF4KAO.js} +82 -28
- package/{dist-tag-FA2BT7SA.js → dist-tag-BFSYLRIH.js} +16 -9
- package/{docs-OAPIY4SC.js → docs-ADPJ4B4C.js} +19 -17
- package/{exec-CVZGHJZS.js → exec-GMS54RAC.js} +24 -19
- package/{exec-cache-3AHODVRN.js → exec-cache-R5LVZL5Z.js} +22 -17
- package/{exec-local-I4OJX76E.js → exec-local-TVCLZGIM.js} +17 -14
- package/{help-QFIQSPNS.js → help-6CECUD6C.js} +5 -4
- package/{init-QLADIAP5.js → init-XXFLGYVP.js} +12 -10
- package/{install-B7CU2BLC.js → install-6KMXYSF5.js} +27 -12
- package/{list-OTFV3LOM.js → list-RUO3SUKY.js} +20 -15
- package/{login-LG2ZOIDQ.js → login-6I2CGO7I.js} +23 -9
- package/{logout-KUI773AM.js → logout-JTU4BJKH.js} +19 -8
- package/{pack-C55TTBIQ.js → pack-NCWH2TUA.js} +17 -13
- package/package.json +8 -1
- package/{ping-VNUOC26G.js → ping-4MEAC2WD.js} +17 -10
- package/{pkg-H4RJEBK5.js → pkg-ENSKG6G7.js} +13 -11
- package/{profile-DIJ5JUSE.js → profile-62YHNFSO.js} +16 -8
- package/{publish-XF2TRBPH.js → publish-PPY724N2.js} +58 -23
- package/{query-BGP5JMJ7.js → query-NLWXKOOT.js} +61 -15
- package/registry-QGI44LG4.js +117 -0
- package/registry-client-package.json +6 -2
- package/registry-client-src-revalidate.js +1245 -977
- package/{repo-NCEHK7KB.js → repo-BFRAXIVU.js} +19 -17
- package/{reporter-OB6SNHOZ.js → reporter-2XBYWAVU.js} +3 -2
- package/{run-ZNJJYEJF.js → run-7O65747G.js} +17 -14
- package/{run-exec-F5OV7MVN.js → run-exec-2OYWHL6K.js} +19 -14
- package/security-archive-src-update-expired.js +16 -11
- package/setup-MMIDAIJI.js +181 -0
- package/{src-M3WI7TSB.js → src-OK3KHDYR.js} +25 -17
- package/{token-KXCVRJGF.js → token-VLVXUW54.js} +20 -9
- package/{uninstall-33SUWR6K.js → uninstall-TAG6QIAG.js} +15 -11
- package/{unpublish-7AZPBZF2.js → unpublish-Y4L5J2IA.js} +17 -9
- package/{update-2EQF6IKZ.js → update-RYH4RKBS.js} +14 -10
- package/{version-HFYI3SEX.js → version-COHB32ON.js} +12 -10
- package/{view-C5OT36OB.js → view-P7U4MF43.js} +18 -14
- 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-KKFV3XR6.js → whoami-47MVFMZC.js} +19 -8
- package/chunk-FXIBCUIM.js +0 -73
|
@@ -13,17 +13,19 @@ import {
|
|
|
13
13
|
command,
|
|
14
14
|
usage,
|
|
15
15
|
views
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-JKAZKVQU.js";
|
|
16
|
+
} from "./chunk-VZ7UNZHR.js";
|
|
17
|
+
import "./chunk-E5YE7UTZ.js";
|
|
18
|
+
import "./chunk-F2FKLPZD.js";
|
|
19
|
+
import "./chunk-ICJRCXSG.js";
|
|
20
|
+
import "./chunk-MT76WHSM.js";
|
|
22
21
|
import "./chunk-HTOTG4TS.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-LCDBW6IT.js";
|
|
23
|
+
import "./chunk-7NHXV6AH.js";
|
|
24
|
+
import "./chunk-PW6S6AIO.js";
|
|
25
|
+
import "./chunk-E74WGW5C.js";
|
|
26
|
+
import "./chunk-WP6CYBPM.js";
|
|
27
|
+
import "./chunk-UBLFPJHV.js";
|
|
28
|
+
import "./chunk-2PLIV3N3.js";
|
|
27
29
|
import "./chunk-XNLSTHDK.js";
|
|
28
30
|
import "./chunk-WZWDS3W4.js";
|
|
29
31
|
import "./chunk-PZLD7RTK.js";
|
|
@@ -11,35 +11,38 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
parseAddArgs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D5CP6O6G.js";
|
|
15
15
|
import {
|
|
16
16
|
InstallReporter
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4RZDJQ5U.js";
|
|
18
18
|
import {
|
|
19
19
|
trackInstall
|
|
20
20
|
} from "./chunk-G2YT2GWF.js";
|
|
21
21
|
import {
|
|
22
22
|
install
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-E5YE7UTZ.js";
|
|
24
|
+
import "./chunk-F2FKLPZD.js";
|
|
25
25
|
import "./chunk-VTEFO2FT.js";
|
|
26
26
|
import "./chunk-RXNA2XCX.js";
|
|
27
27
|
import "./chunk-WGDTG44V.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-JKAZKVQU.js";
|
|
28
|
+
import "./chunk-ICJRCXSG.js";
|
|
29
|
+
import "./chunk-MT76WHSM.js";
|
|
31
30
|
import "./chunk-HTOTG4TS.js";
|
|
32
31
|
import {
|
|
33
32
|
commandUsage
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-LCDBW6IT.js";
|
|
34
|
+
import "./chunk-7NHXV6AH.js";
|
|
35
|
+
import "./chunk-PW6S6AIO.js";
|
|
36
|
+
import "./chunk-E74WGW5C.js";
|
|
37
|
+
import "./chunk-WP6CYBPM.js";
|
|
38
|
+
import "./chunk-UBLFPJHV.js";
|
|
39
|
+
import "./chunk-2PLIV3N3.js";
|
|
38
40
|
import "./chunk-XNLSTHDK.js";
|
|
39
41
|
import "./chunk-WZWDS3W4.js";
|
|
40
42
|
import "./chunk-PZLD7RTK.js";
|
|
41
43
|
|
|
42
44
|
// ../../src/cli-sdk/src/commands/install.ts
|
|
45
|
+
var needsRegistry = true;
|
|
43
46
|
var usage = () => commandUsage({
|
|
44
47
|
command: "install",
|
|
45
48
|
usage: "[packages ...]",
|
|
@@ -49,6 +52,13 @@ var usage = () => commandUsage({
|
|
|
49
52
|
"save-dev": {
|
|
50
53
|
description: "Save installed packages to package.json as devDependencies."
|
|
51
54
|
},
|
|
55
|
+
"save-exact": {
|
|
56
|
+
description: "Save installed packages with exact versions instead of a semver range."
|
|
57
|
+
},
|
|
58
|
+
"save-prefix": {
|
|
59
|
+
value: "<prefix>",
|
|
60
|
+
description: "The version prefix to use when saving dependencies (e.g. ^, ~, >=, or empty string)."
|
|
61
|
+
},
|
|
52
62
|
"save-optional": {
|
|
53
63
|
description: "Save installed packages to package.json as optionalDependencies."
|
|
54
64
|
},
|
|
@@ -134,6 +144,8 @@ var command = async (conf) => {
|
|
|
134
144
|
const frozenLockfile = conf.options["frozen-lockfile"];
|
|
135
145
|
const expectLockfile = conf.options["expect-lockfile"];
|
|
136
146
|
const lockfileOnly = conf.options["lockfile-only"];
|
|
147
|
+
const saveExact = conf.values["save-exact"];
|
|
148
|
+
const savePrefix = conf.values["save-prefix"];
|
|
137
149
|
const allowScripts = conf.get("allow-scripts") ? String(conf.get("allow-scripts")) : ":not(*)";
|
|
138
150
|
const installStart = Date.now();
|
|
139
151
|
const { buildQueue, graph, diff } = await install(
|
|
@@ -142,7 +154,9 @@ var command = async (conf) => {
|
|
|
142
154
|
frozenLockfile,
|
|
143
155
|
expectLockfile,
|
|
144
156
|
allowScripts,
|
|
145
|
-
lockfileOnly
|
|
157
|
+
lockfileOnly,
|
|
158
|
+
saveExact,
|
|
159
|
+
savePrefix
|
|
146
160
|
},
|
|
147
161
|
add
|
|
148
162
|
);
|
|
@@ -160,6 +174,7 @@ var command = async (conf) => {
|
|
|
160
174
|
};
|
|
161
175
|
export {
|
|
162
176
|
command,
|
|
177
|
+
needsRegistry,
|
|
163
178
|
usage,
|
|
164
179
|
views
|
|
165
180
|
};
|
|
@@ -11,13 +11,13 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
MermaidImageView
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MU7Y4R5E.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-VM2RMMY4.js";
|
|
18
|
+
import "./chunk-EHEVBLDB.js";
|
|
19
19
|
import "./chunk-G2YT2GWF.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Y7CQIZ7Y.js";
|
|
21
21
|
import {
|
|
22
22
|
GraphModifier,
|
|
23
23
|
Query,
|
|
@@ -26,24 +26,27 @@ import {
|
|
|
26
26
|
humanReadableOutput,
|
|
27
27
|
jsonOutput,
|
|
28
28
|
mermaidOutput
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-E5YE7UTZ.js";
|
|
30
30
|
import {
|
|
31
31
|
SecurityArchive
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-F2FKLPZD.js";
|
|
33
33
|
import "./chunk-RXNA2XCX.js";
|
|
34
34
|
import "./chunk-WGDTG44V.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-JKAZKVQU.js";
|
|
35
|
+
import "./chunk-EFWPI6IY.js";
|
|
36
|
+
import "./chunk-ICJRCXSG.js";
|
|
37
|
+
import "./chunk-MT76WHSM.js";
|
|
39
38
|
import "./chunk-HTOTG4TS.js";
|
|
39
|
+
import "./chunk-FAG776ZD.js";
|
|
40
40
|
import {
|
|
41
41
|
commandUsage
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-LCDBW6IT.js";
|
|
43
|
+
import "./chunk-CNSTFT7U.js";
|
|
44
|
+
import "./chunk-7NHXV6AH.js";
|
|
45
|
+
import "./chunk-PW6S6AIO.js";
|
|
46
|
+
import "./chunk-E74WGW5C.js";
|
|
47
|
+
import "./chunk-WP6CYBPM.js";
|
|
48
|
+
import "./chunk-UBLFPJHV.js";
|
|
49
|
+
import "./chunk-2PLIV3N3.js";
|
|
47
50
|
import "./chunk-XNLSTHDK.js";
|
|
48
51
|
import {
|
|
49
52
|
error
|
|
@@ -51,6 +54,7 @@ import {
|
|
|
51
54
|
import "./chunk-PZLD7RTK.js";
|
|
52
55
|
|
|
53
56
|
// ../../src/cli-sdk/src/commands/list.ts
|
|
57
|
+
var needsRegistry = true;
|
|
54
58
|
var usage = () => commandUsage({
|
|
55
59
|
command: "ls",
|
|
56
60
|
usage: [
|
|
@@ -224,6 +228,7 @@ var command = async (conf) => {
|
|
|
224
228
|
};
|
|
225
229
|
export {
|
|
226
230
|
command,
|
|
231
|
+
needsRegistry,
|
|
227
232
|
usage,
|
|
228
233
|
views
|
|
229
234
|
};
|
|
@@ -9,16 +9,22 @@ 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
|
+
missingRegistryError
|
|
14
|
+
} from "./chunk-FAG776ZD.js";
|
|
12
15
|
import {
|
|
13
16
|
commandUsage
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LCDBW6IT.js";
|
|
15
18
|
import {
|
|
16
19
|
RegistryClient
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-U6DM3ROE.js";
|
|
21
|
+
import "./chunk-CNSTFT7U.js";
|
|
22
|
+
import "./chunk-7NHXV6AH.js";
|
|
23
|
+
import "./chunk-PW6S6AIO.js";
|
|
24
|
+
import "./chunk-E74WGW5C.js";
|
|
25
|
+
import "./chunk-WP6CYBPM.js";
|
|
26
|
+
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-2PLIV3N3.js";
|
|
22
28
|
import "./chunk-XNLSTHDK.js";
|
|
23
29
|
import "./chunk-WZWDS3W4.js";
|
|
24
30
|
import "./chunk-PZLD7RTK.js";
|
|
@@ -28,11 +34,16 @@ var usage = () => commandUsage({
|
|
|
28
34
|
command: "login",
|
|
29
35
|
usage: [""],
|
|
30
36
|
description: `Authenticate against a registry, and store the token in
|
|
31
|
-
the appropriate config file for later use
|
|
37
|
+
the appropriate config file for later use.
|
|
38
|
+
|
|
39
|
+
There is no default registry, so a registry must either
|
|
40
|
+
already be configured or be provided with
|
|
41
|
+
\`--registry=<url>\`. On success the registry is written to
|
|
42
|
+
the project's \`vlt.json\`.`,
|
|
32
43
|
options: {
|
|
33
44
|
registry: {
|
|
34
45
|
value: "<url>",
|
|
35
|
-
description: "Registry URL to authenticate against."
|
|
46
|
+
description: "Registry URL to authenticate against. Saved to vlt.json."
|
|
36
47
|
},
|
|
37
48
|
identity: {
|
|
38
49
|
value: "<name>",
|
|
@@ -41,8 +52,11 @@ var usage = () => commandUsage({
|
|
|
41
52
|
}
|
|
42
53
|
});
|
|
43
54
|
var command = async (conf) => {
|
|
55
|
+
const { registry } = conf.options;
|
|
56
|
+
if (!registry) throw missingRegistryError();
|
|
44
57
|
const rc = new RegistryClient(conf.options);
|
|
45
|
-
await rc.login(
|
|
58
|
+
await rc.login(registry);
|
|
59
|
+
await conf.addConfigToFile("project", { registry });
|
|
46
60
|
};
|
|
47
61
|
export {
|
|
48
62
|
command,
|
|
@@ -9,26 +9,36 @@ 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
|
+
resolveRegistry
|
|
14
|
+
} from "./chunk-FAG776ZD.js";
|
|
12
15
|
import {
|
|
13
16
|
commandUsage
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LCDBW6IT.js";
|
|
15
18
|
import {
|
|
16
19
|
RegistryClient
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-U6DM3ROE.js";
|
|
21
|
+
import "./chunk-CNSTFT7U.js";
|
|
22
|
+
import "./chunk-7NHXV6AH.js";
|
|
23
|
+
import "./chunk-PW6S6AIO.js";
|
|
24
|
+
import "./chunk-E74WGW5C.js";
|
|
25
|
+
import "./chunk-WP6CYBPM.js";
|
|
26
|
+
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-2PLIV3N3.js";
|
|
22
28
|
import "./chunk-XNLSTHDK.js";
|
|
23
29
|
import "./chunk-WZWDS3W4.js";
|
|
24
30
|
import "./chunk-PZLD7RTK.js";
|
|
25
31
|
|
|
26
32
|
// ../../src/cli-sdk/src/commands/logout.ts
|
|
33
|
+
var needsRegistry = true;
|
|
27
34
|
var usage = () => commandUsage({
|
|
28
35
|
command: "logout",
|
|
29
36
|
usage: [""],
|
|
30
37
|
description: `Log out of the default registry, deleting the token from
|
|
31
|
-
the local keychain, as well as destroying it on the server
|
|
38
|
+
the local keychain, as well as destroying it on the server.
|
|
39
|
+
|
|
40
|
+
Target a specific configured registry by alias with
|
|
41
|
+
\`vlt registry <alias> logout\`.`,
|
|
32
42
|
options: {
|
|
33
43
|
registry: {
|
|
34
44
|
value: "<url>",
|
|
@@ -42,9 +52,10 @@ var usage = () => commandUsage({
|
|
|
42
52
|
});
|
|
43
53
|
var command = async (conf) => {
|
|
44
54
|
const rc = new RegistryClient(conf.options);
|
|
45
|
-
await rc.logout(conf
|
|
55
|
+
await rc.logout(await resolveRegistry(conf));
|
|
46
56
|
};
|
|
47
57
|
export {
|
|
48
58
|
command,
|
|
59
|
+
needsRegistry,
|
|
49
60
|
usage
|
|
50
61
|
};
|
|
@@ -11,32 +11,34 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
packTarball
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EQ633HIM.js";
|
|
15
15
|
import {
|
|
16
16
|
prettyBytes
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XA47WS4N.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VM2RMMY4.js";
|
|
21
21
|
import {
|
|
22
22
|
Query,
|
|
23
23
|
actual,
|
|
24
24
|
run
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-E5YE7UTZ.js";
|
|
26
|
+
import "./chunk-F2FKLPZD.js";
|
|
27
|
+
import "./chunk-FWKQ7YDF.js";
|
|
28
28
|
import {
|
|
29
29
|
minimatch
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-JKAZKVQU.js";
|
|
30
|
+
} from "./chunk-ICJRCXSG.js";
|
|
31
|
+
import "./chunk-MT76WHSM.js";
|
|
33
32
|
import "./chunk-HTOTG4TS.js";
|
|
34
33
|
import {
|
|
35
34
|
commandUsage
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-LCDBW6IT.js";
|
|
36
|
+
import "./chunk-7NHXV6AH.js";
|
|
37
|
+
import "./chunk-PW6S6AIO.js";
|
|
38
|
+
import "./chunk-E74WGW5C.js";
|
|
39
|
+
import "./chunk-WP6CYBPM.js";
|
|
40
|
+
import "./chunk-UBLFPJHV.js";
|
|
41
|
+
import "./chunk-2PLIV3N3.js";
|
|
40
42
|
import "./chunk-XNLSTHDK.js";
|
|
41
43
|
import {
|
|
42
44
|
error
|
|
@@ -47,6 +49,7 @@ import "./chunk-PZLD7RTK.js";
|
|
|
47
49
|
import { writeFile } from "node:fs/promises";
|
|
48
50
|
import { dirname, join, relative, resolve } from "node:path";
|
|
49
51
|
import assert from "node:assert";
|
|
52
|
+
var needsRegistry = true;
|
|
50
53
|
var usage = () => commandUsage({
|
|
51
54
|
command: "pack",
|
|
52
55
|
usage: "",
|
|
@@ -241,6 +244,7 @@ var commandSingle = async (location, conf) => {
|
|
|
241
244
|
export {
|
|
242
245
|
command,
|
|
243
246
|
commandSingle,
|
|
247
|
+
needsRegistry,
|
|
244
248
|
usage,
|
|
245
249
|
views
|
|
246
250
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vltpkg/cli-js",
|
|
3
3
|
"description": "The vlt CLI",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.34",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -20,6 +20,13 @@
|
|
|
20
20
|
"keywords": [
|
|
21
21
|
"vltpkg"
|
|
22
22
|
],
|
|
23
|
+
"bugs": [
|
|
24
|
+
{
|
|
25
|
+
"type": "link",
|
|
26
|
+
"url": "https://github.com/vltpkg/vltpkg/issues"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"homepage": "https://github.com/vltpkg/vltpkg/tree/main/infra/cli-js#readme",
|
|
23
30
|
"bin": {
|
|
24
31
|
"vlxl": "./vlxl.js",
|
|
25
32
|
"vlr": "./vlr.js",
|
|
@@ -9,16 +9,22 @@ 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
|
+
requireRegistry
|
|
14
|
+
} from "./chunk-FAG776ZD.js";
|
|
12
15
|
import {
|
|
13
16
|
commandUsage
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LCDBW6IT.js";
|
|
15
18
|
import {
|
|
16
19
|
RegistryClient
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-U6DM3ROE.js";
|
|
21
|
+
import "./chunk-CNSTFT7U.js";
|
|
22
|
+
import "./chunk-7NHXV6AH.js";
|
|
23
|
+
import "./chunk-PW6S6AIO.js";
|
|
24
|
+
import "./chunk-E74WGW5C.js";
|
|
25
|
+
import "./chunk-WP6CYBPM.js";
|
|
26
|
+
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-2PLIV3N3.js";
|
|
22
28
|
import "./chunk-XNLSTHDK.js";
|
|
23
29
|
import {
|
|
24
30
|
error
|
|
@@ -26,6 +32,7 @@ import {
|
|
|
26
32
|
import "./chunk-PZLD7RTK.js";
|
|
27
33
|
|
|
28
34
|
// ../../src/cli-sdk/src/commands/ping.ts
|
|
35
|
+
var needsRegistry = true;
|
|
29
36
|
var usage = () => commandUsage({
|
|
30
37
|
command: "ping",
|
|
31
38
|
usage: ["", "[<registry-alias>]"],
|
|
@@ -118,12 +125,11 @@ var command = async (conf) => {
|
|
|
118
125
|
return await pingRegistry(rc, registry, registryAlias);
|
|
119
126
|
} else {
|
|
120
127
|
const registries = conf.options.registries;
|
|
128
|
+
const defaultRegistry = requireRegistry(conf);
|
|
121
129
|
const results = [];
|
|
122
|
-
results.push(
|
|
123
|
-
await pingRegistry(rc, conf.options.registry, "default")
|
|
124
|
-
);
|
|
130
|
+
results.push(await pingRegistry(rc, defaultRegistry, "default"));
|
|
125
131
|
for (const [alias, registry] of Object.entries(registries)) {
|
|
126
|
-
if (registry !==
|
|
132
|
+
if (registry !== defaultRegistry) {
|
|
127
133
|
results.push(await pingRegistry(rc, registry, alias));
|
|
128
134
|
}
|
|
129
135
|
}
|
|
@@ -132,6 +138,7 @@ var command = async (conf) => {
|
|
|
132
138
|
};
|
|
133
139
|
export {
|
|
134
140
|
command,
|
|
141
|
+
needsRegistry,
|
|
135
142
|
usage,
|
|
136
143
|
views
|
|
137
144
|
};
|
|
@@ -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
|
views
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VZ7UNZHR.js";
|
|
15
15
|
import {
|
|
16
16
|
del,
|
|
17
17
|
get,
|
|
@@ -19,29 +19,31 @@ import {
|
|
|
19
19
|
} from "./chunk-DBANBIL2.js";
|
|
20
20
|
import {
|
|
21
21
|
createHostContextsMap
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VM2RMMY4.js";
|
|
23
23
|
import {
|
|
24
24
|
GraphModifier,
|
|
25
25
|
Query,
|
|
26
26
|
VIRTUAL_ROOT_ID,
|
|
27
27
|
actual,
|
|
28
28
|
init
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-E5YE7UTZ.js";
|
|
30
30
|
import {
|
|
31
31
|
SecurityArchive
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-F2FKLPZD.js";
|
|
33
33
|
import {
|
|
34
34
|
minimatch
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-JKAZKVQU.js";
|
|
35
|
+
} from "./chunk-ICJRCXSG.js";
|
|
36
|
+
import "./chunk-MT76WHSM.js";
|
|
38
37
|
import "./chunk-HTOTG4TS.js";
|
|
39
38
|
import {
|
|
40
39
|
commandUsage
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-LCDBW6IT.js";
|
|
41
|
+
import "./chunk-7NHXV6AH.js";
|
|
42
|
+
import "./chunk-PW6S6AIO.js";
|
|
43
|
+
import "./chunk-E74WGW5C.js";
|
|
44
|
+
import "./chunk-WP6CYBPM.js";
|
|
45
|
+
import "./chunk-UBLFPJHV.js";
|
|
46
|
+
import "./chunk-2PLIV3N3.js";
|
|
45
47
|
import "./chunk-XNLSTHDK.js";
|
|
46
48
|
import {
|
|
47
49
|
error
|
|
@@ -9,16 +9,22 @@ 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
|
+
resolveRegistry
|
|
14
|
+
} from "./chunk-FAG776ZD.js";
|
|
12
15
|
import {
|
|
13
16
|
commandUsage
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LCDBW6IT.js";
|
|
15
18
|
import {
|
|
16
19
|
RegistryClient
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-U6DM3ROE.js";
|
|
21
|
+
import "./chunk-CNSTFT7U.js";
|
|
22
|
+
import "./chunk-7NHXV6AH.js";
|
|
23
|
+
import "./chunk-PW6S6AIO.js";
|
|
24
|
+
import "./chunk-E74WGW5C.js";
|
|
25
|
+
import "./chunk-WP6CYBPM.js";
|
|
26
|
+
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-2PLIV3N3.js";
|
|
22
28
|
import "./chunk-XNLSTHDK.js";
|
|
23
29
|
import {
|
|
24
30
|
error
|
|
@@ -26,6 +32,7 @@ import {
|
|
|
26
32
|
import "./chunk-PZLD7RTK.js";
|
|
27
33
|
|
|
28
34
|
// ../../src/cli-sdk/src/commands/profile.ts
|
|
35
|
+
var needsRegistry = true;
|
|
29
36
|
var usage = () => commandUsage({
|
|
30
37
|
command: "profile",
|
|
31
38
|
usage: "<command> [<args>]",
|
|
@@ -84,7 +91,7 @@ var command = async (conf) => {
|
|
|
84
91
|
};
|
|
85
92
|
var getProfile = async (conf, args) => {
|
|
86
93
|
const rc = new RegistryClient(conf.options);
|
|
87
|
-
const registryUrl = new URL(conf
|
|
94
|
+
const registryUrl = new URL(await resolveRegistry(conf));
|
|
88
95
|
const url = new URL("-/npm/v1/user", registryUrl);
|
|
89
96
|
const response = await rc.request(url, { useCache: false });
|
|
90
97
|
const data = response.json();
|
|
@@ -110,7 +117,7 @@ var setProfile = async (conf, args) => {
|
|
|
110
117
|
});
|
|
111
118
|
}
|
|
112
119
|
const rc = new RegistryClient(conf.options);
|
|
113
|
-
const registryUrl = new URL(conf
|
|
120
|
+
const registryUrl = new URL(await resolveRegistry(conf));
|
|
114
121
|
const url = new URL("-/npm/v1/user", registryUrl);
|
|
115
122
|
const response = await rc.request(url, {
|
|
116
123
|
method: "POST",
|
|
@@ -124,6 +131,7 @@ var setProfile = async (conf, args) => {
|
|
|
124
131
|
};
|
|
125
132
|
export {
|
|
126
133
|
command,
|
|
134
|
+
needsRegistry,
|
|
127
135
|
usage,
|
|
128
136
|
views
|
|
129
137
|
};
|