@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.
- package/access-6HRR4HXE.js +293 -0
- package/{bugs-CS34LDPD.js → bugs-2CAZQ32S.js} +19 -22
- package/{build-XHEFAWMN.js → build-OAWTNBMS.js} +10 -13
- package/{cache-LII2V5IM.js → cache-JTAFST6T.js} +14 -15
- package/cache-unzip-src-unzip.js +606 -575
- package/{chunk-D27QPHKI.js → chunk-2V4AQPBR.js} +67 -20
- package/{chunk-JQHMLTO5.js → chunk-3MWZTKGK.js} +419 -328
- package/{chunk-DJBBJDHI.js → chunk-7RZL7BZI.js} +159 -74
- package/chunk-7WHVJ56C.js +73 -0
- package/{chunk-LAG2R3YJ.js → chunk-BW6C3YUV.js} +6 -6
- package/{chunk-6YTJVEK2.js → chunk-CLDF5XLG.js} +11 -11
- package/{chunk-DYL7AFY7.js → chunk-CPM47YUH.js} +5 -3
- package/{chunk-QWWYZ3TT.js → chunk-D2MVJDUA.js} +1 -1
- package/{chunk-5E5GX4G6.js → chunk-FBTBHRPG.js} +1 -1
- package/{chunk-AZLX27EM.js → chunk-FXDRM4ZO.js} +296 -258
- package/chunk-G2YT2GWF.js +120 -0
- package/{chunk-INXSTZAX.js → chunk-HAGUS4HI.js} +21 -21
- package/{chunk-FI5TUER7.js → chunk-HQ4US6G3.js} +681 -687
- package/chunk-IEISSXS4.js +711 -0
- package/{chunk-TRXTSZFT.js → chunk-IYO5QKUW.js} +1 -1
- package/{chunk-DJBVQKBB.js → chunk-K3RN3BGU.js} +5 -5
- package/{chunk-P2HZ4ISK.js → chunk-LPLXAVG7.js} +54 -6
- package/{chunk-XSUIV5NF.js → chunk-M7HPHM7B.js} +14 -12
- package/{chunk-BIUCOMBH.js → chunk-MAIQR5GM.js} +5 -5
- package/{chunk-TDTJOKF2.js → chunk-NLFBANVO.js} +8 -1
- package/{chunk-XWF3GJKE.js → chunk-Q3DNNTPG.js} +27 -1
- package/{chunk-VCSVHRCS.js → chunk-R44FR7BY.js} +1269 -590
- package/{chunk-QDGZZ5FZ.js → chunk-TYV4N3S3.js} +6 -692
- package/{chunk-LKFTVDWS.js → chunk-VPKJNCKL.js} +26 -13
- package/{chunk-VTZZIXYW.js → chunk-VRIS5HAW.js} +3 -3
- package/{chunk-S5I2UOBT.js → chunk-WX2DCAG2.js} +7 -7
- package/{chunk-YR47M5L7.js → chunk-XYCCQT7N.js} +34 -39
- package/{chunk-D7U7KDEM.js → chunk-YCQTLBWF.js} +1 -1
- package/{chunk-SR66HWMM.js → chunk-ZINDEKAU.js} +144 -93
- package/{ci-EEXNEPKP.js → ci-TOJJVHI4.js} +13 -16
- package/cli-package.json +2 -1
- package/{config-4ZFJD5AY.js → config-DVAPEE5D.js} +12 -14
- package/{config-6MUU2TRJ.js → config-GOV4E2KK.js} +26 -26
- package/{create-DEKJKPYX.js → create-NGJD7K4L.js} +24 -26
- package/deprecate-WROL4AHK.js +176 -0
- package/{devtools-NOLON5YL.js → devtools-TPMVKPB5.js} +80 -77
- package/dist-tag-WZXXWXMB.js +204 -0
- package/{docs-5EKPZANX.js → docs-YCOZFMZG.js} +19 -22
- package/{exec-I4YPE6YW.js → exec-URG5OWLH.js} +24 -26
- package/{exec-cache-XEWPABLK.js → exec-cache-KHDOEH2F.js} +21 -23
- package/{exec-local-OQXG2VPW.js → exec-local-52TVUL5K.js} +19 -21
- package/{help-OG655SE5.js → help-LNSDVBGJ.js} +4 -5
- package/{init-LJH2YTBM.js → init-XNMWYATA.js} +10 -8
- package/{install-KP2FGWOR.js → install-SKUZERZJ.js} +28 -17
- package/{list-ACZ3ZSIZ.js → list-XEDVFUD5.js} +19 -21
- package/{login-VFTRKZE2.js → login-52SA2DSI.js} +6 -9
- package/{logout-Z4AVG64D.js → logout-5YYHNV5W.js} +6 -9
- package/{pack-GPJNX7RP.js → pack-B7QZHMYP.js} +14 -17
- package/package.json +1 -1
- package/{ping-B2YS4SR3.js → ping-PRGDYDRI.js} +6 -9
- package/{pkg-WUYJDFSH.js → pkg-UEIQIVVD.js} +15 -19
- package/profile-46FKVQEL.js +129 -0
- package/{publish-WTMGC4ET.js → publish-HBYHOSKH.js} +17 -20
- package/{query-UCM35VVC.js → query-5A4YLS2C.js} +19 -21
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +1157 -1032
- package/{repo-MZCPTQZU.js → repo-I6X66PHD.js} +19 -22
- package/{reporter-XRZ37LFK.js → reporter-NUXJTV4G.js} +2 -3
- package/{run-CAX4Z2SC.js → run-VEZMUMVH.js} +19 -21
- package/{run-exec-SM42FE7W.js → run-exec-6ADY4BKH.js} +19 -21
- package/security-archive-src-update-expired.js +8 -7
- package/{src-SDJWTPCU.js → src-O32QL33R.js} +20 -22
- package/token-YK6L74PA.js +206 -0
- package/{uninstall-YYPPXM2O.js → uninstall-UBUZBV7E.js} +14 -17
- package/unpublish-ZHJEKT7A.js +224 -0
- package/{update-YFUTH33A.js → update-WO4BHJF4.js} +13 -16
- package/{version-SK256WED.js → version-RLESYHML.js} +13 -16
- package/{view-CBYGJ76J.js → view-UA5HXFXG.js} +16 -17
- 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-ZT4ZEN2C.js → whoami-7H3FPR2O.js} +6 -9
- package/chunk-52LBC3AX.js +0 -75
- package/chunk-BGQCUUCA.js +0 -667
- package/chunk-E74WGW5C.js +0 -49
- package/chunk-JLJKOF75.js +0 -40
- package/chunk-YP4YNE5Y.js +0 -68
- package/token-YCURCCNR.js +0 -103
|
@@ -16,6 +16,40 @@ import {
|
|
|
16
16
|
error
|
|
17
17
|
} from "./chunk-WZWDS3W4.js";
|
|
18
18
|
|
|
19
|
+
// ../../node_modules/.vlt/~npm~package-json-from-dist@1.0.1/node_modules/package-json-from-dist/dist/esm/index.js
|
|
20
|
+
import { readFileSync } from "node:fs";
|
|
21
|
+
import { dirname, resolve, sep } from "node:path";
|
|
22
|
+
import { fileURLToPath } from "node:url";
|
|
23
|
+
var NM = `${sep}node_modules${sep}`;
|
|
24
|
+
var STORE = `.store${sep}`;
|
|
25
|
+
var PKG = `${sep}package${sep}`;
|
|
26
|
+
var DIST = `${sep}dist${sep}`;
|
|
27
|
+
var findPackageJson = (from, pathFromSrc = "../package.json") => {
|
|
28
|
+
const f2 = typeof from === "object" || from.startsWith("file://") ? fileURLToPath(from) : from;
|
|
29
|
+
const __dirname = dirname(f2);
|
|
30
|
+
const nms = __dirname.lastIndexOf(NM);
|
|
31
|
+
if (nms !== -1) {
|
|
32
|
+
const nm = __dirname.substring(0, nms + NM.length);
|
|
33
|
+
const pkgDir = __dirname.substring(nms + NM.length);
|
|
34
|
+
if (pkgDir.startsWith(STORE)) {
|
|
35
|
+
const pkg = pkgDir.indexOf(PKG, STORE.length);
|
|
36
|
+
if (pkg) {
|
|
37
|
+
return resolve(nm, pkgDir.substring(0, pkg + PKG.length), "package.json");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const pkgName = pkgDir.startsWith("@") ? pkgDir.split(sep, 2).join(sep) : String(pkgDir.split(sep)[0]);
|
|
41
|
+
return resolve(nm, pkgName, "package.json");
|
|
42
|
+
} else {
|
|
43
|
+
const d2 = __dirname.lastIndexOf(DIST);
|
|
44
|
+
if (d2 !== -1) {
|
|
45
|
+
return resolve(__dirname.substring(0, d2), "package.json");
|
|
46
|
+
} else {
|
|
47
|
+
return resolve(__dirname, pathFromSrc);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var loadPackageJson = (from, pathFromSrc = "../package.json") => JSON.parse(readFileSync(findPackageJson(from, pathFromSrc), "utf8"));
|
|
52
|
+
|
|
19
53
|
// ../../node_modules/.vlt/~npm~jackspeak@4.2.3/node_modules/jackspeak/dist/esm/index.js
|
|
20
54
|
import { inspect, parseArgs } from "node:util";
|
|
21
55
|
|
|
@@ -1077,12 +1111,15 @@ var defaultView = (
|
|
|
1077
1111
|
);
|
|
1078
1112
|
var defaultEditor = () => process.env.EDITOR || process.env.VISUAL || (process.platform === "win32" ? `${process.env.SYSTEMROOT}\\notepad.exe` : "vi");
|
|
1079
1113
|
var canonicalCommands = {
|
|
1114
|
+
access: "access",
|
|
1080
1115
|
bugs: "bugs",
|
|
1081
1116
|
build: "build",
|
|
1082
1117
|
cache: "cache",
|
|
1083
1118
|
ci: "ci",
|
|
1084
1119
|
config: "config",
|
|
1085
1120
|
create: "create",
|
|
1121
|
+
deprecate: "deprecate",
|
|
1122
|
+
"dist-tag": "dist-tag",
|
|
1086
1123
|
docs: "docs",
|
|
1087
1124
|
exec: "exec",
|
|
1088
1125
|
"exec-local": "exec-local",
|
|
@@ -1096,6 +1133,7 @@ var canonicalCommands = {
|
|
|
1096
1133
|
pack: "pack",
|
|
1097
1134
|
ping: "ping",
|
|
1098
1135
|
pkg: "pkg",
|
|
1136
|
+
profile: "profile",
|
|
1099
1137
|
publish: "publish",
|
|
1100
1138
|
query: "query",
|
|
1101
1139
|
repo: "repo",
|
|
@@ -1103,6 +1141,7 @@ var canonicalCommands = {
|
|
|
1103
1141
|
run: "run",
|
|
1104
1142
|
token: "token",
|
|
1105
1143
|
uninstall: "uninstall",
|
|
1144
|
+
unpublish: "unpublish",
|
|
1106
1145
|
update: "update",
|
|
1107
1146
|
"exec-cache": "exec-cache",
|
|
1108
1147
|
version: "version",
|
|
@@ -1153,30 +1192,21 @@ var recordFields = [
|
|
|
1153
1192
|
"git-hosts",
|
|
1154
1193
|
"registries",
|
|
1155
1194
|
"git-host-archives",
|
|
1156
|
-
"
|
|
1195
|
+
"scoped-registries",
|
|
1157
1196
|
"jsr-registries"
|
|
1158
1197
|
];
|
|
1159
1198
|
var isRecordField = (s) => recordFields.includes(s);
|
|
1160
|
-
var stopParsingCommands = [
|
|
1161
|
-
"create",
|
|
1162
|
-
"run",
|
|
1163
|
-
"run-exec",
|
|
1164
|
-
"exec-local",
|
|
1165
|
-
"exec"
|
|
1166
|
-
];
|
|
1167
|
-
var stopParsing = void 0;
|
|
1168
1199
|
var j2 = jack({
|
|
1169
1200
|
envPrefix: "VLT",
|
|
1170
1201
|
allowPositionals: true,
|
|
1171
|
-
usage: `vlt [<options>] [<cmd> [<args> ...]]
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
}
|
|
1202
|
+
usage: `vlt [<options>] [<cmd> [<args> ...]]`
|
|
1203
|
+
// vlt options can appear on either side of the command/script
|
|
1204
|
+
// name. To forward an argument (especially a flag-like one) to
|
|
1205
|
+
// the underlying bin/script without vlt interpreting it, place
|
|
1206
|
+
// it after a `--` terminator, e.g.:
|
|
1207
|
+
// vlt run scriptName --vlt-flag -- --script-flag --more
|
|
1208
|
+
// Node's `parseArgs` natively treats everything following `--`
|
|
1209
|
+
// as positional, so no special-casing is needed here.
|
|
1180
1210
|
}).heading("vlt").description(
|
|
1181
1211
|
`More documentation available at <https://docs.vlt.sh>`
|
|
1182
1212
|
).heading("Subcommands");
|
|
@@ -1241,12 +1271,12 @@ var definition = j2.heading("Configuration").description(
|
|
|
1241
1271
|
mapping in most cases.
|
|
1242
1272
|
`
|
|
1243
1273
|
},
|
|
1244
|
-
"
|
|
1274
|
+
"scoped-registries": {
|
|
1245
1275
|
hint: "@scope=url",
|
|
1246
1276
|
description: `Map package name scopes to registry URLs.
|
|
1247
1277
|
|
|
1248
1278
|
For example,
|
|
1249
|
-
\`--
|
|
1279
|
+
\`--scoped-registries @acme=https://registry.acme/\`
|
|
1250
1280
|
would tell vlt to fetch any packages named
|
|
1251
1281
|
\`@acme/...\` from the \`https://registry.acme/\`
|
|
1252
1282
|
registry.
|
|
@@ -1641,6 +1671,10 @@ var definition = j2.heading("Configuration").description(
|
|
|
1641
1671
|
"dry-run": {
|
|
1642
1672
|
description: "Run command without making any changes"
|
|
1643
1673
|
},
|
|
1674
|
+
force: {
|
|
1675
|
+
short: "f",
|
|
1676
|
+
description: "Force potentially dangerous operations, such as unpublishing an entire package."
|
|
1677
|
+
},
|
|
1644
1678
|
"expect-lockfile": {
|
|
1645
1679
|
description: "Fail if lockfile is missing or out of date. Used by ci command to enforce lockfile integrity."
|
|
1646
1680
|
},
|
|
@@ -1676,6 +1710,18 @@ var definition = j2.heading("Configuration").description(
|
|
|
1676
1710
|
description: `Directory to use for pack and publish operations instead of the current directory.
|
|
1677
1711
|
The directory must exist and nothing will be copied to it.`
|
|
1678
1712
|
}
|
|
1713
|
+
}).flag({
|
|
1714
|
+
telemetry: {
|
|
1715
|
+
description: `Enable anonymous usage telemetry.
|
|
1716
|
+
|
|
1717
|
+
vlt collects anonymized usage data to help improve
|
|
1718
|
+
the tool. No personally identifiable information is
|
|
1719
|
+
ever sent.
|
|
1720
|
+
|
|
1721
|
+
Set \`--no-telemetry\` or \`VLT_TELEMETRY=0\` or
|
|
1722
|
+
\`DO_NOT_TRACK=1\` to opt out.`,
|
|
1723
|
+
default: true
|
|
1724
|
+
}
|
|
1679
1725
|
}).flag({
|
|
1680
1726
|
yes: {
|
|
1681
1727
|
short: "y",
|
|
@@ -1706,6 +1752,7 @@ var getSortedCliOptions = () => {
|
|
|
1706
1752
|
var getSortedKeys = () => Object.keys(definition.toJSON()).sort((a, b2) => a.localeCompare(b2));
|
|
1707
1753
|
|
|
1708
1754
|
export {
|
|
1755
|
+
loadPackageJson,
|
|
1709
1756
|
jack,
|
|
1710
1757
|
defaultView,
|
|
1711
1758
|
commands,
|