vercel 59.11.0 → 59.11.2
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/dist/chunks/{add-CFRVNBKX.js → add-BKSHWTPX.js} +2 -2
- package/dist/chunks/{add-O3GSKZUF.js → add-HPLJZFM2.js} +2 -2
- package/dist/chunks/{add-E45DFT3J.js → add-RBW7QITR.js} +5 -5
- package/dist/chunks/{build-2NTE7JWK.js → build-V4ZLAJWB.js} +2 -2
- package/dist/chunks/{chunk-XS4YBHGW.js → chunk-2EAIC3SH.js} +1 -1
- package/dist/chunks/{chunk-G42BDXTR.js → chunk-2NJJ2K5S.js} +2 -2
- package/dist/chunks/{chunk-6C2JTP4X.js → chunk-6CZZ3SH3.js} +1 -1
- package/dist/chunks/{chunk-YPK2XMZG.js → chunk-6TBDHUXK.js} +2 -2
- package/dist/chunks/{chunk-4Z4HV3CA.js → chunk-B4TXCKXE.js} +1 -1
- package/dist/chunks/{chunk-5JU7QOUH.js → chunk-FKDO3CM4.js} +1 -1
- package/dist/chunks/{chunk-GS2PZFXH.js → chunk-FZRBF25Y.js} +1 -1
- package/dist/chunks/{chunk-ZH2JS7S6.js → chunk-HDBQPBL6.js} +1 -1
- package/dist/chunks/{chunk-3UKQ5L3J.js → chunk-NBW3BWOJ.js} +1 -1
- package/dist/chunks/{chunk-CD7QO7KM.js → chunk-ONRLTUP2.js} +4 -4
- package/dist/chunks/{chunk-XV7KBXHP.js → chunk-OO3OF6MK.js} +2 -2
- package/dist/chunks/{chunk-HLON6KMA.js → chunk-OTXE7MHI.js} +2 -2
- package/dist/chunks/{chunk-3GGEPBAK.js → chunk-Q5K5DEOK.js} +1 -1
- package/dist/chunks/{chunk-LKXKVRDU.js → chunk-QAT3CW4G.js} +1 -1
- package/dist/chunks/{chunk-XJ5UBNNI.js → chunk-QDV5LZ4Q.js} +1 -1
- package/dist/chunks/{chunk-UCSXLBZP.js → chunk-RO44KX6Y.js} +1 -1
- package/dist/chunks/{chunk-U6PIXADP.js → chunk-RSEAADCE.js} +1 -1
- package/dist/chunks/{chunk-UAPPUXE4.js → chunk-RSJBU3ON.js} +3 -3
- package/dist/chunks/{chunk-JCWJUILX.js → chunk-TPATD2MM.js} +2 -2
- package/dist/chunks/{chunk-UXEZ4J3R.js → chunk-WA2SJE5S.js} +1 -1
- package/dist/chunks/{chunk-TBFROLYC.js → chunk-WYU64FLP.js} +12856 -12781
- package/dist/chunks/{clear-YUJE24VB.js → clear-IYGWCNXT.js} +2 -2
- package/dist/chunks/{compile-vercel-config-GFR7RASU.js → compile-vercel-config-NEEBZRUJ.js} +1 -1
- package/dist/chunks/{config-XXTDK74C.js → config-6DS6BBR2.js} +3 -3
- package/dist/chunks/{config-Y7IOHFIF.js → config-NTB5EMV4.js} +2 -2
- package/dist/chunks/{delete-7WTEHQCN.js → delete-LLC2OGHA.js} +2 -2
- package/dist/chunks/{delete-CLDQ7Y54.js → delete-LSGID5FV.js} +2 -2
- package/dist/chunks/{disable-2ATYGRFD.js → disable-H4EXEQK7.js} +2 -2
- package/dist/chunks/{discard-OVE3QLQN.js → discard-FG6VKHWN.js} +2 -2
- package/dist/chunks/{edit-5DPGZZZO.js → edit-BZJSGUHT.js} +3 -3
- package/dist/chunks/{edit-K3LYFSD5.js → edit-YE7D3CPJ.js} +2 -2
- package/dist/chunks/{enable-HGE4W5HS.js → enable-6ESD4QTE.js} +2 -2
- package/dist/chunks/{export-7JV3B73T.js → export-QWSJROLG.js} +2 -2
- package/dist/chunks/{image-OAZPRIVV.js → image-LTHQMKFG.js} +3 -3
- package/dist/chunks/{import-builders-AAFVLI5J.js → import-builders-6O7ILGQJ.js} +2 -2
- package/dist/chunks/{inspect-FHG6BBPK.js → inspect-2C4ZSNYC.js} +2 -2
- package/dist/chunks/{inspect-OS3EMH6V.js → inspect-F7KCTHIL.js} +3 -3
- package/dist/chunks/{inspect-27PTSMPS.js → inspect-ICKNCDMT.js} +2 -2
- package/dist/chunks/{inspect-URZIMJYC.js → inspect-N6SMHV3Z.js} +2 -2
- package/dist/chunks/{inspect-IY7LHGUX.js → inspect-TWDPMXZ5.js} +2 -2
- package/dist/chunks/{list-KRQD3OK4.js → list-DS7ZOUXA.js} +2 -2
- package/dist/chunks/{list-QJWC733B.js → list-IPGQVBJO.js} +1 -1
- package/dist/chunks/{list-6D7LW4DE.js → list-NWTIJF3L.js} +3 -3
- package/dist/chunks/{login-UD6MYSNY.js → login-F7A7ONKC.js} +2 -2
- package/dist/chunks/{ls-VIA7AUIV.js → ls-2QW3ZSM6.js} +2 -2
- package/dist/chunks/{ls-XGBTCRRR.js → ls-D4TUDBIH.js} +2 -2
- package/dist/chunks/{ls-L5J3CS43.js → ls-LSJEUPFX.js} +2 -2
- package/dist/chunks/{ls-PCEHXUR6.js → ls-NBDX3MKN.js} +2 -2
- package/dist/chunks/{ls-GIWVQKCG.js → ls-RNGO257R.js} +3 -3
- package/dist/chunks/{ls-ZPDAOUHY.js → ls-XINES6PL.js} +2 -2
- package/dist/chunks/{open-TII7T3VH.js → open-VRQDWZAW.js} +2 -2
- package/dist/chunks/{permissions-JWRTNLAF.js → permissions-6C5C7TEV.js} +4 -4
- package/dist/chunks/{publish-QPNQWBA3.js → publish-GVIZPNLN.js} +2 -2
- package/dist/chunks/{push-PKPE6E5Q.js → push-EFZ5P5Z6.js} +2 -2
- package/dist/chunks/{query-IOG4LPJZ.js → query-GBS2PIT4.js} +1 -1
- package/dist/chunks/{reorder-HZOC3DN4.js → reorder-TN65IFRL.js} +2 -2
- package/dist/chunks/{reply-TDPC3HKD.js → reply-DYVEV3PY.js} +2 -2
- package/dist/chunks/{resolve-IF3CVXHB.js → resolve-JAWFBPUM.js} +2 -2
- package/dist/chunks/{restore-M6B5E5OX.js → restore-TJVMHUBQ.js} +2 -2
- package/dist/chunks/{rm-VAGUMQMB.js → rm-5B5VHWWN.js} +3 -3
- package/dist/chunks/{rm-6PV64BEM.js → rm-7XACNZ2U.js} +2 -2
- package/dist/chunks/{rm-KJZAMWB5.js → rm-CBPNMSRP.js} +2 -2
- package/dist/chunks/{rm-ZOBZUVKY.js → rm-HQ5CYNJA.js} +2 -2
- package/dist/chunks/{rm-RMSGUZSC.js → rm-REJVXALW.js} +2 -2
- package/dist/chunks/{rule-inspect-BKT5BO6Y.js → rule-inspect-ZSTDDFID.js} +3 -3
- package/dist/chunks/{rules-PTSN2QS7.js → rules-VGV4M4KY.js} +6 -6
- package/dist/chunks/{schema-KEAV2ESA.js → schema-GMTQOQCV.js} +1 -1
- package/dist/chunks/{set-NACUZBNP.js → set-Z5FO2FCC.js} +2 -2
- package/dist/chunks/{tags-CF3VZ4P7.js → tags-SDRXWJ63.js} +2 -2
- package/dist/chunks/{update-AMHBMC5O.js → update-JBQBC3IV.js} +5 -5
- package/dist/commands/build/index.js +275 -17
- package/dist/commands/deploy/index.js +6 -6
- package/dist/commands/dev/index.js +12 -12
- package/dist/commands/env/index.js +2 -2
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +47 -47
- package/dist/index.js +8 -7
- package/dist/version.mjs +1 -1
- package/package.json +47 -47
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveCommentsScope,
|
|
17
17
|
threadNotFoundMessage,
|
|
18
18
|
toApiErrorParts
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QDV5LZ4Q.js";
|
|
20
20
|
import "./chunk-2473DUBR.js";
|
|
21
21
|
import {
|
|
22
22
|
outputError
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
replySubcommand
|
|
29
29
|
} from "./chunk-SLPSPYVR.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-WYU64FLP.js";
|
|
31
31
|
import "./chunk-FXD67VN5.js";
|
|
32
32
|
import "./chunk-XNFHNTS2.js";
|
|
33
33
|
import "./chunk-NGGLYKNU.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
threadNotFoundMessage,
|
|
15
15
|
toApiErrorParts,
|
|
16
16
|
updateThread
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QDV5LZ4Q.js";
|
|
18
18
|
import {
|
|
19
19
|
canPrompt
|
|
20
20
|
} from "./chunk-2473DUBR.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
reopenSubcommand,
|
|
29
29
|
resolveSubcommand
|
|
30
30
|
} from "./chunk-SLPSPYVR.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-WYU64FLP.js";
|
|
32
32
|
import "./chunk-FXD67VN5.js";
|
|
33
33
|
import "./chunk-XNFHNTS2.js";
|
|
34
34
|
import "./chunk-NGGLYKNU.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
requireProjectContext,
|
|
20
20
|
validateRequiredArguments,
|
|
21
21
|
withGlobalFlags
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B4TXCKXE.js";
|
|
23
23
|
import {
|
|
24
24
|
restoreSubcommand
|
|
25
25
|
} from "./chunk-POOO7W47.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
stamp_default
|
|
28
28
|
} from "./chunk-64IF634X.js";
|
|
29
29
|
import "./chunk-VXYGCOKL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-WYU64FLP.js";
|
|
31
31
|
import "./chunk-FXD67VN5.js";
|
|
32
32
|
import "./chunk-XNFHNTS2.js";
|
|
33
33
|
import {
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-RSEAADCE.js";
|
|
13
|
+
import "./chunk-RO44KX6Y.js";
|
|
14
14
|
import "./chunk-3T7WSWZH.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
rulesRmSubcommand
|
|
20
20
|
} from "./chunk-XM3LOQIX.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-WYU64FLP.js";
|
|
22
22
|
import "./chunk-FXD67VN5.js";
|
|
23
23
|
import "./chunk-XNFHNTS2.js";
|
|
24
24
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
emitVcrArgParseError,
|
|
18
18
|
resolveVcrScope,
|
|
19
19
|
validateVcrJsonOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FKDO3CM4.js";
|
|
21
21
|
import "./chunk-WNAKOXGK.js";
|
|
22
22
|
import {
|
|
23
23
|
outputError
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
permissionsRmSubcommand
|
|
28
28
|
} from "./chunk-EZKW5YJ2.js";
|
|
29
29
|
import "./chunk-5XECIWME.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-WYU64FLP.js";
|
|
31
31
|
import "./chunk-FXD67VN5.js";
|
|
32
32
|
import "./chunk-XNFHNTS2.js";
|
|
33
33
|
import {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
subcommandArguments,
|
|
21
21
|
writeConfigJson,
|
|
22
22
|
writeSamplingRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HDBQPBL6.js";
|
|
24
24
|
import "./chunk-5GGUB4EO.js";
|
|
25
25
|
import {
|
|
26
26
|
validateJsonOutput
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
help
|
|
36
36
|
} from "./chunk-I526H4AS.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-WYU64FLP.js";
|
|
38
38
|
import "./chunk-FXD67VN5.js";
|
|
39
39
|
import {
|
|
40
40
|
TelemetryClient
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
requireVcrRepository,
|
|
14
14
|
resolveVcrScope,
|
|
15
15
|
validateVcrJsonOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FKDO3CM4.js";
|
|
17
17
|
import "./chunk-WNAKOXGK.js";
|
|
18
18
|
import "./chunk-3T7WSWZH.js";
|
|
19
19
|
import "./chunk-KXDWXXJH.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-EZKW5YJ2.js";
|
|
|
24
24
|
import "./chunk-NFU4XJIR.js";
|
|
25
25
|
import "./chunk-3HZLXCVL.js";
|
|
26
26
|
import "./chunk-5XECIWME.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-WYU64FLP.js";
|
|
28
28
|
import "./chunk-FXD67VN5.js";
|
|
29
29
|
import "./chunk-XNFHNTS2.js";
|
|
30
30
|
import {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
requireVcrRepositoryAndImageId,
|
|
14
14
|
resolveVcrScope,
|
|
15
15
|
validateVcrJsonOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FKDO3CM4.js";
|
|
17
17
|
import "./chunk-WNAKOXGK.js";
|
|
18
18
|
import "./chunk-3T7WSWZH.js";
|
|
19
19
|
import "./chunk-KXDWXXJH.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
imageRmSubcommand
|
|
22
22
|
} from "./chunk-3HZLXCVL.js";
|
|
23
23
|
import "./chunk-5XECIWME.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-WYU64FLP.js";
|
|
25
25
|
import "./chunk-FXD67VN5.js";
|
|
26
26
|
import "./chunk-XNFHNTS2.js";
|
|
27
27
|
import {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RSEAADCE.js";
|
|
13
13
|
import {
|
|
14
14
|
formatCustomAlertMetric,
|
|
15
15
|
formatCustomAlertTrigger,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseCustomAlertQuery,
|
|
20
20
|
renderAlertTable
|
|
21
21
|
} from "./chunk-26XDDLXM.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RO44KX6Y.js";
|
|
23
23
|
import {
|
|
24
24
|
formatDate
|
|
25
25
|
} from "./chunk-GZLPFESR.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
rulesInspectSubcommand
|
|
41
41
|
} from "./chunk-XM3LOQIX.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-WYU64FLP.js";
|
|
43
43
|
import "./chunk-FXD67VN5.js";
|
|
44
44
|
import "./chunk-XNFHNTS2.js";
|
|
45
45
|
import {
|
|
@@ -32,7 +32,7 @@ var RULES_CONFIG = {
|
|
|
32
32
|
};
|
|
33
33
|
async function rules(client, argv) {
|
|
34
34
|
if (argv.length === 0 || argv[0]?.startsWith("-")) {
|
|
35
|
-
const lsFn = (await import("./ls-
|
|
35
|
+
const lsFn = (await import("./ls-RNGO257R.js")).default;
|
|
36
36
|
return lsFn(client, argv);
|
|
37
37
|
}
|
|
38
38
|
const { subcommand, args, subcommandOriginal } = getSubcommand(
|
|
@@ -65,17 +65,17 @@ async function rules(client, argv) {
|
|
|
65
65
|
}
|
|
66
66
|
switch (subcommand) {
|
|
67
67
|
case "ls":
|
|
68
|
-
return (await import("./ls-
|
|
68
|
+
return (await import("./ls-RNGO257R.js")).default(client, args);
|
|
69
69
|
case "schema":
|
|
70
70
|
return (await import("./schema-45SJNY5L.js")).default(client, args);
|
|
71
71
|
case "add":
|
|
72
|
-
return (await import("./add-
|
|
72
|
+
return (await import("./add-RBW7QITR.js")).default(client, args);
|
|
73
73
|
case "inspect":
|
|
74
|
-
return (await import("./rule-inspect-
|
|
74
|
+
return (await import("./rule-inspect-ZSTDDFID.js")).default(client, args);
|
|
75
75
|
case "rm":
|
|
76
|
-
return (await import("./rm-
|
|
76
|
+
return (await import("./rm-5B5VHWWN.js")).default(client, args);
|
|
77
77
|
case "update":
|
|
78
|
-
return (await import("./update-
|
|
78
|
+
return (await import("./update-JBQBC3IV.js")).default(client, args);
|
|
79
79
|
default:
|
|
80
80
|
output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
|
|
81
81
|
return 1;
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toRule,
|
|
24
24
|
writeConfigJson,
|
|
25
25
|
writeSamplingRules
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HDBQPBL6.js";
|
|
27
27
|
import "./chunk-5GGUB4EO.js";
|
|
28
28
|
import {
|
|
29
29
|
validateJsonOutput
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
help
|
|
39
39
|
} from "./chunk-I526H4AS.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-WYU64FLP.js";
|
|
41
41
|
import "./chunk-FXD67VN5.js";
|
|
42
42
|
import {
|
|
43
43
|
TelemetryClient
|
|
@@ -53,9 +53,9 @@ async function tags(client, argv, telemetry) {
|
|
|
53
53
|
}
|
|
54
54
|
switch (subcommand) {
|
|
55
55
|
case "ls":
|
|
56
|
-
return (await import("./ls-
|
|
56
|
+
return (await import("./ls-D4TUDBIH.js")).default(client, args, telemetry);
|
|
57
57
|
case "inspect":
|
|
58
|
-
return (await import("./inspect-
|
|
58
|
+
return (await import("./inspect-ICKNCDMT.js")).default(client, args, telemetry);
|
|
59
59
|
default:
|
|
60
60
|
output_manager_default.error(`Unhandled tags subcommand: ${subcommand}`);
|
|
61
61
|
return 1;
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
parseCustomAlertQueryBody,
|
|
9
9
|
resolveCustomAlertProjectName,
|
|
10
10
|
setMissingCustomAlertProjectScope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OTXE7MHI.js";
|
|
12
12
|
import {
|
|
13
13
|
emitRulesArgParseError,
|
|
14
14
|
handleRulesApiError,
|
|
15
15
|
parseRulesFlagsAndScope,
|
|
16
16
|
rulesItemPath
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-RSEAADCE.js";
|
|
18
|
+
import "./chunk-RO44KX6Y.js";
|
|
19
19
|
import "./chunk-3T7WSWZH.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Q5K5DEOK.js";
|
|
21
21
|
import "./chunk-AINIBIP4.js";
|
|
22
22
|
import {
|
|
23
23
|
validateJsonOutput
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
rulesUpdateSubcommand
|
|
27
27
|
} from "./chunk-XM3LOQIX.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-WYU64FLP.js";
|
|
29
29
|
import "./chunk-FXD67VN5.js";
|
|
30
30
|
import "./chunk-XNFHNTS2.js";
|
|
31
31
|
import {
|
|
@@ -11,21 +11,21 @@ import {
|
|
|
11
11
|
require_service_schedules,
|
|
12
12
|
require_write_build_result,
|
|
13
13
|
writeBuildResult
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-TPATD2MM.js";
|
|
15
15
|
import {
|
|
16
16
|
importBuilders,
|
|
17
17
|
import_import_builders
|
|
18
|
-
} from "../../chunks/chunk-
|
|
18
|
+
} from "../../chunks/chunk-OO3OF6MK.js";
|
|
19
19
|
import {
|
|
20
20
|
js_yaml_default,
|
|
21
21
|
pullCommandLogic
|
|
22
|
-
} from "../../chunks/chunk-
|
|
22
|
+
} from "../../chunks/chunk-6TBDHUXK.js";
|
|
23
23
|
import {
|
|
24
24
|
require_semver
|
|
25
25
|
} from "../../chunks/chunk-IB5L4LKZ.js";
|
|
26
26
|
import {
|
|
27
27
|
readProjectSettings
|
|
28
|
-
} from "../../chunks/chunk-
|
|
28
|
+
} from "../../chunks/chunk-NBW3BWOJ.js";
|
|
29
29
|
import "../../chunks/chunk-7AEEQOD4.js";
|
|
30
30
|
import "../../chunks/chunk-5XECIWME.js";
|
|
31
31
|
import {
|
|
@@ -60,11 +60,10 @@ import {
|
|
|
60
60
|
require_lib,
|
|
61
61
|
require_main,
|
|
62
62
|
require_minimatch,
|
|
63
|
-
require_runtime,
|
|
64
63
|
resolveProjectCwd,
|
|
65
64
|
ua_default,
|
|
66
65
|
validateConfig
|
|
67
|
-
} from "../../chunks/chunk-
|
|
66
|
+
} from "../../chunks/chunk-WYU64FLP.js";
|
|
68
67
|
import "../../chunks/chunk-FXD67VN5.js";
|
|
69
68
|
import {
|
|
70
69
|
TelemetryClient
|
|
@@ -653,7 +652,7 @@ var require_service_route_ownership = __commonJS({
|
|
|
653
652
|
scopeRoutesToServiceOwnership: () => scopeRoutesToServiceOwnership
|
|
654
653
|
});
|
|
655
654
|
module.exports = __toCommonJS(service_route_ownership_exports);
|
|
656
|
-
var import_routing_utils =
|
|
655
|
+
var import_routing_utils = require_dist2();
|
|
657
656
|
function isWebServiceWithPrefix(service) {
|
|
658
657
|
return service.type === "web" && typeof service.routePrefix === "string";
|
|
659
658
|
}
|
|
@@ -1158,7 +1157,7 @@ var require_framework_detection = __commonJS({
|
|
|
1158
1157
|
warnIfFrameworkMismatch: () => warnIfFrameworkMismatch
|
|
1159
1158
|
});
|
|
1160
1159
|
module.exports = __toCommonJS(framework_detection_exports);
|
|
1161
|
-
var import_fs_detectors =
|
|
1160
|
+
var import_fs_detectors = require_dist3();
|
|
1162
1161
|
var import_frameworks = require_frameworks();
|
|
1163
1162
|
var import_build_utils3 = __require("@vercel/build-utils");
|
|
1164
1163
|
function logDebug(message, output) {
|
|
@@ -1354,6 +1353,218 @@ var require_framework_detection = __commonJS({
|
|
|
1354
1353
|
}
|
|
1355
1354
|
});
|
|
1356
1355
|
|
|
1356
|
+
// ../../internals/runtimes/dist/constants.js
|
|
1357
|
+
var require_constants = __commonJS({
|
|
1358
|
+
"../../internals/runtimes/dist/constants.js"(exports, module) {
|
|
1359
|
+
"use strict";
|
|
1360
|
+
var __defProp = Object.defineProperty;
|
|
1361
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1362
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1363
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1364
|
+
var __export = (target, all) => {
|
|
1365
|
+
for (var name in all)
|
|
1366
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1367
|
+
};
|
|
1368
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1369
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1370
|
+
for (let key of __getOwnPropNames(from))
|
|
1371
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1372
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1373
|
+
}
|
|
1374
|
+
return to;
|
|
1375
|
+
};
|
|
1376
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1377
|
+
var constants_exports = {};
|
|
1378
|
+
__export(constants_exports, {
|
|
1379
|
+
CONTAINER_ENTRYPOINT_CANDIDATES: () => CONTAINER_ENTRYPOINT_CANDIDATES,
|
|
1380
|
+
ENTRYPOINT_EXTENSIONS: () => ENTRYPOINT_EXTENSIONS,
|
|
1381
|
+
ROUTE_OWNING_BUILDERS: () => ROUTE_OWNING_BUILDERS,
|
|
1382
|
+
RUNTIME_BUILDERS: () => RUNTIME_BUILDERS,
|
|
1383
|
+
RUNTIME_MANIFESTS: () => RUNTIME_MANIFESTS,
|
|
1384
|
+
STATIC_BUILDERS: () => STATIC_BUILDERS
|
|
1385
|
+
});
|
|
1386
|
+
module.exports = __toCommonJS(constants_exports);
|
|
1387
|
+
var RUNTIME_BUILDERS = {
|
|
1388
|
+
node: "@vercel/backends",
|
|
1389
|
+
python: "@vercel/python",
|
|
1390
|
+
go: "@vercel/go",
|
|
1391
|
+
rust: "@vercel/rust",
|
|
1392
|
+
ruby: "@vercel/ruby",
|
|
1393
|
+
container: "@vercel/container"
|
|
1394
|
+
};
|
|
1395
|
+
var RUNTIME_MANIFESTS = {
|
|
1396
|
+
node: ["package.json"],
|
|
1397
|
+
python: [
|
|
1398
|
+
"pyproject.toml",
|
|
1399
|
+
"requirements.txt",
|
|
1400
|
+
"Pipfile",
|
|
1401
|
+
"pylock.yml",
|
|
1402
|
+
"uv.lock",
|
|
1403
|
+
"setup.py"
|
|
1404
|
+
],
|
|
1405
|
+
go: ["go.mod"],
|
|
1406
|
+
ruby: ["Gemfile"],
|
|
1407
|
+
rust: ["Cargo.toml"]
|
|
1408
|
+
};
|
|
1409
|
+
var ENTRYPOINT_EXTENSIONS = {
|
|
1410
|
+
".ts": "node",
|
|
1411
|
+
".mts": "node",
|
|
1412
|
+
".js": "node",
|
|
1413
|
+
".mjs": "node",
|
|
1414
|
+
".cjs": "node",
|
|
1415
|
+
".py": "python",
|
|
1416
|
+
".go": "go",
|
|
1417
|
+
".rs": "rust",
|
|
1418
|
+
".rb": "ruby",
|
|
1419
|
+
".ru": "ruby"
|
|
1420
|
+
};
|
|
1421
|
+
var STATIC_BUILDERS = /* @__PURE__ */ new Set([
|
|
1422
|
+
"@vercel/static-build",
|
|
1423
|
+
"@vercel/static"
|
|
1424
|
+
]);
|
|
1425
|
+
var ROUTE_OWNING_BUILDERS = /* @__PURE__ */ new Set([
|
|
1426
|
+
"@vercel/next",
|
|
1427
|
+
"@vercel/backends"
|
|
1428
|
+
]);
|
|
1429
|
+
var CONTAINER_ENTRYPOINT_CANDIDATES = [
|
|
1430
|
+
"Dockerfile.vercel",
|
|
1431
|
+
"Containerfile.vercel",
|
|
1432
|
+
"Dockerfile",
|
|
1433
|
+
"Containerfile"
|
|
1434
|
+
];
|
|
1435
|
+
}
|
|
1436
|
+
});
|
|
1437
|
+
|
|
1438
|
+
// ../../internals/runtimes/dist/framework.js
|
|
1439
|
+
var require_framework = __commonJS({
|
|
1440
|
+
"../../internals/runtimes/dist/framework.js"(exports, module) {
|
|
1441
|
+
"use strict";
|
|
1442
|
+
var __defProp = Object.defineProperty;
|
|
1443
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1444
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1445
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1446
|
+
var __export = (target, all) => {
|
|
1447
|
+
for (var name in all)
|
|
1448
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1449
|
+
};
|
|
1450
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1451
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1452
|
+
for (let key of __getOwnPropNames(from))
|
|
1453
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1454
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1455
|
+
}
|
|
1456
|
+
return to;
|
|
1457
|
+
};
|
|
1458
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1459
|
+
var framework_exports = {};
|
|
1460
|
+
__export(framework_exports, {
|
|
1461
|
+
DETECTION_FRAMEWORKS: () => DETECTION_FRAMEWORKS,
|
|
1462
|
+
filterFrameworksByRuntime: () => filterFrameworksByRuntime,
|
|
1463
|
+
inferRuntimeFromFramework: () => inferRuntimeFromFramework,
|
|
1464
|
+
isBFFFramework: () => isBFFFramework,
|
|
1465
|
+
isFrontendFramework: () => isFrontendFramework
|
|
1466
|
+
});
|
|
1467
|
+
module.exports = __toCommonJS(framework_exports);
|
|
1468
|
+
var import_build_utils3 = __require("@vercel/build-utils");
|
|
1469
|
+
var import_frameworks = require_frameworks();
|
|
1470
|
+
var import_constants = require_constants();
|
|
1471
|
+
var DETECTION_FRAMEWORKS = import_frameworks.frameworkList.filter(
|
|
1472
|
+
(framework) => !framework.experimental || framework.runtimeFramework
|
|
1473
|
+
);
|
|
1474
|
+
function inferRuntimeFromFramework(framework) {
|
|
1475
|
+
if (!framework)
|
|
1476
|
+
return void 0;
|
|
1477
|
+
if (framework in import_constants.RUNTIME_BUILDERS)
|
|
1478
|
+
return framework;
|
|
1479
|
+
if ((0, import_build_utils3.isPythonFramework)(framework))
|
|
1480
|
+
return "python";
|
|
1481
|
+
if ((0, import_build_utils3.isBackendFramework)(framework))
|
|
1482
|
+
return "node";
|
|
1483
|
+
return void 0;
|
|
1484
|
+
}
|
|
1485
|
+
function isFrontendFramework(framework) {
|
|
1486
|
+
return !!framework && !inferRuntimeFromFramework(framework);
|
|
1487
|
+
}
|
|
1488
|
+
var BFF_FRAMEWORKS = /* @__PURE__ */ new Set([
|
|
1489
|
+
"nextjs",
|
|
1490
|
+
"nuxtjs",
|
|
1491
|
+
"sveltekit",
|
|
1492
|
+
"remix",
|
|
1493
|
+
"solidstart"
|
|
1494
|
+
]);
|
|
1495
|
+
function isBFFFramework(framework) {
|
|
1496
|
+
return !!framework && BFF_FRAMEWORKS.has(framework);
|
|
1497
|
+
}
|
|
1498
|
+
function filterFrameworksByRuntime(frameworks, runtime) {
|
|
1499
|
+
if (!runtime)
|
|
1500
|
+
return [...frameworks];
|
|
1501
|
+
return frameworks.filter((f) => inferRuntimeFromFramework(f.slug) === runtime);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
|
|
1506
|
+
// ../../internals/runtimes/dist/runtime.js
|
|
1507
|
+
var require_runtime = __commonJS({
|
|
1508
|
+
"../../internals/runtimes/dist/runtime.js"(exports, module) {
|
|
1509
|
+
"use strict";
|
|
1510
|
+
var __defProp = Object.defineProperty;
|
|
1511
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1512
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1513
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1514
|
+
var __export = (target, all) => {
|
|
1515
|
+
for (var name in all)
|
|
1516
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1517
|
+
};
|
|
1518
|
+
var __copyProps = (to, from, except, desc) => {
|
|
1519
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
1520
|
+
for (let key of __getOwnPropNames(from))
|
|
1521
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
1522
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
1523
|
+
}
|
|
1524
|
+
return to;
|
|
1525
|
+
};
|
|
1526
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1527
|
+
var runtime_exports = {};
|
|
1528
|
+
__export(runtime_exports, {
|
|
1529
|
+
getBuilderForRuntime: () => getBuilderForRuntime,
|
|
1530
|
+
inferRuntime: () => inferRuntime
|
|
1531
|
+
});
|
|
1532
|
+
module.exports = __toCommonJS(runtime_exports);
|
|
1533
|
+
var import_constants = require_constants();
|
|
1534
|
+
var import_framework = require_framework();
|
|
1535
|
+
function getBuilderForRuntime(runtime) {
|
|
1536
|
+
const builder = import_constants.RUNTIME_BUILDERS[runtime];
|
|
1537
|
+
if (!builder)
|
|
1538
|
+
throw new Error(`Unknown runtime: ${runtime}`);
|
|
1539
|
+
return builder;
|
|
1540
|
+
}
|
|
1541
|
+
function inferRuntime(config) {
|
|
1542
|
+
if (config.runtime && config.runtime in import_constants.RUNTIME_BUILDERS) {
|
|
1543
|
+
return config.runtime;
|
|
1544
|
+
}
|
|
1545
|
+
const frameworkRuntime = (0, import_framework.inferRuntimeFromFramework)(config.framework);
|
|
1546
|
+
if (frameworkRuntime)
|
|
1547
|
+
return frameworkRuntime;
|
|
1548
|
+
if (config.builder) {
|
|
1549
|
+
for (const [runtime, builderName] of Object.entries(import_constants.RUNTIME_BUILDERS)) {
|
|
1550
|
+
if (config.builder === builderName)
|
|
1551
|
+
return runtime;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
if (config.entrypoint) {
|
|
1555
|
+
if (config.entrypoint === "pyproject.toml" || config.entrypoint.endsWith("/pyproject.toml")) {
|
|
1556
|
+
return "python";
|
|
1557
|
+
}
|
|
1558
|
+
for (const [ext, runtime] of Object.entries(import_constants.ENTRYPOINT_EXTENSIONS)) {
|
|
1559
|
+
if (config.entrypoint.endsWith(ext))
|
|
1560
|
+
return runtime;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
return void 0;
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
|
|
1357
1568
|
// ../../internals/cli-builder-integration/dist/monorepo.js
|
|
1358
1569
|
var require_monorepo = __commonJS({
|
|
1359
1570
|
"../../internals/cli-builder-integration/dist/monorepo.js"(exports, module) {
|
|
@@ -1392,7 +1603,7 @@ var require_monorepo = __commonJS({
|
|
|
1392
1603
|
});
|
|
1393
1604
|
module.exports = __toCommonJS(monorepo_exports);
|
|
1394
1605
|
var import_path2 = __require("path");
|
|
1395
|
-
var import_fs_detectors =
|
|
1606
|
+
var import_fs_detectors = require_dist3();
|
|
1396
1607
|
var import_runtime = require_runtime();
|
|
1397
1608
|
var import_title = __toESM2(require_lib2());
|
|
1398
1609
|
var import_fs_extra2 = __toESM2(require_lib());
|
|
@@ -1694,10 +1905,10 @@ var require_do_build = __commonJS({
|
|
|
1694
1905
|
var import_build_utils3 = __require("@vercel/build-utils");
|
|
1695
1906
|
var import_client = require_dist();
|
|
1696
1907
|
var import_frameworks = require_frameworks();
|
|
1697
|
-
var import_fs_detectors =
|
|
1908
|
+
var import_fs_detectors = require_dist3();
|
|
1698
1909
|
var import_service_topology = require_dist4();
|
|
1699
1910
|
var import_detect_builders_with_services = require_detect_builders_with_services();
|
|
1700
|
-
var import_routing_utils =
|
|
1911
|
+
var import_routing_utils = require_dist2();
|
|
1701
1912
|
var import_write_build_result3 = require_write_build_result();
|
|
1702
1913
|
var import_build_runner2 = require_build_runner();
|
|
1703
1914
|
var import_execute_builder = require_execute_builder();
|
|
@@ -2323,6 +2534,7 @@ var require_do_build = __commonJS({
|
|
|
2323
2534
|
cwd: buildWorkPath,
|
|
2324
2535
|
expectsPreDeploy: Boolean(preDeployCmd),
|
|
2325
2536
|
builderSpan,
|
|
2537
|
+
serviceName: service?.name,
|
|
2326
2538
|
env: perBuildEnv
|
|
2327
2539
|
};
|
|
2328
2540
|
const runner = createBuildRunner2?.({
|
|
@@ -3642,19 +3854,48 @@ function rehydrateResult(result, outputVersion) {
|
|
|
3642
3854
|
}
|
|
3643
3855
|
}
|
|
3644
3856
|
}
|
|
3857
|
+
function createServiceLinePrefixer(serviceName, dest) {
|
|
3858
|
+
const tag = `[vc:service:${serviceName}] `;
|
|
3859
|
+
let pending = "";
|
|
3860
|
+
return {
|
|
3861
|
+
onData(chunk) {
|
|
3862
|
+
pending += chunk;
|
|
3863
|
+
const newlineIndex = pending.lastIndexOf("\n");
|
|
3864
|
+
if (newlineIndex === -1)
|
|
3865
|
+
return;
|
|
3866
|
+
const complete = pending.slice(0, newlineIndex + 1);
|
|
3867
|
+
pending = pending.slice(newlineIndex + 1);
|
|
3868
|
+
const tagged = complete.split("\n").slice(0, -1).map((line) => `${tag}${line}`).join("\n");
|
|
3869
|
+
dest.write(`${tagged}
|
|
3870
|
+
`);
|
|
3871
|
+
},
|
|
3872
|
+
flush() {
|
|
3873
|
+
if (pending.length > 0) {
|
|
3874
|
+
dest.write(`${tag}${pending}`);
|
|
3875
|
+
pending = "";
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
};
|
|
3879
|
+
}
|
|
3645
3880
|
var SubprocessBuildRunner = class extends import_build_runner.BuildRunner {
|
|
3646
3881
|
/**
|
|
3647
3882
|
* Fork a worker, run one build, and return the deserialized result. `buildOptions.span` is
|
|
3648
3883
|
* dropped (a class instance that can't be serialized); the caller keeps its own tracing.
|
|
3649
3884
|
*
|
|
3650
|
-
*
|
|
3651
|
-
*
|
|
3652
|
-
*
|
|
3653
|
-
*
|
|
3654
|
-
*
|
|
3885
|
+
* When `ctx.serviceName` is set, the child's stdout/stderr are piped so each line can be
|
|
3886
|
+
* prefixed with the service tag before forwarding to the terminal (covering the builder's own
|
|
3887
|
+
* output and any subprocess it spawns). Otherwise the child inherits stdout/stderr and writes
|
|
3888
|
+
* directly, matching the previous in-process behavior.
|
|
3889
|
+
*
|
|
3890
|
+
* When the build registers a pre-deploy
|
|
3891
|
+
* command, the worker is kept alive: its `registerPreDeploy` callback runs the command in the
|
|
3892
|
+
* worker later, when the command invokes the deferred callback. Teardown is owned by the caller
|
|
3893
|
+
* (via `teardown()`), so a kept-alive worker is released even if that deferred callback is never
|
|
3894
|
+
* reached.
|
|
3655
3895
|
*/
|
|
3656
3896
|
async build() {
|
|
3657
3897
|
const workerPath = join(__dirname, "builder-worker.cjs");
|
|
3898
|
+
const { serviceName } = this.ctx;
|
|
3658
3899
|
const child = fork(workerPath, [], {
|
|
3659
3900
|
cwd: this.ctx.cwd,
|
|
3660
3901
|
execArgv: [],
|
|
@@ -3662,9 +3903,26 @@ var SubprocessBuildRunner = class extends import_build_runner.BuildRunner {
|
|
|
3662
3903
|
// V8 structured clone (not the default JSON) so the build result rides across with its
|
|
3663
3904
|
// Buffers, cycles (e.g. `@vercel/next`'s `childProcesses`), and shared object identity
|
|
3664
3905
|
// (one Lambda referenced by many outputs stays one instance) intact.
|
|
3665
|
-
serialization: "advanced"
|
|
3906
|
+
serialization: "advanced",
|
|
3907
|
+
// Pipe stdout/stderr (keeping stdin inherited and the IPC channel) only when we need to
|
|
3908
|
+
// tag lines; otherwise inherit so output goes straight to the terminal.
|
|
3909
|
+
stdio: serviceName ? ["inherit", "pipe", "pipe", "ipc"] : ["inherit", "inherit", "inherit", "ipc"]
|
|
3666
3910
|
});
|
|
3667
3911
|
this.child = child;
|
|
3912
|
+
this.stdoutPrefixer = serviceName ? createServiceLinePrefixer(serviceName, process.stdout) : void 0;
|
|
3913
|
+
this.stderrPrefixer = serviceName ? createServiceLinePrefixer(serviceName, process.stderr) : void 0;
|
|
3914
|
+
if (this.stdoutPrefixer && child.stdout) {
|
|
3915
|
+
const prefixer = this.stdoutPrefixer;
|
|
3916
|
+
child.stdout.setEncoding("utf8");
|
|
3917
|
+
child.stdout.on("data", (chunk) => prefixer.onData(chunk));
|
|
3918
|
+
child.stdout.on("end", () => prefixer.flush());
|
|
3919
|
+
}
|
|
3920
|
+
if (this.stderrPrefixer && child.stderr) {
|
|
3921
|
+
const prefixer = this.stderrPrefixer;
|
|
3922
|
+
child.stderr.setEncoding("utf8");
|
|
3923
|
+
child.stderr.on("data", (chunk) => prefixer.onData(chunk));
|
|
3924
|
+
child.stderr.on("end", () => prefixer.flush());
|
|
3925
|
+
}
|
|
3668
3926
|
await new Promise((resolve2, reject) => {
|
|
3669
3927
|
function onMessage(data) {
|
|
3670
3928
|
cleanup();
|