vercel 50.38.3 → 50.40.0
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/{chunk-ZFRYHXOW.js → chunk-2E3I7KDG.js} +1 -1
- package/dist/chunks/{chunk-7FIZZGGM.js → chunk-2PQBSDLL.js} +5 -5
- package/dist/chunks/{chunk-4MZDTR5P.js → chunk-2VBJWBZO.js} +2 -2
- package/dist/chunks/{chunk-F4R4S5SZ.js → chunk-2WMYST74.js} +4 -4
- package/dist/chunks/{chunk-YXPDMJDR.js → chunk-7A5X3JWQ.js} +2 -2
- package/dist/chunks/{chunk-7DONLUDG.js → chunk-ABC6WFRG.js} +1 -1
- package/dist/chunks/{chunk-NT3RI4UZ.js → chunk-AEVTZ63P.js} +3 -3
- package/dist/chunks/{chunk-PCFBWAJO.js → chunk-AHIRHRNN.js} +9 -9
- package/dist/chunks/{chunk-3KZHRNXR.js → chunk-AKJWYZIB.js} +1 -1
- package/dist/chunks/{chunk-W2M6PJ7F.js → chunk-B6QTGZFG.js} +4 -6
- package/dist/chunks/{chunk-WGMPIQHN.js → chunk-BAKQ6TED.js} +14 -2
- package/dist/chunks/{chunk-IE7MNZ56.js → chunk-BLNY4RPZ.js} +1 -1
- package/dist/chunks/{chunk-GGP5R3FU.js → chunk-CO5D46AG.js} +38 -18
- package/dist/chunks/{chunk-5ZVJYXLU.js → chunk-ECWQHAOF.js} +1 -1
- package/dist/chunks/{chunk-3I3UP3EV.js → chunk-GCKEZI4W.js} +10 -9
- package/dist/chunks/{chunk-HBTEU7F4.js → chunk-GSSP5PJ7.js} +1 -1
- package/dist/chunks/{chunk-CTY6ZEQZ.js → chunk-H3CMW7KQ.js} +1 -1
- package/dist/chunks/{chunk-VRPR7GUR.js → chunk-LUR25PAI.js} +2 -2
- package/dist/chunks/{chunk-OC2OLW2J.js → chunk-NEHRMELH.js} +1 -1
- package/dist/chunks/{chunk-WILFGAOT.js → chunk-NFRKTXWB.js} +266 -21
- package/dist/chunks/{chunk-O5OD4JWH.js → chunk-NZ43E7P3.js} +5 -5
- package/dist/chunks/{chunk-URWUVSGJ.js → chunk-O6MDSC64.js} +12 -16
- package/dist/chunks/{chunk-SV3GZCMS.js → chunk-OSTYX3QY.js} +1 -1
- package/dist/chunks/{chunk-V5FUID6S.js → chunk-OZNAXJDJ.js} +650 -47
- package/dist/chunks/chunk-P7T5S2Q6.js +152 -0
- package/dist/chunks/{chunk-U2VTKOYW.js → chunk-SQJIJVF2.js} +1 -1
- package/dist/chunks/{chunk-V7AUULPM.js → chunk-U6QYLIN2.js} +4 -0
- package/dist/chunks/{chunk-MTX2A6OC.js → chunk-UVOVGBSX.js} +2 -2
- package/dist/chunks/{chunk-ER5LLAJ6.js → chunk-VT5DEMEJ.js} +1 -1
- package/dist/chunks/{chunk-TZTFRKQP.js → chunk-VXJSSAG2.js} +7 -7
- package/dist/chunks/{chunk-CJOJGC52.js → chunk-WHW2IP6A.js} +1 -1
- package/dist/chunks/{chunk-5X5D56SC.js → chunk-XPVPPSEE.js} +1 -1
- package/dist/chunks/{chunk-2MZ2A7NV.js → chunk-YR4OXOHO.js} +1 -1
- package/dist/chunks/{chunk-E3DU27YT.js → chunk-ZIPQJCFL.js} +2 -2
- package/dist/chunks/{chunk-N7ABINT7.js → chunk-ZP6DWI4H.js} +10 -0
- package/dist/chunks/{compile-vercel-config-FR2YWUTQ.js → compile-vercel-config-PHTDH3SO.js} +3 -5
- package/dist/chunks/{delete-WNTEO77M.js → delete-EC7VNDRB.js} +6 -8
- package/dist/chunks/{disable-77Z5767C.js → disable-4G6VDSP6.js} +6 -8
- package/dist/chunks/{discard-Y5Q5M7UN.js → discard-YITCVW62.js} +6 -8
- package/dist/chunks/{edit-WOPMJTMZ.js → edit-V6POIDWB.js} +7 -9
- package/dist/chunks/{enable-O24LJFM4.js → enable-DERSRNTA.js} +6 -8
- package/dist/chunks/{export-I2PM6DJW.js → export-IL6JQJLU.js} +6 -8
- package/dist/chunks/{list-UZITU56D.js → list-AJC35GUV.js} +9 -11
- package/dist/chunks/{list-TSVT6OUQ.js → list-DF2HAW5Z.js} +6 -8
- package/dist/chunks/{publish-H6G2AB5C.js → publish-VOYJPL4H.js} +6 -8
- package/dist/chunks/{query-MS5CFVOU.js → query-PVGUYY7Z.js} +10 -12
- package/dist/chunks/{reorder-XD7S74TB.js → reorder-LDM62RRJ.js} +6 -8
- package/dist/chunks/{restore-XCT2KIQJ.js → restore-NNPPDIBK.js} +6 -8
- package/dist/chunks/{schema-DU5ZM4TM.js → schema-AWECHBQI.js} +10 -9
- package/dist/chunks/{stamp-RTPE2EBB.js → stamp-ENIXDCRO.js} +1 -2
- package/dist/chunks/{types-AHFPPACX.js → types-3D4XZZZC.js} +3 -3
- package/dist/commands/build/index.js +90 -33
- package/dist/commands/deploy/index.js +25 -28
- package/dist/commands/dev/index.js +14 -17
- package/dist/commands/env/index.js +17 -20
- package/dist/commands/link/index.js +17 -19
- package/dist/commands/list/index.js +12 -15
- package/dist/commands-bulk.js +1419 -500
- package/dist/index.js +35 -27
- package/dist/version.mjs +1 -1
- package/package.json +11 -11
- package/dist/chunks/chunk-AY4LBM3J.js +0 -395
- package/dist/chunks/chunk-QIZEWDZG.js +0 -34
- package/dist/chunks/chunk-SOTR4CXR.js +0 -34
|
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7A5X3JWQ.js";
|
|
10
10
|
import {
|
|
11
11
|
login
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AHIRHRNN.js";
|
|
13
13
|
import {
|
|
14
14
|
loginCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NFRKTXWB.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NZ43E7P3.js";
|
|
19
19
|
import {
|
|
20
20
|
TelemetryClient
|
|
21
21
|
} from "./chunk-MXPZBZ2X.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
parseArguments,
|
|
25
25
|
printError,
|
|
26
26
|
require_strip_ansi
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
28
28
|
import {
|
|
29
29
|
output_manager_default
|
|
30
30
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
STANDARD_ENVIRONMENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommandName,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
14
14
|
import {
|
|
15
15
|
output_manager_default
|
|
16
16
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
AGENT_REASON,
|
|
9
9
|
AGENT_STATUS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U6QYLIN2.js";
|
|
11
11
|
import {
|
|
12
12
|
buildCommandWithYes,
|
|
13
13
|
getLinkedProject,
|
|
14
14
|
outputAgentError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
16
16
|
import {
|
|
17
17
|
getCommandName,
|
|
18
18
|
getCommandNamePlain,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getGlobalFlagsOnlyFromArgs,
|
|
21
21
|
parseArguments,
|
|
22
22
|
printError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
24
24
|
import {
|
|
25
25
|
output_manager_default
|
|
26
26
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -258,7 +258,7 @@ function parsePosition(position) {
|
|
|
258
258
|
}
|
|
259
259
|
async function offerAutoPromote(client, projectId, version, hadExistingStagingVersion, opts) {
|
|
260
260
|
const { default: updateRouteVersion } = await import("./update-route-version-E3V47KNI.js");
|
|
261
|
-
const { default: stamp } = await import("./stamp-
|
|
261
|
+
const { default: stamp } = await import("./stamp-ENIXDCRO.js");
|
|
262
262
|
output_manager_default.print(
|
|
263
263
|
`
|
|
264
264
|
${import_chalk.default.gray(`This change is staged. Run ${import_chalk.default.cyan(getCommandName("routes publish"))} to make it live, or ${import_chalk.default.cyan(getCommandName("routes discard-staging"))} to undo.`)}
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-TZ2YI2VH.js";
|
|
@@ -6,18 +6,18 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GCKEZI4W.js";
|
|
10
10
|
import {
|
|
11
11
|
buildCommandWithYes,
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
outputActionRequired,
|
|
14
14
|
param,
|
|
15
15
|
resolveProjectCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
17
17
|
import {
|
|
18
18
|
getCommandName,
|
|
19
19
|
getCommandNamePlain
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
21
21
|
import {
|
|
22
22
|
output_manager_default
|
|
23
23
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallAgentTooling
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WHW2IP6A.js";
|
|
13
13
|
import {
|
|
14
14
|
ua_default
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ECWQHAOF.js";
|
|
16
16
|
import {
|
|
17
17
|
getLocalPathConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LUR25PAI.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
esm_default,
|
|
25
25
|
esm_default2,
|
|
26
26
|
esm_default3,
|
|
27
|
+
getUser,
|
|
27
28
|
global_path_default,
|
|
28
29
|
humanizePath,
|
|
29
30
|
isBackspaceKey,
|
|
@@ -40,17 +41,14 @@ import {
|
|
|
40
41
|
useKeypress,
|
|
41
42
|
usePrefix,
|
|
42
43
|
useState
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
getUser
|
|
46
|
-
} from "./chunk-AY4LBM3J.js";
|
|
44
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
47
45
|
import {
|
|
48
46
|
APIError,
|
|
49
47
|
NowError,
|
|
50
48
|
getCommandName,
|
|
51
49
|
printError,
|
|
52
50
|
require_strip_ansi
|
|
53
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
54
52
|
import {
|
|
55
53
|
emoji,
|
|
56
54
|
link_default,
|
|
@@ -3740,6 +3738,7 @@ async function login(client, telemetry) {
|
|
|
3740
3738
|
const isInitialLogin = !client.authConfig.token;
|
|
3741
3739
|
client.updateAuthConfig({
|
|
3742
3740
|
token: tokens.access_token,
|
|
3741
|
+
userId: void 0,
|
|
3743
3742
|
expiresAt: Math.floor(Date.now() / 1e3) + tokens.expires_in,
|
|
3744
3743
|
refreshToken: tokens.refresh_token
|
|
3745
3744
|
});
|
|
@@ -3783,6 +3782,7 @@ async function reauthenticate(client, error) {
|
|
|
3783
3782
|
}
|
|
3784
3783
|
client.updateAuthConfig({
|
|
3785
3784
|
token: tokens.access_token,
|
|
3785
|
+
userId: void 0,
|
|
3786
3786
|
expiresAt: Math.floor(Date.now() / 1e3) + tokens.expires_in,
|
|
3787
3787
|
refreshToken: tokens.refresh_token
|
|
3788
3788
|
});
|
|
@@ -3969,7 +3969,7 @@ ${error.stack}`);
|
|
|
3969
3969
|
this.authConfig = { ...this.authConfig, ...authConfig };
|
|
3970
3970
|
}
|
|
3971
3971
|
emptyAuthConfig() {
|
|
3972
|
-
this.authConfig = {};
|
|
3972
|
+
this.authConfig = this.authConfig.skipWrite ? { skipWrite: true } : {};
|
|
3973
3973
|
}
|
|
3974
3974
|
writeToAuthConfigFile() {
|
|
3975
3975
|
writeToAuthConfigFile(this.authConfig);
|
|
@@ -9,23 +9,21 @@ import {
|
|
|
9
9
|
} from "./chunk-IB5L4LKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
require_execa
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GSSP5PJ7.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR,
|
|
15
15
|
readJSONFile,
|
|
16
16
|
require_dist as require_dist2,
|
|
17
17
|
require_dist3,
|
|
18
18
|
require_lib,
|
|
19
|
-
require_minimatch
|
|
20
|
-
} from "./chunk-V5FUID6S.js";
|
|
21
|
-
import {
|
|
19
|
+
require_minimatch,
|
|
22
20
|
require_pluralize
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
24
22
|
import {
|
|
25
23
|
CantParseJSONFile,
|
|
26
24
|
cmd,
|
|
27
25
|
code
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
29
27
|
import {
|
|
30
28
|
output_manager_default,
|
|
31
29
|
require_dist
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getEnvTargetPlaceholder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName,
|
|
12
12
|
yesOption
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/build/command.ts
|
|
16
16
|
var buildCommand = {
|
|
@@ -52,6 +52,14 @@ var buildCommand = {
|
|
|
52
52
|
shorthand: null,
|
|
53
53
|
type: Boolean,
|
|
54
54
|
deprecated: false
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "id",
|
|
58
|
+
description: "Deployment ID to pull environment variables from (e.g. dpl_xxx)",
|
|
59
|
+
shorthand: null,
|
|
60
|
+
type: String,
|
|
61
|
+
argument: "ID",
|
|
62
|
+
deprecated: false
|
|
55
63
|
}
|
|
56
64
|
],
|
|
57
65
|
examples: [
|
|
@@ -62,6 +70,10 @@ var buildCommand = {
|
|
|
62
70
|
{
|
|
63
71
|
name: "Build the project in a specific directory",
|
|
64
72
|
value: `${packageName} build --cwd ./path-to-project`
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "Build with deployment-scoped environment variables",
|
|
76
|
+
value: `${packageName} build --id dpl_xxx`
|
|
65
77
|
}
|
|
66
78
|
]
|
|
67
79
|
};
|
|
@@ -5,7 +5,11 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
require_source
|
|
9
|
+
} from "./chunk-S7KYDPEM.js";
|
|
10
|
+
import {
|
|
11
|
+
__commonJS,
|
|
12
|
+
__toESM
|
|
9
13
|
} from "./chunk-TZ2YI2VH.js";
|
|
10
14
|
|
|
11
15
|
// ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
@@ -85,45 +89,61 @@ var require_ms = __commonJS({
|
|
|
85
89
|
return void 0;
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
|
-
function fmtShort(
|
|
89
|
-
var msAbs = Math.abs(
|
|
92
|
+
function fmtShort(ms2) {
|
|
93
|
+
var msAbs = Math.abs(ms2);
|
|
90
94
|
if (msAbs >= d) {
|
|
91
|
-
return Math.round(
|
|
95
|
+
return Math.round(ms2 / d) + "d";
|
|
92
96
|
}
|
|
93
97
|
if (msAbs >= h) {
|
|
94
|
-
return Math.round(
|
|
98
|
+
return Math.round(ms2 / h) + "h";
|
|
95
99
|
}
|
|
96
100
|
if (msAbs >= m) {
|
|
97
|
-
return Math.round(
|
|
101
|
+
return Math.round(ms2 / m) + "m";
|
|
98
102
|
}
|
|
99
103
|
if (msAbs >= s) {
|
|
100
|
-
return Math.round(
|
|
104
|
+
return Math.round(ms2 / s) + "s";
|
|
101
105
|
}
|
|
102
|
-
return
|
|
106
|
+
return ms2 + "ms";
|
|
103
107
|
}
|
|
104
|
-
function fmtLong(
|
|
105
|
-
var msAbs = Math.abs(
|
|
108
|
+
function fmtLong(ms2) {
|
|
109
|
+
var msAbs = Math.abs(ms2);
|
|
106
110
|
if (msAbs >= d) {
|
|
107
|
-
return plural(
|
|
111
|
+
return plural(ms2, msAbs, d, "day");
|
|
108
112
|
}
|
|
109
113
|
if (msAbs >= h) {
|
|
110
|
-
return plural(
|
|
114
|
+
return plural(ms2, msAbs, h, "hour");
|
|
111
115
|
}
|
|
112
116
|
if (msAbs >= m) {
|
|
113
|
-
return plural(
|
|
117
|
+
return plural(ms2, msAbs, m, "minute");
|
|
114
118
|
}
|
|
115
119
|
if (msAbs >= s) {
|
|
116
|
-
return plural(
|
|
120
|
+
return plural(ms2, msAbs, s, "second");
|
|
117
121
|
}
|
|
118
|
-
return
|
|
122
|
+
return ms2 + " ms";
|
|
119
123
|
}
|
|
120
|
-
function plural(
|
|
124
|
+
function plural(ms2, msAbs, n, name) {
|
|
121
125
|
var isPlural = msAbs >= n * 1.5;
|
|
122
|
-
return Math.round(
|
|
126
|
+
return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
|
|
123
127
|
}
|
|
124
128
|
}
|
|
125
129
|
});
|
|
126
130
|
|
|
131
|
+
// src/util/output/elapsed.ts
|
|
132
|
+
var import_ms = __toESM(require_ms(), 1);
|
|
133
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
134
|
+
function elapsed(time, ago = false) {
|
|
135
|
+
return import_chalk.default.gray(
|
|
136
|
+
`[${time < 1e3 ? `${time}ms` : (0, import_ms.default)(time)}${ago ? " ago" : ""}]`
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// src/util/output/stamp.ts
|
|
141
|
+
var stamp_default = (start = Date.now()) => {
|
|
142
|
+
return () => elapsed(Date.now() - start);
|
|
143
|
+
};
|
|
144
|
+
|
|
127
145
|
export {
|
|
128
|
-
require_ms
|
|
146
|
+
require_ms,
|
|
147
|
+
elapsed,
|
|
148
|
+
stamp_default
|
|
129
149
|
};
|
|
@@ -6,7 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getLocalPathConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LUR25PAI.js";
|
|
10
|
+
import {
|
|
11
|
+
table
|
|
12
|
+
} from "./chunk-H3CMW7KQ.js";
|
|
10
13
|
import {
|
|
11
14
|
VERCEL_DIR_PROJECT,
|
|
12
15
|
VERCEL_DIR_README,
|
|
@@ -18,6 +21,7 @@ import {
|
|
|
18
21
|
getProjectByNameOrId,
|
|
19
22
|
getServicesConfigWriteBlocker,
|
|
20
23
|
getTeams,
|
|
24
|
+
getUser,
|
|
21
25
|
getVercelDirectory,
|
|
22
26
|
humanizePath,
|
|
23
27
|
isDirectory,
|
|
@@ -32,19 +36,13 @@ import {
|
|
|
32
36
|
selectAndParseRemoteUrl,
|
|
33
37
|
selectOrg,
|
|
34
38
|
writeServicesConfig
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
table
|
|
38
|
-
} from "./chunk-CTY6ZEQZ.js";
|
|
39
|
-
import {
|
|
40
|
-
getUser
|
|
41
|
-
} from "./chunk-AY4LBM3J.js";
|
|
39
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
42
40
|
import {
|
|
43
41
|
CantParseJSONFile,
|
|
44
42
|
ProjectNotFound,
|
|
45
43
|
isAPIError,
|
|
46
44
|
printError
|
|
47
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
48
46
|
import {
|
|
49
47
|
output_manager_default
|
|
50
48
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -285,6 +283,9 @@ async function inputProject(client, org, detectedProjectName, autoConfirm = fals
|
|
|
285
283
|
return detectedProject || detectedProjectName;
|
|
286
284
|
}
|
|
287
285
|
if (client.nonInteractive) {
|
|
286
|
+
if (detectedProject) {
|
|
287
|
+
return detectedProject;
|
|
288
|
+
}
|
|
288
289
|
const err = new Error("Confirmation required");
|
|
289
290
|
err.code = "HEADLESS";
|
|
290
291
|
throw err;
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERCEL_DIR
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZNAXJDJ.js";
|
|
10
10
|
import {
|
|
11
11
|
ConflictingConfigFiles,
|
|
12
12
|
InvalidLocalConfig,
|
|
13
13
|
getArgs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZP6DWI4H.js";
|
|
15
15
|
|
|
16
16
|
// src/util/config/local-path.ts
|
|
17
17
|
import path from "path";
|