vercel 58.9.5 → 58.11.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/{add-W4XR5GYX.js → add-I4TVSKCW.js} +2 -2
- package/dist/chunks/{add-5KFK4EFH.js → add-IFQ74XHE.js} +6 -6
- package/dist/chunks/{add-NMYLVDBN.js → add-LLXXGWJZ.js} +2 -2
- package/dist/chunks/{build-BCMSG7TU.js → build-6DPTFQKH.js} +2 -2
- package/dist/chunks/{chunk-3MELKK7A.js → chunk-2XR3IS42.js} +80 -38
- package/dist/chunks/{chunk-AZCZV4XI.js → chunk-57E3RXRP.js} +1 -1
- package/dist/chunks/{chunk-IBIZT5M4.js → chunk-6FUU7WW5.js} +47 -6
- package/dist/chunks/{chunk-4GUI4FQR.js → chunk-74IYXJ5O.js} +10 -518
- package/dist/chunks/{chunk-MAZ2BUBX.js → chunk-A7HDIKC2.js} +2 -2
- package/dist/chunks/chunk-BTKWXOXK.js +61 -0
- package/dist/chunks/{chunk-MGCBTAA7.js → chunk-COTEMB2F.js} +1 -1
- package/dist/chunks/{chunk-UDHYVIJL.js → chunk-D7MYUPY7.js} +4 -4
- package/dist/chunks/{chunk-7RUZPHW7.js → chunk-DJUIGD6C.js} +1 -1
- package/dist/chunks/{chunk-N5YCPDWG.js → chunk-EA6MVNDR.js} +1 -1
- package/dist/chunks/{chunk-2SEBBSKD.js → chunk-EN2JH6AK.js} +1 -1
- package/dist/chunks/{chunk-BZGIBXY6.js → chunk-EPETZ7OW.js} +1 -1
- package/dist/chunks/{chunk-6SXIT6Q3.js → chunk-EVB35IJS.js} +2 -2
- package/dist/chunks/{chunk-6WWATEWK.js → chunk-FKZAFG4D.js} +1 -1
- package/dist/chunks/{chunk-U4LWFSR4.js → chunk-FYXFZ4CY.js} +1 -1
- package/dist/chunks/chunk-IM56DJEQ.js +559 -0
- package/dist/chunks/{chunk-KUZCVMVA.js → chunk-J2WXMIAP.js} +4 -3
- package/dist/chunks/{chunk-ELJ56NBY.js → chunk-JDNWPNLS.js} +173 -173
- package/dist/chunks/{chunk-5MERQE7H.js → chunk-LM5S2YN4.js} +1 -1
- package/dist/chunks/{chunk-TNKTZDOL.js → chunk-MX5JRP6N.js} +1 -1
- package/dist/chunks/{chunk-PTZ6X4P4.js → chunk-OXJFXZV2.js} +1 -1
- package/dist/chunks/{chunk-NDOZRKTB.js → chunk-UEBYWLPO.js} +1 -1
- package/dist/chunks/{chunk-DQDAQYQI.js → chunk-YJCZFVWJ.js} +1 -1
- package/dist/chunks/{chunk-2J7BL7IF.js → chunk-YP35CTKZ.js} +2 -2
- package/dist/chunks/{chunk-GBXTATOJ.js → chunk-Z3FO2ZSH.js} +158 -3
- package/dist/chunks/{clear-54WX3NA2.js → clear-NA74WCNT.js} +2 -2
- package/dist/chunks/{compile-vercel-config-LSW4TWGX.js → compile-vercel-config-BD4UGPKJ.js} +1 -1
- package/dist/chunks/{config-WXQTPQW7.js → config-WYUTVPPF.js} +2 -2
- package/dist/chunks/{delete-OGP3RVWM.js → delete-NFNYQ7LC.js} +2 -2
- package/dist/chunks/{delete-HQMI44SG.js → delete-RZ2SVQK6.js} +2 -2
- package/dist/chunks/{disable-HC266OB7.js → disable-DZ7DCWEI.js} +2 -2
- package/dist/chunks/{discard-3RFIPLXY.js → discard-VZ5QNL7B.js} +2 -2
- package/dist/chunks/{edit-TZOCRGG6.js → edit-ABJN6BMR.js} +2 -2
- package/dist/chunks/{edit-NXPQFWM6.js → edit-RIY7SWIR.js} +3 -3
- package/dist/chunks/{enable-OGFRN4CG.js → enable-JWPKENHY.js} +2 -2
- package/dist/chunks/{export-AEESZFZX.js → export-6IDA3TWA.js} +2 -2
- package/dist/chunks/{image-EIAO7LVN.js → image-DM4ZNQOL.js} +3 -3
- package/dist/chunks/{import-builders-KCQLA2YR.js → import-builders-6NCPTR6R.js} +2 -2
- package/dist/chunks/{inspect-MGIECVLH.js → inspect-6WYHE6JX.js} +2 -2
- package/dist/chunks/{inspect-RUGPLO7A.js → inspect-KUAM7UKQ.js} +2 -2
- package/dist/chunks/{inspect-EM34BOTE.js → inspect-NLWTMJHW.js} +3 -3
- package/dist/chunks/{inspect-TTHC6L7Q.js → inspect-Z6VNNFFK.js} +2 -2
- package/dist/chunks/{inspect-HHSDXTII.js → inspect-ZKZG7MCO.js} +2 -2
- package/dist/chunks/{list-A74MGEOB.js → list-2PB3N6FM.js} +2 -2
- package/dist/chunks/{list-EOG3TYBE.js → list-GPQI2LGO.js} +1 -1
- package/dist/chunks/{list-GQDUIRBU.js → list-ZUFB2CIS.js} +3 -3
- package/dist/chunks/{login-L4EWZOGH.js → login-GTZWDE5T.js} +2 -2
- package/dist/chunks/{ls-VBFBWSWD.js → ls-AG5UBKCR.js} +3 -3
- package/dist/chunks/{ls-F6WCPVB7.js → ls-ETUPWWLP.js} +2 -2
- package/dist/chunks/{ls-D5ESYWG5.js → ls-HCVYO3FF.js} +2 -2
- package/dist/chunks/{ls-OWHNAGNT.js → ls-YMQ6E7MZ.js} +2 -2
- package/dist/chunks/{ls-OJGSWVWO.js → ls-Z2XKIHA5.js} +2 -2
- package/dist/chunks/{open-FHER5QV2.js → open-4XQWNZQD.js} +2 -2
- package/dist/chunks/{permissions-JSXC7BRD.js → permissions-BJBEONBS.js} +4 -4
- package/dist/chunks/{publish-CM6ZGWIE.js → publish-TVZGIZRP.js} +2 -2
- package/dist/chunks/{push-5NYG7HIR.js → push-EJZHZC4Z.js} +2 -2
- package/dist/chunks/{query-5GQLF2BR.js → query-HXMR364K.js} +1 -1
- package/dist/chunks/{reorder-5GCNY75W.js → reorder-VE2PRU24.js} +2 -2
- package/dist/chunks/{reply-B2XCK5XR.js → reply-4YEXMUWH.js} +2 -2
- package/dist/chunks/{resolve-YQP5C2QY.js → resolve-GZ4KXDU6.js} +2 -2
- package/dist/chunks/{restore-VHX4JV5J.js → restore-ZY3IJ4S3.js} +2 -2
- package/dist/chunks/{rm-QVVQDCDX.js → rm-IE23BM6V.js} +3 -3
- package/dist/chunks/{rm-VDFSX3LH.js → rm-QS5PIVAO.js} +2 -2
- package/dist/chunks/{rm-OILUGCTW.js → rm-Y6OROWNK.js} +2 -2
- package/dist/chunks/{rm-AUUT2YIT.js → rm-YIVI23NT.js} +2 -2
- package/dist/chunks/{rule-inspect-LKTUPW4B.js → rule-inspect-6NXF565C.js} +3 -3
- package/dist/chunks/{rules-J5JM5VFQ.js → rules-QOZAWHUO.js} +6 -6
- package/dist/chunks/{schema-OIKSCLDU.js → schema-YJDZ6EOC.js} +1 -1
- package/dist/chunks/{tags-AMTMNRLQ.js → tags-67LC7TV4.js} +2 -2
- package/dist/chunks/{update-AFL3GHKB.js → update-YNL7VIL7.js} +6 -6
- package/dist/commands/build/index.js +15 -11
- package/dist/commands/deploy/index.js +347 -49
- package/dist/commands/dev/index.js +39 -13
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +6 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +1018 -294
- package/dist/index.js +33 -43
- package/dist/version.mjs +1 -1
- package/package.json +17 -17
- package/dist/chunks/chunk-I2XE3GMB.js +0 -21
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
emitVcrArgParseError,
|
|
18
18
|
resolveVcrScope,
|
|
19
19
|
validateVcrJsonOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FKZAFG4D.js";
|
|
21
21
|
import "./chunk-G75NFPIT.js";
|
|
22
22
|
import {
|
|
23
23
|
outputError
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
permissionsAddSubcommand
|
|
28
28
|
} from "./chunk-J6LK45HT.js";
|
|
29
29
|
import "./chunk-R6IGDGX3.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-6FUU7WW5.js";
|
|
31
31
|
import "./chunk-ECCWJHC6.js";
|
|
32
32
|
import {
|
|
33
33
|
AGENT_REASON,
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
parseCustomAlertQueryBody,
|
|
9
9
|
resolveCustomAlertProjectName,
|
|
10
10
|
setMissingCustomAlertProjectScope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YP35CTKZ.js";
|
|
12
12
|
import {
|
|
13
13
|
emitRulesArgParseError,
|
|
14
14
|
handleRulesApiError,
|
|
15
15
|
parseRulesFlagsAndScope,
|
|
16
16
|
rulesCollectionPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DJUIGD6C.js";
|
|
18
18
|
import {
|
|
19
19
|
isCustomAlertRule
|
|
20
20
|
} from "./chunk-TEQKKTJQ.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YJCZFVWJ.js";
|
|
22
22
|
import "./chunk-A3NYPUKZ.js";
|
|
23
23
|
import "./chunk-P65EEFTR.js";
|
|
24
24
|
import "./chunk-FGDKMNEN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-A7HDIKC2.js";
|
|
26
26
|
import "./chunk-JKQWQA2T.js";
|
|
27
27
|
import "./chunk-RQ7H43CJ.js";
|
|
28
28
|
import {
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
rulesAddSubcommand
|
|
33
33
|
} from "./chunk-UMA66MKW.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-COTEMB2F.js";
|
|
35
35
|
import "./chunk-KT4XXKJK.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-6FUU7WW5.js";
|
|
37
37
|
import "./chunk-ECCWJHC6.js";
|
|
38
38
|
import {
|
|
39
39
|
AGENT_REASON,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
handleVcrApiError,
|
|
10
10
|
resolveVcrScope,
|
|
11
11
|
validateVcrJsonOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FKZAFG4D.js";
|
|
13
13
|
import "./chunk-G75NFPIT.js";
|
|
14
14
|
import {
|
|
15
15
|
outputError
|
|
@@ -22,7 +22,7 @@ import "./chunk-B3JTF4CF.js";
|
|
|
22
22
|
import "./chunk-A5KP5HAI.js";
|
|
23
23
|
import "./chunk-J6LK45HT.js";
|
|
24
24
|
import "./chunk-R6IGDGX3.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-6FUU7WW5.js";
|
|
26
26
|
import "./chunk-ECCWJHC6.js";
|
|
27
27
|
import {
|
|
28
28
|
AGENT_REASON,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
runEngine,
|
|
24
24
|
splitPassthrough,
|
|
25
25
|
validateVcrChoice
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FKZAFG4D.js";
|
|
27
27
|
import "./chunk-G75NFPIT.js";
|
|
28
28
|
import {
|
|
29
29
|
outputError
|
|
@@ -36,7 +36,7 @@ import "./chunk-B3JTF4CF.js";
|
|
|
36
36
|
import "./chunk-A5KP5HAI.js";
|
|
37
37
|
import "./chunk-J6LK45HT.js";
|
|
38
38
|
import "./chunk-R6IGDGX3.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-6FUU7WW5.js";
|
|
40
40
|
import "./chunk-ECCWJHC6.js";
|
|
41
41
|
import {
|
|
42
42
|
AGENT_REASON,
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
} from "./chunk-PRWJUY5U.js";
|
|
10
10
|
import {
|
|
11
11
|
progress
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IM56DJEQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isJSONObject,
|
|
15
15
|
printIndications,
|
|
16
16
|
require_dist as require_dist2,
|
|
17
17
|
sleep
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A7HDIKC2.js";
|
|
19
19
|
import {
|
|
20
20
|
suggestNextCommands
|
|
21
21
|
} from "./chunk-XBN2O34P.js";
|
|
22
22
|
import {
|
|
23
23
|
CommandTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Z3FO2ZSH.js";
|
|
25
25
|
import {
|
|
26
26
|
showPluginTipIfNeeded
|
|
27
27
|
} from "./chunk-HT2XWSAJ.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
require_dist as require_dist3,
|
|
39
39
|
require_pluralize,
|
|
40
40
|
ua_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6FUU7WW5.js";
|
|
42
42
|
import {
|
|
43
43
|
require_ms
|
|
44
44
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -1168,9 +1168,11 @@ async function processDeployment({
|
|
|
1168
1168
|
skipAutoDetectionConfirmation,
|
|
1169
1169
|
noWait,
|
|
1170
1170
|
withFullLogs,
|
|
1171
|
+
anonymous,
|
|
1171
1172
|
manual,
|
|
1172
1173
|
jsonOutput,
|
|
1173
1174
|
linkedProject,
|
|
1175
|
+
linkedProjectIsPartial,
|
|
1174
1176
|
...args
|
|
1175
1177
|
}) {
|
|
1176
1178
|
const {
|
|
@@ -1216,7 +1218,9 @@ async function processDeployment({
|
|
|
1216
1218
|
manual,
|
|
1217
1219
|
aliasAssignedSignal: aliasAssignedController.signal
|
|
1218
1220
|
};
|
|
1219
|
-
const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk2.default.bold(
|
|
1221
|
+
const deployingSpinnerVal = isSettingUpProject ? "Setting up project" : `Deploying ${import_chalk2.default.bold(
|
|
1222
|
+
org.slug ? `${org.slug}/${projectName}` : projectName
|
|
1223
|
+
)}`;
|
|
1220
1224
|
output_manager_default.spinner(deployingSpinnerVal, 0);
|
|
1221
1225
|
const indications = [];
|
|
1222
1226
|
let abortController;
|
|
@@ -1224,9 +1228,27 @@ async function processDeployment({
|
|
|
1224
1228
|
abortController?.abort();
|
|
1225
1229
|
output_manager_default.stopSpinner();
|
|
1226
1230
|
}
|
|
1231
|
+
const linkedProjectLookup = linkedProjectIsPartial && linkedProject && !noWait ? getProjectByNameOrId(
|
|
1232
|
+
client,
|
|
1233
|
+
linkedProject.id,
|
|
1234
|
+
linkedProject.accountId
|
|
1235
|
+
).then(
|
|
1236
|
+
(project2) => ({ project: project2 }),
|
|
1237
|
+
(error) => ({ error })
|
|
1238
|
+
) : void 0;
|
|
1227
1239
|
let rollingRelease = linkedProject?.rollingRelease;
|
|
1228
|
-
let project = linkedProject;
|
|
1240
|
+
let project = linkedProjectLookup ? void 0 : linkedProject;
|
|
1229
1241
|
let latestLogMessage = "";
|
|
1242
|
+
async function resolveProject() {
|
|
1243
|
+
if (!linkedProjectLookup) {
|
|
1244
|
+
return getProjectByNameOrId(client, projectName);
|
|
1245
|
+
}
|
|
1246
|
+
const result = await linkedProjectLookup;
|
|
1247
|
+
if ("error" in result) {
|
|
1248
|
+
throw result.error;
|
|
1249
|
+
}
|
|
1250
|
+
return result.project;
|
|
1251
|
+
}
|
|
1230
1252
|
try {
|
|
1231
1253
|
for await (const event of (0, import_client.createDeployment)(clientOptions, requestBody)) {
|
|
1232
1254
|
if (["tip", "notice", "warning"].includes(event.type)) {
|
|
@@ -1281,30 +1303,32 @@ async function processDeployment({
|
|
|
1281
1303
|
const deployment = event.payload;
|
|
1282
1304
|
now.url = deployment.url;
|
|
1283
1305
|
stopSpinner();
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
process.
|
|
1306
|
+
if (!anonymous) {
|
|
1307
|
+
printInspectUrl(deployment.inspectorUrl);
|
|
1308
|
+
const isProdDeployment = deployment.target === "production";
|
|
1309
|
+
const previewUrl = `https://${deployment.url}`;
|
|
1310
|
+
if (isProdDeployment && !requestBody.target) {
|
|
1311
|
+
indications.push({
|
|
1312
|
+
type: "notice",
|
|
1313
|
+
payload: "This is your project\u2019s first deployment, so it was assigned to production. Future deployments will be preview deployments unless you use --prod.",
|
|
1314
|
+
link: "https://vercel.com/docs/deployments/environments"
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
printAlignedLabel(
|
|
1318
|
+
isProdDeployment ? "Production" : "Preview",
|
|
1319
|
+
import_chalk2.default.cyan(previewUrl),
|
|
1320
|
+
isProdDeployment && !aliasedRowWillPrint ? { gutter: "\u25B2" } : {}
|
|
1321
|
+
);
|
|
1322
|
+
if (!jsonOutput && (quiet || process.env.FORCE_TTY === "1")) {
|
|
1323
|
+
process.stdout.write(`https://${event.payload.url}`);
|
|
1324
|
+
}
|
|
1301
1325
|
}
|
|
1302
1326
|
if (noWait) {
|
|
1303
1327
|
deployment.indications = indications;
|
|
1304
1328
|
return deployment;
|
|
1305
1329
|
}
|
|
1306
1330
|
latestLogMessage = deployment.readyState === "QUEUED" ? "Queued\u2026" : "Building\u2026";
|
|
1307
|
-
if (withFullLogs) {
|
|
1331
|
+
if (withFullLogs && !anonymous) {
|
|
1308
1332
|
let promise;
|
|
1309
1333
|
({ abortController, promise } = displayBuildLogs(
|
|
1310
1334
|
client,
|
|
@@ -1315,7 +1339,7 @@ async function processDeployment({
|
|
|
1315
1339
|
promise.catch(
|
|
1316
1340
|
(error) => output_manager_default.warn(`Failed to read build logs: ${error}`)
|
|
1317
1341
|
);
|
|
1318
|
-
} else {
|
|
1342
|
+
} else if (!anonymous) {
|
|
1319
1343
|
abortController = new AbortController();
|
|
1320
1344
|
const promise = events_default(
|
|
1321
1345
|
client,
|
|
@@ -1351,8 +1375,8 @@ async function processDeployment({
|
|
|
1351
1375
|
stopSpinner();
|
|
1352
1376
|
return event.payload;
|
|
1353
1377
|
}
|
|
1354
|
-
if (project === void 0) {
|
|
1355
|
-
project = await
|
|
1378
|
+
if (project === void 0 && (!linkedProjectLookup || event.type === "ready")) {
|
|
1379
|
+
project = await resolveProject();
|
|
1356
1380
|
rollingRelease = project?.rollingRelease;
|
|
1357
1381
|
}
|
|
1358
1382
|
if (event.type === "ready" && rollingRelease) {
|
|
@@ -1365,14 +1389,16 @@ async function processDeployment({
|
|
|
1365
1389
|
const v1ChecksPending = event.payload.checksState && event.payload.checksState !== "completed";
|
|
1366
1390
|
const v2ChecksPending = event.payload.checks?.["deployment-alias"]?.state === "pending";
|
|
1367
1391
|
output_manager_default.stopSpinner();
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1392
|
+
if (!anonymous) {
|
|
1393
|
+
process.stderr.write(eraseLines(2));
|
|
1394
|
+
const isProdDeployment = event.payload.target === "production";
|
|
1395
|
+
const previewUrl = `https://${event.payload.url}`;
|
|
1396
|
+
printAlignedLabel(
|
|
1397
|
+
isProdDeployment ? "Production" : "Preview",
|
|
1398
|
+
import_chalk2.default.cyan(previewUrl),
|
|
1399
|
+
isProdDeployment && !aliasedRowWillPrint ? { gutter: "\u25B2" } : {}
|
|
1400
|
+
);
|
|
1401
|
+
}
|
|
1376
1402
|
if (v1ChecksPending || v2ChecksPending) {
|
|
1377
1403
|
output_manager_default.spinner("Running Checks\u2026", 0);
|
|
1378
1404
|
} else {
|
|
@@ -1414,7 +1440,19 @@ async function processDeployment({
|
|
|
1414
1440
|
if (event.payload.target === "production" && event.payload.alias && event.payload.alias.length > 0) {
|
|
1415
1441
|
const primaryDomain = event.payload.alias[0];
|
|
1416
1442
|
const prodUrl = `https://${primaryDomain}`;
|
|
1417
|
-
|
|
1443
|
+
if (anonymous) {
|
|
1444
|
+
output_manager_default.print("\n");
|
|
1445
|
+
}
|
|
1446
|
+
printAlignedLabel(
|
|
1447
|
+
anonymous ? "Temporary" : "Aliased",
|
|
1448
|
+
import_chalk2.default.cyan(prodUrl),
|
|
1449
|
+
{
|
|
1450
|
+
gutter: "\u25B2"
|
|
1451
|
+
}
|
|
1452
|
+
);
|
|
1453
|
+
if (anonymous && !jsonOutput && (quiet || process.env.FORCE_TTY === "1")) {
|
|
1454
|
+
process.stdout.write(prodUrl);
|
|
1455
|
+
}
|
|
1418
1456
|
}
|
|
1419
1457
|
event.payload.indications = indications;
|
|
1420
1458
|
return event.payload;
|
|
@@ -1483,6 +1521,7 @@ var Now = class {
|
|
|
1483
1521
|
name,
|
|
1484
1522
|
project,
|
|
1485
1523
|
prebuilt = false,
|
|
1524
|
+
anonymous = false,
|
|
1486
1525
|
vercelOutputDir,
|
|
1487
1526
|
rootDirectory,
|
|
1488
1527
|
meta,
|
|
@@ -1502,7 +1541,8 @@ var Now = class {
|
|
|
1502
1541
|
agentName,
|
|
1503
1542
|
manual,
|
|
1504
1543
|
jsonOutput = false,
|
|
1505
|
-
linkedProject
|
|
1544
|
+
linkedProject,
|
|
1545
|
+
linkedProjectIsPartial
|
|
1506
1546
|
}, org, isSettingUpProject, archive) {
|
|
1507
1547
|
const requestBody = {
|
|
1508
1548
|
...nowConfig,
|
|
@@ -1535,6 +1575,7 @@ var Now = class {
|
|
|
1535
1575
|
archive,
|
|
1536
1576
|
skipAutoDetectionConfirmation,
|
|
1537
1577
|
prebuilt,
|
|
1578
|
+
anonymous,
|
|
1538
1579
|
vercelOutputDir,
|
|
1539
1580
|
rootDirectory,
|
|
1540
1581
|
noWait,
|
|
@@ -1542,7 +1583,8 @@ var Now = class {
|
|
|
1542
1583
|
bulkRedirectsPath: nowConfig.bulkRedirectsPath,
|
|
1543
1584
|
manual,
|
|
1544
1585
|
jsonOutput,
|
|
1545
|
-
linkedProject
|
|
1586
|
+
linkedProject,
|
|
1587
|
+
linkedProjectIsPartial
|
|
1546
1588
|
});
|
|
1547
1589
|
if (deployment && deployment.warnings) {
|
|
1548
1590
|
let sizeExceeded = 0;
|
|
@@ -38158,7 +38158,7 @@ var require_package = __commonJS({
|
|
|
38158
38158
|
"../client/package.json"(exports, module) {
|
|
38159
38159
|
module.exports = {
|
|
38160
38160
|
name: "@vercel/client",
|
|
38161
|
-
version: "18.2.
|
|
38161
|
+
version: "18.2.10",
|
|
38162
38162
|
main: "dist/index.js",
|
|
38163
38163
|
typings: "dist/index.d.ts",
|
|
38164
38164
|
homepage: "https://vercel.com",
|
|
@@ -46303,9 +46303,9 @@ var require_utils9 = __commonJS({
|
|
|
46303
46303
|
const parts = relOutputDir.split(import_path13.sep);
|
|
46304
46304
|
parts.forEach((_, i) => {
|
|
46305
46305
|
const level = parts.slice(0, i + 1).join("/");
|
|
46306
|
-
ignores.push(
|
|
46306
|
+
ignores.push(`!/${level}`);
|
|
46307
46307
|
});
|
|
46308
|
-
ignores.push(
|
|
46308
|
+
ignores.push(`!/${parts.join("/")}/**`);
|
|
46309
46309
|
ig.add(ignores.join("\n"));
|
|
46310
46310
|
} else {
|
|
46311
46311
|
ignores = [
|
|
@@ -56710,7 +56710,7 @@ ${import_chalk10.default.yellow("\u26A0")} ${import_chalk10.default.bold("Browse
|
|
|
56710
56710
|
}
|
|
56711
56711
|
return result;
|
|
56712
56712
|
}
|
|
56713
|
-
async function login(client, telemetry) {
|
|
56713
|
+
async function login(client, telemetry, standalone = true) {
|
|
56714
56714
|
const tokens = await performDeviceCodeFlow(client);
|
|
56715
56715
|
if (!tokens) {
|
|
56716
56716
|
telemetry.trackState("error");
|
|
@@ -56744,7 +56744,8 @@ async function login(client, telemetry) {
|
|
|
56744
56744
|
client.persistAuthConfig();
|
|
56745
56745
|
client.writeToConfigFile();
|
|
56746
56746
|
output_manager_default.debug(`Saved credentials in "${humanizePath(client.getGlobalPathConfig())}"`);
|
|
56747
|
-
|
|
56747
|
+
if (standalone) {
|
|
56748
|
+
output_manager_default.print(`
|
|
56748
56749
|
${import_chalk10.default.cyan("Congratulations!")} You are now signed in.
|
|
56749
56750
|
|
|
56750
56751
|
To deploy something, run ${getCommandName()}.
|
|
@@ -56752,6 +56753,9 @@ async function login(client, telemetry) {
|
|
|
56752
56753
|
${emoji("tip")} To deploy every commit automatically,
|
|
56753
56754
|
connect a Git Repository (${import_chalk10.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
|
|
56754
56755
|
`);
|
|
56756
|
+
} else {
|
|
56757
|
+
output_manager_default.success("Logged in.");
|
|
56758
|
+
}
|
|
56755
56759
|
telemetry.trackState("success");
|
|
56756
56760
|
return 0;
|
|
56757
56761
|
}
|
|
@@ -58946,7 +58950,7 @@ function createDetectEntrypoint(projectRoot) {
|
|
|
58946
58950
|
};
|
|
58947
58951
|
}
|
|
58948
58952
|
async function loadBuilderDetectEntrypoint(name, projectRoot) {
|
|
58949
|
-
const { importBuilders } = await import("./import-builders-
|
|
58953
|
+
const { importBuilders } = await import("./import-builders-6NCPTR6R.js");
|
|
58950
58954
|
const builders = await importBuilders(/* @__PURE__ */ new Set([name]), projectRoot);
|
|
58951
58955
|
const loaded = builders.get(name);
|
|
58952
58956
|
if (!loaded) {
|
|
@@ -59170,6 +59174,9 @@ var VERCEL_DIR_REPO = "repo.json";
|
|
|
59170
59174
|
function isOwnerLookupUnavailableLink(link) {
|
|
59171
59175
|
return "ownerLookupUnavailable" in link && link.ownerLookupUnavailable === true;
|
|
59172
59176
|
}
|
|
59177
|
+
function isRemoteLookupSkippedLink(link) {
|
|
59178
|
+
return "remoteLookupSkipped" in link && link.remoteLookupSkipped === true;
|
|
59179
|
+
}
|
|
59173
59180
|
function isOwnerLookupUnavailableError(error) {
|
|
59174
59181
|
return isAPIError(error) && error.status === 403 && error.code === "team_unauthorized";
|
|
59175
59182
|
}
|
|
@@ -59277,6 +59284,7 @@ async function getProjectLinkFromRepoLink(client, path, projectName, projectName
|
|
|
59277
59284
|
repoRoot: repoLink.rootPath,
|
|
59278
59285
|
orgId,
|
|
59279
59286
|
projectId: project.id,
|
|
59287
|
+
projectName: project.name,
|
|
59280
59288
|
projectRootDirectory: project.directory
|
|
59281
59289
|
};
|
|
59282
59290
|
}
|
|
@@ -59408,6 +59416,36 @@ async function getLinkedProject(client, options = {}) {
|
|
|
59408
59416
|
if (!link) {
|
|
59409
59417
|
return { status: "not_linked", org: null, project: null, orgId };
|
|
59410
59418
|
}
|
|
59419
|
+
if (options.skipRemoteLookup && link.projectName) {
|
|
59420
|
+
const settings = link.settings;
|
|
59421
|
+
const localRootDirectory = link.projectRootDirectory ?? settings?.rootDirectory ?? null;
|
|
59422
|
+
const rootDirectory = localRootDirectory === "." ? null : localRootDirectory;
|
|
59423
|
+
const project2 = {
|
|
59424
|
+
...settings,
|
|
59425
|
+
id: link.projectId,
|
|
59426
|
+
accountId: link.orgId,
|
|
59427
|
+
name: link.projectName,
|
|
59428
|
+
createdAt: settings?.createdAt ?? 0,
|
|
59429
|
+
updatedAt: settings?.updatedAt ?? settings?.createdAt ?? 0,
|
|
59430
|
+
rootDirectory
|
|
59431
|
+
};
|
|
59432
|
+
const localProjectLink = {
|
|
59433
|
+
status: "linked",
|
|
59434
|
+
org: {
|
|
59435
|
+
type: link.orgId.startsWith("team_") ? "team" : "user",
|
|
59436
|
+
id: link.orgId,
|
|
59437
|
+
slug: ""
|
|
59438
|
+
},
|
|
59439
|
+
project: project2,
|
|
59440
|
+
repoRoot: link.repoRoot,
|
|
59441
|
+
remoteLookupSkipped: true
|
|
59442
|
+
};
|
|
59443
|
+
return {
|
|
59444
|
+
...localProjectLink,
|
|
59445
|
+
projectRootDirectory: link.projectRootDirectory,
|
|
59446
|
+
orgId: link.orgId
|
|
59447
|
+
};
|
|
59448
|
+
}
|
|
59411
59449
|
output_manager_default.spinner("Retrieving project\u2026", 1e3);
|
|
59412
59450
|
let org = null;
|
|
59413
59451
|
let project = null;
|
|
@@ -59976,6 +60014,7 @@ export {
|
|
|
59976
60014
|
ALIGNED_LABEL_WIDTH,
|
|
59977
60015
|
printAlignedLabel,
|
|
59978
60016
|
selectOrg,
|
|
60017
|
+
addToGitIgnore,
|
|
59979
60018
|
createProject,
|
|
59980
60019
|
require_frameworks,
|
|
59981
60020
|
require_brace_expansion,
|
|
@@ -59989,6 +60028,7 @@ export {
|
|
|
59989
60028
|
printRemoteUrls,
|
|
59990
60029
|
selectAndParseRemoteUrl,
|
|
59991
60030
|
checkExistsAndConnect,
|
|
60031
|
+
getRepoLink,
|
|
59992
60032
|
resolveGitRemote,
|
|
59993
60033
|
fetchProjectsForRepoUrl,
|
|
59994
60034
|
linkRepoProject,
|
|
@@ -60032,6 +60072,7 @@ export {
|
|
|
60032
60072
|
VERCEL_DIR_README,
|
|
60033
60073
|
VERCEL_DIR_PROJECT,
|
|
60034
60074
|
isOwnerLookupUnavailableLink,
|
|
60075
|
+
isRemoteLookupSkippedLink,
|
|
60035
60076
|
getVercelDirectory,
|
|
60036
60077
|
getProjectLink,
|
|
60037
60078
|
getLinkFromDir,
|