@vltpkg/cli-js 1.5.0 → 1.6.1
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-QPX4QXV4.js → access-YSLEWR2C.js} +8 -8
- package/{bugs-TLOECXEM.js → bugs-S6CRUEA2.js} +23 -19
- package/{build-IQOS3LKO.js → build-SG3KPX3W.js} +49 -14
- package/{cache-O5IBYYSB.js → cache-HA77ROM7.js} +16 -13
- package/cache-unzip-src-unzip.js +23 -4
- package/{chunk-3S3W7QEM.js → chunk-3E3ISOYM.js} +10 -5
- package/{chunk-43EJ4Q42.js → chunk-3JIN46K5.js} +1 -1
- package/{chunk-5KW6AOTT.js → chunk-4GMNWW4C.js} +1 -1
- package/{chunk-6W5XMVIZ.js → chunk-4UAIPIAV.js} +7 -7
- package/{chunk-7UWRR6EE.js → chunk-5Q2HSLVV.js} +1 -1
- package/{chunk-LUVDMEW4.js → chunk-6D3QAFNZ.js} +1 -1
- package/{chunk-LH7J5BDU.js → chunk-6XVW7CWJ.js} +3 -3
- package/{chunk-UZ6ICZE3.js → chunk-7M2VTFLP.js} +12 -1
- package/{chunk-XCQCYB6G.js → chunk-AEVT3CHK.js} +142 -16
- package/{chunk-SMXXFQPI.js → chunk-AHLBPSGQ.js} +3 -3
- package/{chunk-6LZM3I4Q.js → chunk-BF5DRGRZ.js} +25 -4
- package/chunk-BH5CVXNY.js +115 -0
- package/{chunk-CS6AYPY5.js → chunk-BQMHDAYL.js} +6 -13
- package/{chunk-2U4PVHP4.js → chunk-C4RJ4NNS.js} +137 -47
- package/{chunk-F7NPYSI2.js → chunk-CAV7FKWQ.js} +2 -2
- package/chunk-DXED4ARV.js +436 -0
- package/chunk-E74WGW5C.js +49 -0
- package/{chunk-CMLDLZZ3.js → chunk-EFHOWRKU.js} +56 -0
- package/{chunk-IFEZ6BFV.js → chunk-EMTGRCSE.js} +2 -2
- package/{chunk-4TSHLSRK.js → chunk-EYGOEAJM.js} +1 -1
- package/{chunk-DBANBIL2.js → chunk-FZCPQWCJ.js} +1 -0
- package/chunk-GCTREKA4.js +115 -0
- package/{chunk-CW56EJIL.js → chunk-HT6FS4VB.js} +1 -1
- package/{chunk-VR7NRWAD.js → chunk-IHERL3TA.js} +17 -16
- package/chunk-JV5XR5JQ.js +349 -0
- package/{chunk-T5EP7QEF.js → chunk-JZXNHIQE.js} +28 -28
- package/{chunk-IJUVVD7E.js → chunk-KD5ZK72K.js} +1 -1
- package/{chunk-C6ZVVEFV.js → chunk-KURQHX54.js} +5 -3
- package/{chunk-GUP55DM6.js → chunk-L3ZF7OYM.js} +2 -2
- package/{chunk-X6JKMIOU.js → chunk-LGQVZTYR.js} +4 -36
- package/{chunk-G3FZ2ZJK.js → chunk-M242QVJS.js} +1 -1
- package/chunk-MCDLJZXT.js +82 -0
- package/{chunk-WHWPAYZY.js → chunk-MSWOR3FV.js} +35 -7
- package/chunk-N3V6EK5I.js +77 -0
- package/{chunk-ISAMD2FE.js → chunk-N6HV7JWC.js} +1 -1
- package/{chunk-MYX4JCIJ.js → chunk-NO53Y3QO.js} +1 -1
- package/chunk-O6MQ7NN6.js +1155 -0
- package/{chunk-XCSNI6AO.js → chunk-OWL5G4K4.js} +4 -4
- package/{chunk-35EG6T3J.js → chunk-Q2UEILN6.js} +21 -9
- package/{chunk-Z5D5KODU.js → chunk-VGPLFOJO.js} +4 -2
- package/{chunk-ARE7FKDG.js → chunk-W24SBFY5.js} +5 -5
- package/{chunk-XD5KUDXX.js → chunk-WMMKUVAT.js} +10 -8
- package/{chunk-4UH3KMTD.js → chunk-ZJE3OTP3.js} +258 -451
- package/{ci-ESVUMOZO.js → ci-GVLL72SS.js} +21 -17
- package/cli-package.json +3 -1
- package/{config-ZVVLFKR7.js → config-KH6AEMHI.js} +13 -12
- package/{config-TMB2X6DW.js → config-TIPKOPYS.js} +10 -9
- package/{create-BLTNKSBQ.js → create-SKNEZEZY.js} +28 -24
- package/{deprecate-VA6PGHYL.js → deprecate-RFRLJZVL.js} +12 -12
- package/{dist-tag-OYJREFO2.js → dist-tag-LVYOTJHJ.js} +8 -8
- package/{docs-6OC3OQNM.js → docs-INXRFEGY.js} +23 -19
- package/{exec-AZPGFVRY.js → exec-5MA5XRPZ.js} +28 -24
- package/{exec-cache-D75UY2WI.js → exec-cache-7GS4KLWJ.js} +24 -20
- package/{exec-local-E2JKB4X4.js → exec-local-RE4KVTMN.js} +22 -18
- package/{help-UPW77X5N.js → help-JHLP565L.js} +5 -4
- package/{init-SNO6QL7C.js → init-4UFHO67B.js} +13 -12
- package/{install-TEJM2YVX.js → install-Z33YVCDK.js} +108 -52
- package/{list-NHCC2RNB.js → list-XAMKR6TL.js} +29 -22
- package/{login-XNZXCGFD.js → login-6NXUO5FF.js} +14 -13
- package/{logout-YCM7O36Q.js → logout-6P7LWTAY.js} +8 -8
- package/{outdated-4LA7N63W.js → outdated-YNUSWZJD.js} +18 -17
- package/{pack-RC4CZSWF.js → pack-LMQYH75V.js} +15 -14
- package/package.json +1 -1
- package/{ping-RLVAZGDL.js → ping-VLFZ3WCY.js} +8 -8
- package/{pkg-FED5C6TP.js → pkg-JMPBHKSW.js} +16 -15
- package/{profile-DJZNLQPG.js → profile-PJJAA2YM.js} +8 -8
- package/{publish-54AMVMTQ.js → publish-33RFJ2HJ.js} +24 -20
- package/{query-ZQLMSJ7O.js → query-LUUOK57K.js} +29 -22
- package/{registry-6HKQYSZX.js → registry-ZGGWVLBM.js} +5 -5
- package/registry-client-src-revalidate.js +41 -11
- package/{repo-ITA4BLZ4.js → repo-VLHLQP2S.js} +23 -19
- package/{reporter-UYVR2WMB.js → reporter-SNSM2TDC.js} +61 -15
- package/{run-TP2HTJRN.js → run-USWK7R3N.js} +22 -18
- package/{run-exec-UGCC53DV.js → run-exec-PHE44AWW.js} +22 -18
- package/security-archive-src-update-expired.js +24 -5
- package/{setup-XPAM5U3Z.js → setup-JMY47ERY.js} +206 -27
- package/{skills-YD2TB2VD.js → skills-7PYMTDER.js} +41 -56
- package/{skills-LR6GXW3X.js → skills-YMMV6TMN.js} +24 -21
- package/{src-34D4DOOH.js → src-2ZS4VHJP.js} +25 -19
- package/{src-H6DFCAPH.js → src-A5ZJNOHN.js} +6 -4
- package/{src-LHDC4NJO.js → src-W2VQULRG.js} +2 -2
- package/{token-OF63PFTQ.js → token-YKHELNVQ.js} +10 -9
- package/{uninstall-B54FQ5KQ.js → uninstall-Q46HWR5S.js} +53 -17
- package/{unpublish-CSHIGMDQ.js → unpublish-LBANPSJ5.js} +8 -8
- package/{update-HS4VJ5ZG.js → update-B2EGLZHI.js} +19 -17
- package/{version-L7S3DHUS.js → version-IEOBL3NN.js} +14 -13
- package/{view-NWKKWFVA.js → view-JCA5VT6F.js} +13 -13
- 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-65K35VGW.js → whoami-OWJUPO3X.js} +8 -8
- package/chunk-T2VBCUF5.js +0 -77
|
@@ -11,26 +11,26 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
commandUsage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HT6FS4VB.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveRegistry
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-7M2VTFLP.js";
|
|
18
|
+
import "./chunk-EFHOWRKU.js";
|
|
19
|
+
import "./chunk-6D3QAFNZ.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q2UEILN6.js";
|
|
23
23
|
import "./chunk-QNHBAGXQ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-M242QVJS.js";
|
|
25
25
|
import {
|
|
26
26
|
assertOk
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4GMNWW4C.js";
|
|
28
28
|
import "./chunk-SUU2WETN.js";
|
|
29
29
|
import "./chunk-B6RIGNEO.js";
|
|
30
30
|
import "./chunk-XNLSTHDK.js";
|
|
31
31
|
import "./chunk-PDWPFR5T.js";
|
|
32
32
|
import "./chunk-Y5PA7DVK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-BF5DRGRZ.js";
|
|
34
34
|
import {
|
|
35
35
|
error
|
|
36
36
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -14,49 +14,53 @@ import {
|
|
|
14
14
|
} from "./chunk-CLVRCGOZ.js";
|
|
15
15
|
import {
|
|
16
16
|
openUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5Q2HSLVV.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W24SBFY5.js";
|
|
21
21
|
import {
|
|
22
22
|
actual
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZJE3OTP3.js";
|
|
24
24
|
import {
|
|
25
25
|
Query
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-C4RJ4NNS.js";
|
|
27
27
|
import {
|
|
28
28
|
SecurityArchive
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-AHLBPSGQ.js";
|
|
30
|
+
import "./chunk-MSWOR3FV.js";
|
|
31
|
+
import "./chunk-LGQVZTYR.js";
|
|
32
|
+
import "./chunk-EYGOEAJM.js";
|
|
33
33
|
import {
|
|
34
34
|
commandUsage
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HT6FS4VB.js";
|
|
36
36
|
import {
|
|
37
37
|
PackageInfoClient
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IHERL3TA.js";
|
|
39
39
|
import "./chunk-SRWDPPLX.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-JV5XR5JQ.js";
|
|
41
|
+
import "./chunk-EMTGRCSE.js";
|
|
42
|
+
import "./chunk-KURQHX54.js";
|
|
42
43
|
import "./chunk-4KCU2KZL.js";
|
|
43
44
|
import "./chunk-WGDTG44V.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-E74WGW5C.js";
|
|
46
|
+
import "./chunk-GCTREKA4.js";
|
|
47
|
+
import "./chunk-MCDLJZXT.js";
|
|
48
|
+
import "./chunk-7M2VTFLP.js";
|
|
49
|
+
import "./chunk-EFHOWRKU.js";
|
|
50
|
+
import "./chunk-CAV7FKWQ.js";
|
|
47
51
|
import {
|
|
48
52
|
Spec
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6D3QAFNZ.js";
|
|
50
54
|
import "./chunk-HTOTG4TS.js";
|
|
51
55
|
import "./chunk-QNHBAGXQ.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-M242QVJS.js";
|
|
57
|
+
import "./chunk-4GMNWW4C.js";
|
|
54
58
|
import "./chunk-SUU2WETN.js";
|
|
55
59
|
import "./chunk-B6RIGNEO.js";
|
|
56
60
|
import "./chunk-XNLSTHDK.js";
|
|
57
61
|
import "./chunk-PDWPFR5T.js";
|
|
58
62
|
import "./chunk-Y5PA7DVK.js";
|
|
59
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-BF5DRGRZ.js";
|
|
60
64
|
import {
|
|
61
65
|
error
|
|
62
66
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -10,20 +10,31 @@ globalThis.clearInterval = _vlt_clearInterval;
|
|
|
10
10
|
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
|
+
actual,
|
|
13
14
|
build
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZJE3OTP3.js";
|
|
16
|
+
import "./chunk-C4RJ4NNS.js";
|
|
17
|
+
import "./chunk-AHLBPSGQ.js";
|
|
17
18
|
import {
|
|
18
19
|
commandUsage
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
} from "./chunk-HT6FS4VB.js";
|
|
21
|
+
import {
|
|
22
|
+
globalBinsLines,
|
|
23
|
+
linkGlobalBins,
|
|
24
|
+
resolveGlobalBinDir
|
|
25
|
+
} from "./chunk-O6MQ7NN6.js";
|
|
26
|
+
import "./chunk-BH5CVXNY.js";
|
|
27
|
+
import "./chunk-JV5XR5JQ.js";
|
|
28
|
+
import "./chunk-EMTGRCSE.js";
|
|
29
|
+
import "./chunk-KURQHX54.js";
|
|
30
|
+
import "./chunk-GCTREKA4.js";
|
|
31
|
+
import "./chunk-MCDLJZXT.js";
|
|
32
|
+
import "./chunk-7M2VTFLP.js";
|
|
33
|
+
import "./chunk-EFHOWRKU.js";
|
|
34
|
+
import "./chunk-CAV7FKWQ.js";
|
|
35
|
+
import "./chunk-6D3QAFNZ.js";
|
|
25
36
|
import "./chunk-HTOTG4TS.js";
|
|
26
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-M242QVJS.js";
|
|
27
38
|
import "./chunk-SUU2WETN.js";
|
|
28
39
|
import "./chunk-B6RIGNEO.js";
|
|
29
40
|
import "./chunk-XNLSTHDK.js";
|
|
@@ -31,7 +42,7 @@ import "./chunk-PDWPFR5T.js";
|
|
|
31
42
|
import "./chunk-Y5PA7DVK.js";
|
|
32
43
|
import {
|
|
33
44
|
isErrorWithCause
|
|
34
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BF5DRGRZ.js";
|
|
35
46
|
import {
|
|
36
47
|
error
|
|
37
48
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -63,6 +74,8 @@ var views = {
|
|
|
63
74
|
`\u23F3 ${skippedMessage(skippedCount, result.skippedReason)}`
|
|
64
75
|
);
|
|
65
76
|
}
|
|
77
|
+
if (result.global)
|
|
78
|
+
messages.push(...globalBinsLines(result.global));
|
|
66
79
|
return messages.join("\n");
|
|
67
80
|
},
|
|
68
81
|
json: (result) => {
|
|
@@ -78,7 +91,8 @@ var views = {
|
|
|
78
91
|
success: successList,
|
|
79
92
|
failure: failureList,
|
|
80
93
|
...skippedList.length ? { skipped: skippedList, skippedReason: result.skippedReason } : {},
|
|
81
|
-
message: successList.length > 0 ? `Built ${successList.length} package${successList.length === 1 ? "" : "s"}.` : skippedList.length ? skippedMessage(skippedList.length, result.skippedReason) : "No packages needed building."
|
|
94
|
+
message: successList.length > 0 ? `Built ${successList.length} package${successList.length === 1 ? "" : "s"}.` : skippedList.length ? skippedMessage(skippedList.length, result.skippedReason) : "No packages needed building.",
|
|
95
|
+
...result.global ? { global: result.global } : null
|
|
82
96
|
};
|
|
83
97
|
}
|
|
84
98
|
};
|
|
@@ -101,17 +115,22 @@ var usage = () => commandUsage({
|
|
|
101
115
|
target: {
|
|
102
116
|
value: "<query>",
|
|
103
117
|
description: "Query selector to filter packages using DSS syntax."
|
|
118
|
+
},
|
|
119
|
+
global: {
|
|
120
|
+
description: "Build packages installed in the global project."
|
|
104
121
|
}
|
|
105
122
|
}
|
|
106
123
|
});
|
|
107
124
|
var isGraphRunError = (error2) => typeof error2 === "object" && error2 !== null && "code" in error2 && error2.code === "GRAPHRUN_TRAVERSAL" && "node" in error2;
|
|
108
125
|
var command = async (conf) => {
|
|
109
126
|
const { options, projectRoot } = conf;
|
|
127
|
+
const binDir = conf.globalRoot ? await resolveGlobalBinDir(conf) : void 0;
|
|
128
|
+
let result;
|
|
110
129
|
try {
|
|
111
130
|
const targetOption = conf.get("target");
|
|
112
131
|
const targetPositional = conf.positionals[0];
|
|
113
132
|
const target = targetOption || targetPositional || ":scripts:not(:built):not(:malware)";
|
|
114
|
-
|
|
133
|
+
result = await build({
|
|
115
134
|
...options,
|
|
116
135
|
projectRoot,
|
|
117
136
|
packageJson: options.packageJson,
|
|
@@ -119,7 +138,6 @@ var command = async (conf) => {
|
|
|
119
138
|
scurry: options.scurry,
|
|
120
139
|
target
|
|
121
140
|
});
|
|
122
|
-
return result;
|
|
123
141
|
} catch (cause) {
|
|
124
142
|
const graphRunError = isErrorWithCause(cause) && isGraphRunError(cause.cause) ? cause.cause : void 0;
|
|
125
143
|
if (graphRunError?.code === "GRAPHRUN_TRAVERSAL") {
|
|
@@ -131,6 +149,23 @@ var command = async (conf) => {
|
|
|
131
149
|
}
|
|
132
150
|
throw error("Build failed", { cause });
|
|
133
151
|
}
|
|
152
|
+
if (!binDir) return result;
|
|
153
|
+
const graph = actual.load({
|
|
154
|
+
...options,
|
|
155
|
+
projectRoot,
|
|
156
|
+
mainManifest: options.packageJson.read(projectRoot),
|
|
157
|
+
monorepo: options.monorepo,
|
|
158
|
+
scurry: options.scurry,
|
|
159
|
+
loadManifests: true
|
|
160
|
+
});
|
|
161
|
+
const global = await linkGlobalBins(graph, {
|
|
162
|
+
projectRoot,
|
|
163
|
+
scurry: options.scurry,
|
|
164
|
+
force: options.force,
|
|
165
|
+
binDir,
|
|
166
|
+
fallback: () => resolveGlobalBinDir(conf, { selfUnwritable: true })
|
|
167
|
+
});
|
|
168
|
+
return { ...result, global };
|
|
134
169
|
};
|
|
135
170
|
export {
|
|
136
171
|
command,
|
|
@@ -15,30 +15,33 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-MSWOR3FV.js";
|
|
19
|
+
import "./chunk-LGQVZTYR.js";
|
|
20
|
+
import "./chunk-EYGOEAJM.js";
|
|
21
21
|
import {
|
|
22
22
|
commandUsage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HT6FS4VB.js";
|
|
24
24
|
import {
|
|
25
25
|
ViewClass
|
|
26
26
|
} from "./chunk-4KCU2KZL.js";
|
|
27
27
|
import "./chunk-WGDTG44V.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-E74WGW5C.js";
|
|
29
|
+
import "./chunk-GCTREKA4.js";
|
|
30
|
+
import "./chunk-MCDLJZXT.js";
|
|
31
|
+
import "./chunk-7M2VTFLP.js";
|
|
32
|
+
import "./chunk-EFHOWRKU.js";
|
|
33
|
+
import "./chunk-CAV7FKWQ.js";
|
|
31
34
|
import {
|
|
32
35
|
Spec
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6D3QAFNZ.js";
|
|
34
37
|
import {
|
|
35
38
|
CacheEntry
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Q2UEILN6.js";
|
|
37
40
|
import "./chunk-QNHBAGXQ.js";
|
|
38
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-M242QVJS.js";
|
|
39
42
|
import {
|
|
40
43
|
assertOk
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4GMNWW4C.js";
|
|
42
45
|
import "./chunk-SUU2WETN.js";
|
|
43
46
|
import "./chunk-B6RIGNEO.js";
|
|
44
47
|
import "./chunk-XNLSTHDK.js";
|
|
@@ -51,12 +54,12 @@ import {
|
|
|
51
54
|
storeEntryNames,
|
|
52
55
|
storeEntryTime,
|
|
53
56
|
verifyStoreEntry
|
|
54
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-N6HV7JWC.js";
|
|
55
58
|
import "./chunk-PDWPFR5T.js";
|
|
56
59
|
import "./chunk-Y5PA7DVK.js";
|
|
57
60
|
import {
|
|
58
61
|
integrityHex
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BF5DRGRZ.js";
|
|
60
63
|
import {
|
|
61
64
|
error
|
|
62
65
|
} from "./chunk-WZWDS3W4.js";
|
package/cache-unzip-src-unzip.js
CHANGED
|
@@ -810,12 +810,31 @@ var Comparator = class {
|
|
|
810
810
|
);
|
|
811
811
|
}
|
|
812
812
|
#parseCaret(comp) {
|
|
813
|
-
const
|
|
814
|
-
if (
|
|
815
|
-
this.tuples.push(
|
|
813
|
+
const parsed = this.#parseX(comp);
|
|
814
|
+
if (isXMajor(parsed)) {
|
|
815
|
+
this.tuples.push(this.#getComparatorAny());
|
|
816
816
|
return;
|
|
817
817
|
}
|
|
818
|
-
const
|
|
818
|
+
const z = this.includePrerelease ? "0" : void 0;
|
|
819
|
+
if (isXMinor(parsed)) {
|
|
820
|
+
const [M4] = parsed;
|
|
821
|
+
this.tuples.push(
|
|
822
|
+
[">=", new Version(comp, M4, 0, 0, z, void 0)],
|
|
823
|
+
["<", new Version(comp, M4 + 1, 0, 0, "0", void 0)]
|
|
824
|
+
);
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
if (isXPatch(parsed)) {
|
|
828
|
+
const [M4, m2] = parsed;
|
|
829
|
+
this.tuples.push(
|
|
830
|
+
[">=", new Version(comp, M4, m2, 0, z, void 0)],
|
|
831
|
+
M4 !== 0 ? ["<", new Version(comp, M4 + 1, 0, 0, "0", void 0)] : ["<", new Version(comp, 0, m2 + 1, 0, "0", void 0)]
|
|
832
|
+
);
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
835
|
+
const [M3, m, p, pr = z, build] = parsed;
|
|
836
|
+
const minv = new Version(comp, M3, m, p, pr, build);
|
|
837
|
+
const min = [">=", minv];
|
|
819
838
|
if (minv.major !== 0) {
|
|
820
839
|
this.tuples.push(min, [
|
|
821
840
|
"<",
|
|
@@ -12,17 +12,17 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
init,
|
|
14
14
|
install
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZJE3OTP3.js";
|
|
16
16
|
import {
|
|
17
17
|
commandUsage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HT6FS4VB.js";
|
|
19
19
|
import {
|
|
20
20
|
assertWSConfig,
|
|
21
21
|
migratableWSConfig,
|
|
22
22
|
minimatch,
|
|
23
23
|
resolveWSConfig,
|
|
24
24
|
splitNegatedPatterns
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KURQHX54.js";
|
|
26
26
|
import {
|
|
27
27
|
load,
|
|
28
28
|
save
|
|
@@ -87,7 +87,9 @@ var command = async (conf) => {
|
|
|
87
87
|
for (const workspace of conf.values.workspace) {
|
|
88
88
|
const cwd = resolve(conf.options.projectRoot, workspace);
|
|
89
89
|
mkdirSync(cwd, { recursive: true });
|
|
90
|
-
results.push(
|
|
90
|
+
results.push(
|
|
91
|
+
await init({ cwd, packageJson: conf.options.packageJson })
|
|
92
|
+
);
|
|
91
93
|
const isMatched = Object.values(parsedWSConfig).some(
|
|
92
94
|
(group) => {
|
|
93
95
|
const { patterns, ignore } = splitNegatedPatterns(group);
|
|
@@ -129,7 +131,10 @@ var command = async (conf) => {
|
|
|
129
131
|
await install({ ...conf.options, allowScripts });
|
|
130
132
|
return results;
|
|
131
133
|
}
|
|
132
|
-
const result = await init({
|
|
134
|
+
const result = await init({
|
|
135
|
+
cwd: process.cwd(),
|
|
136
|
+
packageJson: conf.options.packageJson
|
|
137
|
+
});
|
|
133
138
|
await install({ ...conf.options, allowScripts });
|
|
134
139
|
return result;
|
|
135
140
|
};
|
|
@@ -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
|
graphRunSync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CAV7FKWQ.js";
|
|
15
15
|
|
|
16
16
|
// ../../src/cli-sdk/src/sort-scope-locations.ts
|
|
17
17
|
import { resolve } from "node:path";
|
|
@@ -11,34 +11,34 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
sortScopeLocations
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3JIN46K5.js";
|
|
15
15
|
import {
|
|
16
16
|
createDiffFilesProvider
|
|
17
17
|
} from "./chunk-RIYFGX27.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W24SBFY5.js";
|
|
21
21
|
import {
|
|
22
22
|
actual,
|
|
23
23
|
isRunResult
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZJE3OTP3.js";
|
|
25
25
|
import {
|
|
26
26
|
Query
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-C4RJ4NNS.js";
|
|
28
28
|
import {
|
|
29
29
|
stderr,
|
|
30
30
|
stdout,
|
|
31
31
|
styleTextStdout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MSWOR3FV.js";
|
|
33
33
|
import {
|
|
34
34
|
require_emoji_regex
|
|
35
35
|
} from "./chunk-VTEFO2FT.js";
|
|
36
36
|
import {
|
|
37
37
|
Monorepo
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KURQHX54.js";
|
|
39
39
|
import {
|
|
40
40
|
isErrorWithCause
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BF5DRGRZ.js";
|
|
42
42
|
import {
|
|
43
43
|
error
|
|
44
44
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -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-MSWOR3FV.js";
|
|
15
15
|
import {
|
|
16
16
|
urlOpen
|
|
17
17
|
} from "./chunk-QNHBAGXQ.js";
|
|
@@ -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
|
openUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5Q2HSLVV.js";
|
|
15
15
|
import {
|
|
16
16
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZJE3OTP3.js";
|
|
18
18
|
import {
|
|
19
19
|
stderr
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MSWOR3FV.js";
|
|
21
21
|
import {
|
|
22
22
|
ViewClass
|
|
23
23
|
} from "./chunk-4KCU2KZL.js";
|
|
@@ -9,12 +9,15 @@ 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
|
+
Spec
|
|
14
|
+
} from "./chunk-6D3QAFNZ.js";
|
|
12
15
|
import {
|
|
13
16
|
defaultRegistries,
|
|
14
17
|
defaultRegistryName,
|
|
15
18
|
isErrorWithCause,
|
|
16
19
|
isObject
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BF5DRGRZ.js";
|
|
18
21
|
import {
|
|
19
22
|
error
|
|
20
23
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -85,6 +88,13 @@ var asUnknownSpecPrefix = (er) => {
|
|
|
85
88
|
const { found, spec, validOptions } = isErrorWithCause(er) && isObject(er.cause) ? er.cause : {};
|
|
86
89
|
return typeof found === "string" && /^[^:]+:$/.test(found) && typeof spec === "string" && er.message.startsWith("Protocol ") ? unknownSpecPrefixError(found.slice(0, -1), spec, validOptions) : er;
|
|
87
90
|
};
|
|
91
|
+
var parseSpecArg = (item, options) => {
|
|
92
|
+
try {
|
|
93
|
+
return Spec.parseArgs(item, options);
|
|
94
|
+
} catch (er) {
|
|
95
|
+
throw asUnknownSpecPrefix(er);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
88
98
|
var missingNpmRegistryError = (alias = defaultRegistryName) => error(
|
|
89
99
|
[
|
|
90
100
|
`Missing ${alias} registry configuration.`,
|
|
@@ -163,6 +173,7 @@ export {
|
|
|
163
173
|
missingRegistryError,
|
|
164
174
|
normalizeRegistryURL,
|
|
165
175
|
asUnknownSpecPrefix,
|
|
176
|
+
parseSpecArg,
|
|
166
177
|
missingNpmRegistryError,
|
|
167
178
|
hasConfiguredRegistry,
|
|
168
179
|
hasNpmRegistry,
|