vercel 54.14.2 → 54.14.5
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-PKT6ULVJ.js → add-5Z2AAQMM.js} +4 -4
- package/dist/chunks/{chunk-G3NXHUFT.js → chunk-25XEQWUS.js} +1 -1
- package/dist/chunks/{chunk-JISJDGJF.js → chunk-2GOVUIMY.js} +1 -1
- package/dist/chunks/{chunk-Z3X747P6.js → chunk-2N7NBUQX.js} +1 -1
- package/dist/chunks/{chunk-IPWWE7PB.js → chunk-45S2Y3TD.js} +1 -1
- package/dist/chunks/{chunk-2XEEOHHH.js → chunk-6ABEFMPX.js} +1 -1
- package/dist/chunks/{chunk-4BFK3C7V.js → chunk-6H2YVMJJ.js} +1 -1
- package/dist/chunks/{chunk-O7RJHL34.js → chunk-6R3YPU76.js} +203 -6
- package/dist/chunks/chunk-BRQ6PX3U.js +593 -0
- package/dist/chunks/{chunk-3BR246Y6.js → chunk-EBIX223X.js} +2 -11
- package/dist/chunks/{chunk-2HN6DLIY.js → chunk-ETVOM3IR.js} +1 -1
- package/dist/chunks/{chunk-372SHB43.js → chunk-IXTKPQYW.js} +3 -3
- package/dist/chunks/{chunk-FEYVO2US.js → chunk-JLLN34XF.js} +90 -32
- package/dist/chunks/{chunk-O4V7CMVO.js → chunk-KSSRTKN4.js} +7 -5
- package/dist/chunks/{chunk-2ZSXQQXI.js → chunk-MOVGWTDQ.js} +8 -18
- package/dist/chunks/{chunk-SDZ5ICZL.js → chunk-PSG6ZBGQ.js} +1 -1
- package/dist/chunks/{chunk-FLW73SZ3.js → chunk-PXJA4KXE.js} +2 -2
- package/dist/chunks/{chunk-YLGMXYFG.js → chunk-R5MIXAJF.js} +2 -2
- package/dist/chunks/{chunk-J7BMPRCU.js → chunk-X23JL3ZL.js} +1 -1
- package/dist/chunks/{chunk-ILJH44MK.js → chunk-YE3C5CUX.js} +1 -1
- package/dist/chunks/{chunk-LQR3CHMH.js → chunk-YIAUEFUY.js} +211 -787
- package/dist/chunks/{chunk-OHIZ4SVU.js → chunk-ZR4XADWC.js} +15 -3
- package/dist/chunks/{compile-vercel-config-3LV7J3IZ.js → compile-vercel-config-UMUHH55E.js} +1 -1
- package/dist/chunks/{delete-GFW6Y6TZ.js → delete-NO2U3UGV.js} +2 -2
- package/dist/chunks/{disable-PGRAS2ZL.js → disable-AGDDHVKZ.js} +2 -2
- package/dist/chunks/{discard-S6N5Q4G5.js → discard-Q5HML52L.js} +2 -2
- package/dist/chunks/{edit-TICKX4ZV.js → edit-HSHJAKHM.js} +3 -3
- package/dist/chunks/{enable-L3BYWN6S.js → enable-YMJAXOGA.js} +2 -2
- package/dist/chunks/{export-NXS33U5T.js → export-RCACOTPE.js} +2 -2
- package/dist/chunks/{inspect-OOI5JN3Y.js → inspect-OJHOQHD2.js} +3 -3
- package/dist/chunks/{list-77WL6463.js → list-LLUDMAWA.js} +3 -3
- package/dist/chunks/{list-6EHRL2D4.js → list-R7V2P6TM.js} +2 -2
- package/dist/chunks/{ls-PBSOEXFG.js → ls-KAI6V7SU.js} +4 -4
- package/dist/chunks/{publish-CU2THVYW.js → publish-KCYVRDAT.js} +2 -2
- package/dist/chunks/{query-HEATRYAK.js → query-MBJLAQRX.js} +3 -3
- package/dist/chunks/{reorder-IQVKSM3H.js → reorder-C5BJWFJM.js} +2 -2
- package/dist/chunks/{restore-RDEOBGAS.js → restore-F63NO7XP.js} +2 -2
- package/dist/chunks/{rm-MCSGTU4J.js → rm-HT7YO3JX.js} +4 -4
- package/dist/chunks/{rule-inspect-3YK2XSL3.js → rule-inspect-IHEUI5JT.js} +4 -4
- package/dist/chunks/{rules-F4MRDDHM.js → rules-ZUBTVSNC.js} +6 -6
- package/dist/chunks/{schema-65C5EBJ7.js → schema-VAQSZY2H.js} +3 -3
- package/dist/chunks/{update-XB4WSRGY.js → update-BS5FBLIP.js} +4 -4
- package/dist/commands/build/index.js +53 -29
- package/dist/commands/deploy/index.js +12 -11
- package/dist/commands/dev/index.js +69 -22
- package/dist/commands/env/index.js +8 -6
- package/dist/commands/link/index.js +8 -15
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +621 -101
- package/dist/index.js +9 -9
- package/dist/version.mjs +1 -1
- package/package.json +15 -15
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6H2YVMJJ.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
15
15
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useKeypress,
|
|
37
37
|
usePrefix,
|
|
38
38
|
useState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YIAUEFUY.js";
|
|
40
40
|
import {
|
|
41
41
|
require_load_json_file
|
|
42
42
|
} from "./chunk-HIYWSGI7.js";
|
|
@@ -1994,6 +1994,17 @@ Are you sure you want to proceed?`;
|
|
|
1994
1994
|
}
|
|
1995
1995
|
};
|
|
1996
1996
|
|
|
1997
|
+
// src/util/output/progress.ts
|
|
1998
|
+
function progress(current, total, opts = {}) {
|
|
1999
|
+
const { width = 20, complete = "=", incomplete = "-" } = opts;
|
|
2000
|
+
if (total <= 0 || current < 0 || current > total) {
|
|
2001
|
+
return null;
|
|
2002
|
+
}
|
|
2003
|
+
const unit = total / width;
|
|
2004
|
+
const pos = Math.floor(current / unit);
|
|
2005
|
+
return `${complete.repeat(pos)}${incomplete.repeat(width - pos)}`;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1997
2008
|
export {
|
|
1998
2009
|
getGlobalPathConfig2 as getGlobalPathConfig,
|
|
1999
2010
|
require_dist3 as require_dist,
|
|
@@ -2007,5 +2018,6 @@ export {
|
|
|
2007
2018
|
readLocalConfig,
|
|
2008
2019
|
sleep,
|
|
2009
2020
|
isJSONObject,
|
|
2010
|
-
Client
|
|
2021
|
+
Client,
|
|
2022
|
+
progress
|
|
2011
2023
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseSubcommandArgs,
|
|
16
16
|
resolveRoutes,
|
|
17
17
|
withGlobalFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X23JL3ZL.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteSubcommand
|
|
21
21
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
AGENT_REASON,
|
|
28
28
|
AGENT_STATUS
|
|
29
29
|
} from "./chunk-LJ5WXXG6.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-YIAUEFUY.js";
|
|
31
31
|
import "./chunk-HIYWSGI7.js";
|
|
32
32
|
import {
|
|
33
33
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X23JL3ZL.js";
|
|
21
21
|
import {
|
|
22
22
|
disableSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
28
|
import "./chunk-LJ5WXXG6.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YIAUEFUY.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X23JL3ZL.js";
|
|
21
21
|
import {
|
|
22
22
|
discardSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
28
|
import "./chunk-LJ5WXXG6.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YIAUEFUY.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printRouteConfig,
|
|
20
20
|
routingRuleToCurrentRoute,
|
|
21
21
|
runInteractiveEditLoop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2N7NBUQX.js";
|
|
23
23
|
import {
|
|
24
24
|
getRouteVersions
|
|
25
25
|
} from "./chunk-AHU7WNL2.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveRoute,
|
|
32
32
|
shellQuoteRouteIdentifierForSuggestion,
|
|
33
33
|
withGlobalFlags
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-X23JL3ZL.js";
|
|
35
35
|
import {
|
|
36
36
|
editSubcommand
|
|
37
37
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-64IF634X.js";
|
|
41
41
|
import "./chunk-VXYGCOKL.js";
|
|
42
42
|
import "./chunk-LJ5WXXG6.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-YIAUEFUY.js";
|
|
44
44
|
import "./chunk-HIYWSGI7.js";
|
|
45
45
|
import {
|
|
46
46
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X23JL3ZL.js";
|
|
21
21
|
import {
|
|
22
22
|
enableSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
28
|
import "./chunk-LJ5WXXG6.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YIAUEFUY.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getRoutes,
|
|
10
10
|
parseSubcommandArgs,
|
|
11
11
|
withGlobalFlags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X23JL3ZL.js";
|
|
13
13
|
import {
|
|
14
14
|
exportSubcommand
|
|
15
15
|
} from "./chunk-IB56QKCM.js";
|
|
16
16
|
import "./chunk-LJ5WXXG6.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YIAUEFUY.js";
|
|
18
18
|
import "./chunk-HIYWSGI7.js";
|
|
19
19
|
import {
|
|
20
20
|
outputAgentError
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
emitAlertsScopeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PXJA4KXE.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
} from "./chunk-LJ5WXXG6.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-25XEQWUS.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YIAUEFUY.js";
|
|
32
32
|
import "./chunk-HIYWSGI7.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCommandWithGlobalFlags,
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PXJA4KXE.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
normalizeRepeatableStringFilters,
|
|
@@ -26,8 +26,8 @@ import "./chunk-SGPBULVT.js";
|
|
|
26
26
|
import {
|
|
27
27
|
AGENT_REASON
|
|
28
28
|
} from "./chunk-LJ5WXXG6.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-25XEQWUS.js";
|
|
30
|
+
import "./chunk-YIAUEFUY.js";
|
|
31
31
|
import "./chunk-HIYWSGI7.js";
|
|
32
32
|
import {
|
|
33
33
|
buildCommandWithGlobalFlags,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
} from "./chunk-56AJHIQC.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-25XEQWUS.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YIAUEFUY.js";
|
|
32
32
|
import "./chunk-HIYWSGI7.js";
|
|
33
33
|
import "./chunk-NHGCQRK5.js";
|
|
34
34
|
import "./chunk-N2T234LO.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2GOVUIMY.js";
|
|
13
|
+
import "./chunk-PXJA4KXE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-25XEQWUS.js";
|
|
25
|
+
import "./chunk-YIAUEFUY.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X23JL3ZL.js";
|
|
21
21
|
import {
|
|
22
22
|
publishSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
28
|
import "./chunk-LJ5WXXG6.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YIAUEFUY.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
} from "./chunk-XPKWKPWA.js";
|
|
25
25
|
import {
|
|
26
26
|
metricsCommand
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YE3C5CUX.js";
|
|
28
28
|
import {
|
|
29
29
|
getScope
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-25XEQWUS.js";
|
|
31
31
|
import {
|
|
32
32
|
getLinkedProject,
|
|
33
33
|
getProjectByNameOrId
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YIAUEFUY.js";
|
|
35
35
|
import "./chunk-HIYWSGI7.js";
|
|
36
36
|
import "./chunk-NHGCQRK5.js";
|
|
37
37
|
import "./chunk-N2T234LO.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveRoute,
|
|
17
17
|
shellQuoteRouteIdentifierForSuggestion,
|
|
18
18
|
withGlobalFlags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X23JL3ZL.js";
|
|
20
20
|
import {
|
|
21
21
|
reorderSubcommand
|
|
22
22
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-64IF634X.js";
|
|
26
26
|
import "./chunk-VXYGCOKL.js";
|
|
27
27
|
import "./chunk-LJ5WXXG6.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-YIAUEFUY.js";
|
|
29
29
|
import "./chunk-HIYWSGI7.js";
|
|
30
30
|
import {
|
|
31
31
|
outputAgentError
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printDiffSummary,
|
|
20
20
|
validateRequiredArgs,
|
|
21
21
|
withGlobalFlags
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X23JL3ZL.js";
|
|
23
23
|
import {
|
|
24
24
|
restoreSubcommand
|
|
25
25
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-64IF634X.js";
|
|
29
29
|
import "./chunk-VXYGCOKL.js";
|
|
30
30
|
import "./chunk-LJ5WXXG6.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-YIAUEFUY.js";
|
|
32
32
|
import "./chunk-HIYWSGI7.js";
|
|
33
33
|
import {
|
|
34
34
|
outputAgentError
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2GOVUIMY.js";
|
|
13
|
+
import "./chunk-PXJA4KXE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-25XEQWUS.js";
|
|
25
|
+
import "./chunk-YIAUEFUY.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2GOVUIMY.js";
|
|
13
|
+
import "./chunk-PXJA4KXE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-25XEQWUS.js";
|
|
25
|
+
import "./chunk-YIAUEFUY.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -32,7 +32,7 @@ var RULES_CONFIG = {
|
|
|
32
32
|
};
|
|
33
33
|
async function rules(client, argv) {
|
|
34
34
|
if (argv.length === 0) {
|
|
35
|
-
const lsFn = (await import("./ls-
|
|
35
|
+
const lsFn = (await import("./ls-KAI6V7SU.js")).default;
|
|
36
36
|
return lsFn(client, []);
|
|
37
37
|
}
|
|
38
38
|
const { subcommand, args, subcommandOriginal } = getSubcommand(
|
|
@@ -65,15 +65,15 @@ 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-KAI6V7SU.js")).default(client, args);
|
|
69
69
|
case "add":
|
|
70
|
-
return (await import("./add-
|
|
70
|
+
return (await import("./add-5Z2AAQMM.js")).default(client, args);
|
|
71
71
|
case "inspect":
|
|
72
|
-
return (await import("./rule-inspect-
|
|
72
|
+
return (await import("./rule-inspect-IHEUI5JT.js")).default(client, args);
|
|
73
73
|
case "rm":
|
|
74
|
-
return (await import("./rm-
|
|
74
|
+
return (await import("./rm-HT7YO3JX.js")).default(client, args);
|
|
75
75
|
case "update":
|
|
76
|
-
return (await import("./update-
|
|
76
|
+
return (await import("./update-BS5FBLIP.js")).default(client, args);
|
|
77
77
|
default:
|
|
78
78
|
output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
|
|
79
79
|
return 1;
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
} from "./chunk-XPKWKPWA.js";
|
|
21
21
|
import {
|
|
22
22
|
schemaSubcommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YE3C5CUX.js";
|
|
24
24
|
import {
|
|
25
25
|
getScope
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-25XEQWUS.js";
|
|
27
27
|
import {
|
|
28
28
|
require_pluralize
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YIAUEFUY.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import "./chunk-NHGCQRK5.js";
|
|
32
32
|
import "./chunk-N2T234LO.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2GOVUIMY.js";
|
|
13
|
+
import "./chunk-PXJA4KXE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-25XEQWUS.js";
|
|
25
|
+
import "./chunk-YIAUEFUY.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -9,38 +9,38 @@ import {
|
|
|
9
9
|
getStaticServiceSchedules,
|
|
10
10
|
importBuilders,
|
|
11
11
|
isLambda,
|
|
12
|
-
relocateRootBuildOutputToService,
|
|
13
12
|
staticFiles,
|
|
14
13
|
writeBuildResult
|
|
15
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-EBIX223X.js";
|
|
15
|
+
import {
|
|
16
|
+
pullCommandLogic
|
|
17
|
+
} from "../../chunks/chunk-KSSRTKN4.js";
|
|
16
18
|
import {
|
|
17
19
|
require_semver
|
|
18
20
|
} from "../../chunks/chunk-IB5L4LKZ.js";
|
|
19
|
-
import {
|
|
20
|
-
pullCommandLogic
|
|
21
|
-
} from "../../chunks/chunk-O4V7CMVO.js";
|
|
22
21
|
import {
|
|
23
22
|
pickOverrides,
|
|
24
23
|
readProjectSettings
|
|
25
|
-
} from "../../chunks/chunk-
|
|
24
|
+
} from "../../chunks/chunk-6ABEFMPX.js";
|
|
26
25
|
import "../../chunks/chunk-YI3JV6GM.js";
|
|
26
|
+
import "../../chunks/chunk-BRQ6PX3U.js";
|
|
27
27
|
import {
|
|
28
28
|
stamp_default
|
|
29
29
|
} from "../../chunks/chunk-64IF634X.js";
|
|
30
30
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
31
|
-
import "../../chunks/chunk-
|
|
31
|
+
import "../../chunks/chunk-R5MIXAJF.js";
|
|
32
32
|
import {
|
|
33
33
|
printProjectNotFoundError
|
|
34
|
-
} from "../../chunks/chunk-
|
|
34
|
+
} from "../../chunks/chunk-IXTKPQYW.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_REASON,
|
|
37
37
|
AGENT_STATUS
|
|
38
38
|
} from "../../chunks/chunk-LJ5WXXG6.js";
|
|
39
|
-
import "../../chunks/chunk-
|
|
39
|
+
import "../../chunks/chunk-6H2YVMJJ.js";
|
|
40
40
|
import {
|
|
41
41
|
buildCommand
|
|
42
|
-
} from "../../chunks/chunk-
|
|
43
|
-
import "../../chunks/chunk-
|
|
42
|
+
} from "../../chunks/chunk-PSG6ZBGQ.js";
|
|
43
|
+
import "../../chunks/chunk-25XEQWUS.js";
|
|
44
44
|
import {
|
|
45
45
|
help
|
|
46
46
|
} from "../../chunks/chunk-AWD3IGXU.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
resolveProjectCwd,
|
|
66
66
|
ua_default,
|
|
67
67
|
validateConfig
|
|
68
|
-
} from "../../chunks/chunk-
|
|
68
|
+
} from "../../chunks/chunk-YIAUEFUY.js";
|
|
69
69
|
import {
|
|
70
70
|
TelemetryClient
|
|
71
71
|
} from "../../chunks/chunk-HIYWSGI7.js";
|
|
@@ -465,9 +465,25 @@ function buildCommandWithGlobalFlags(baseSubcommand, argv) {
|
|
|
465
465
|
const full = globalFlags.length ? `${baseSubcommand} ${globalFlags.join(" ")}` : baseSubcommand;
|
|
466
466
|
return getCommandNamePlain(full);
|
|
467
467
|
}
|
|
468
|
+
var SERVICE_BUILD_IMMUTABLE_ENV_VARS = [
|
|
469
|
+
"VERCEL_IMMUTABLE_STATIC_FILES_ENABLED"
|
|
470
|
+
];
|
|
468
471
|
function hasNonEmptyObject(value) {
|
|
469
472
|
return value != null && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length > 0;
|
|
470
473
|
}
|
|
474
|
+
function unsetServiceBuildImmutableEnvVars(restoreEnv) {
|
|
475
|
+
for (const key of SERVICE_BUILD_IMMUTABLE_ENV_VARS) {
|
|
476
|
+
if (!restoreEnv.has(key)) {
|
|
477
|
+
restoreEnv.set(key, process.env[key]);
|
|
478
|
+
}
|
|
479
|
+
delete process.env[key];
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function getGeneratedServiceAlreadyBuiltWarning(service) {
|
|
483
|
+
const framework = service.framework ?? "unknown";
|
|
484
|
+
const entrypoint = service.entrypoint ?? service.builder.src ?? "unknown";
|
|
485
|
+
return `Detected already-built service "${service.name}" from lazily generated \`.vercel/output/config.json\` (framework: ${framework}, entrypoint: ${entrypoint}). It will not be treated as a service because its build output already exists at the top level. Configure it in \`vercel.json\` as an \`experimentalServicesV2\` entry to remove this warning.`;
|
|
486
|
+
}
|
|
471
487
|
async function main(client) {
|
|
472
488
|
const telemetryClient = new BuildTelemetryClient({
|
|
473
489
|
opts: {
|
|
@@ -1036,7 +1052,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1036
1052
|
const getHasQueueServices = () => detectedServices?.some(isQueueBackedService);
|
|
1037
1053
|
const synthesizedServiceCrons = [];
|
|
1038
1054
|
const serviceByBuilder = /* @__PURE__ */ new Map();
|
|
1039
|
-
const workPathByBuilder = /* @__PURE__ */ new Map();
|
|
1040
1055
|
const serviceFileOverrides = /* @__PURE__ */ new Map();
|
|
1041
1056
|
if (getHasDetectedServices()) {
|
|
1042
1057
|
for (const service of detectedResolvedServices) {
|
|
@@ -1076,7 +1091,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1076
1091
|
`Service "${service.name}": workspace-rooted build at "${buildWorkPath}", entrypoint "${buildEntrypoint}" (original: "${build.src}")`
|
|
1077
1092
|
);
|
|
1078
1093
|
}
|
|
1079
|
-
workPathByBuilder.set(build, buildWorkPath);
|
|
1080
1094
|
const settingsForEnv = service ? {
|
|
1081
1095
|
buildCommand: service.buildCommand ?? void 0,
|
|
1082
1096
|
installCommand: service.installCommand ?? void 0,
|
|
@@ -1202,6 +1216,9 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1202
1216
|
output_manager_default.debug(`Injected service URL env var: ${key}=${value}`);
|
|
1203
1217
|
}
|
|
1204
1218
|
}
|
|
1219
|
+
if (service) {
|
|
1220
|
+
unsetServiceBuildImmutableEnvVars(restoreEnv);
|
|
1221
|
+
}
|
|
1205
1222
|
let buildResult;
|
|
1206
1223
|
let rawBuildResult;
|
|
1207
1224
|
try {
|
|
@@ -1518,12 +1535,23 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1518
1535
|
if (generatedConfig instanceof CantParseJSONFile) {
|
|
1519
1536
|
throw generatedConfig;
|
|
1520
1537
|
}
|
|
1538
|
+
const defaultGeneratedOutputDir = join2(workPath, OUTPUT_DIR);
|
|
1539
|
+
const generatedConfigs = [generatedConfig];
|
|
1540
|
+
if (resolve(outputDir) !== resolve(defaultGeneratedOutputDir)) {
|
|
1541
|
+
const defaultGeneratedConfig = await readJSONFile(
|
|
1542
|
+
join2(defaultGeneratedOutputDir, "config.json")
|
|
1543
|
+
);
|
|
1544
|
+
if (defaultGeneratedConfig instanceof CantParseJSONFile) {
|
|
1545
|
+
throw defaultGeneratedConfig;
|
|
1546
|
+
}
|
|
1547
|
+
generatedConfigs.push(defaultGeneratedConfig);
|
|
1548
|
+
}
|
|
1521
1549
|
const generatedExperimentalServicesV2Config = getGeneratedExperimentalServicesV2Config([
|
|
1522
|
-
|
|
1550
|
+
...generatedConfigs,
|
|
1523
1551
|
...buildResults.values()
|
|
1524
1552
|
]);
|
|
1525
1553
|
const generatedExperimentalServicesV1Config = getGeneratedExperimentalServicesV1Config([
|
|
1526
|
-
|
|
1554
|
+
...generatedConfigs,
|
|
1527
1555
|
...buildResults.values()
|
|
1528
1556
|
]);
|
|
1529
1557
|
if (generatedExperimentalServicesV2Config || generatedExperimentalServicesV1Config) {
|
|
@@ -1532,7 +1560,9 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1532
1560
|
}
|
|
1533
1561
|
detectedExperimentalServicesV1Config = generatedExperimentalServicesV1Config;
|
|
1534
1562
|
detectedExperimentalServicesV2Config = generatedExperimentalServicesV2Config;
|
|
1535
|
-
detectedExperimentalServicesV2RootRoutes = generatedExperimentalServicesV2Config
|
|
1563
|
+
detectedExperimentalServicesV2RootRoutes = generatedExperimentalServicesV2Config ? generatedConfigs.find(
|
|
1564
|
+
(config2) => hasNonEmptyObject(config2?.experimentalServicesV2) && Array.isArray(config2?.routes)
|
|
1565
|
+
)?.routes : void 0;
|
|
1536
1566
|
const generatedBuilders = await span.child("vc.detectGeneratedServices").trace(
|
|
1537
1567
|
() => (0, import_fs_detectors2.detectBuilders)(files, pkg, {
|
|
1538
1568
|
...localConfig,
|
|
@@ -1579,24 +1609,19 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1579
1609
|
}
|
|
1580
1610
|
const buildsToRun = [];
|
|
1581
1611
|
const seenBuildsToRun = /* @__PURE__ */ new Set();
|
|
1582
|
-
const relocatedGeneratedServiceBuilds = /* @__PURE__ */ new Set();
|
|
1583
1612
|
for (const service of detectedResolvedServices || []) {
|
|
1584
|
-
serviceByBuilder.set(service.builder, service);
|
|
1585
1613
|
const alreadyExecutedBuild = getAlreadyExecutedBuild(service.builder);
|
|
1586
1614
|
if (alreadyExecutedBuild) {
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
service,
|
|
1592
|
-
workPath: workPathByBuilder.get(alreadyExecutedBuild) ?? workPath
|
|
1593
|
-
});
|
|
1594
|
-
relocatedGeneratedServiceBuilds.add(alreadyExecutedBuild);
|
|
1615
|
+
if (generatedExperimentalServicesV2Config) {
|
|
1616
|
+
output_manager_default.warn(getGeneratedServiceAlreadyBuiltWarning(service));
|
|
1617
|
+
} else {
|
|
1618
|
+
serviceByBuilder.set(alreadyExecutedBuild, service);
|
|
1595
1619
|
}
|
|
1596
1620
|
continue;
|
|
1597
1621
|
}
|
|
1598
1622
|
const serviceBuilderIdentity = getBuilderIdentity(service.builder);
|
|
1599
1623
|
if (serviceBuilderIdentity && !seenBuildsToRun.has(serviceBuilderIdentity)) {
|
|
1624
|
+
serviceByBuilder.set(service.builder, service);
|
|
1600
1625
|
seenBuildsToRun.add(serviceBuilderIdentity);
|
|
1601
1626
|
buildsToRun.push(service.builder);
|
|
1602
1627
|
}
|
|
@@ -1780,8 +1805,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1780
1805
|
const framework = topLevelBuildResults.size > 0 ? await getFramework(workPath, topLevelBuildResults) : void 0;
|
|
1781
1806
|
const explicitRootRoutes = appendBuildOutputRouteTables(
|
|
1782
1807
|
routesResult.routes,
|
|
1783
|
-
detectedExperimentalServicesV2RootRoutes
|
|
1784
|
-
existingConfig?.routes
|
|
1808
|
+
detectedExperimentalServicesV2RootRoutes ?? existingConfig?.routes
|
|
1785
1809
|
);
|
|
1786
1810
|
const config = {
|
|
1787
1811
|
version: 3,
|