vercel 54.5.0 → 54.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{add-46BTOFC7.js → add-LTKUOIRH.js} +4 -4
- package/dist/chunks/{chunk-3ANW6BWX.js → chunk-2O23IWFZ.js} +13 -3
- package/dist/chunks/{chunk-SFQW4CWI.js → chunk-5OGU2MKL.js} +2 -2
- package/dist/chunks/{chunk-JRHPTYRV.js → chunk-6DYBMAPE.js} +1 -1
- package/dist/chunks/{chunk-AOAIT4LV.js → chunk-ACQYPB26.js} +8 -4
- package/dist/chunks/{chunk-2G6J2HUB.js → chunk-APRQ4WOM.js} +1 -1
- package/dist/chunks/{chunk-N4LMPL2S.js → chunk-B7343AJ4.js} +2 -2
- package/dist/chunks/{chunk-W5RSXTBT.js → chunk-CWRL2B64.js} +78 -3
- package/dist/chunks/{chunk-5ARQ77PP.js → chunk-EARP53GN.js} +1 -1
- package/dist/chunks/{chunk-Z5MIIHYS.js → chunk-EP42IGC6.js} +4 -4
- package/dist/chunks/{chunk-C7WEABOB.js → chunk-EQMRA3RA.js} +1 -1
- package/dist/chunks/{chunk-T7VHC2DK.js → chunk-HQQ5VXCJ.js} +1 -1
- package/dist/chunks/{chunk-O7SISYLM.js → chunk-J6V7CB2T.js} +3 -3
- package/dist/chunks/{chunk-3H6ATFDE.js → chunk-NJ3JN4BJ.js} +2 -2
- package/dist/chunks/{chunk-R57BN3NG.js → chunk-NN5CMMC2.js} +1 -1
- package/dist/chunks/{chunk-K6HMCETK.js → chunk-OG2W73UH.js} +6 -2
- package/dist/chunks/{chunk-P46TZBIB.js → chunk-P66MJG2R.js} +1 -1
- package/dist/chunks/{chunk-KUSGUF2H.js → chunk-R2C4MTKL.js} +7 -7
- package/dist/chunks/{chunk-CJLBNVOS.js → chunk-UG5OAYHF.js} +1 -1
- package/dist/chunks/{chunk-UHKS7F5B.js → chunk-XEYTEMBL.js} +12 -3
- package/dist/chunks/{compile-vercel-config-IGS2TTEP.js → compile-vercel-config-JLD22EQF.js} +1 -1
- package/dist/chunks/{delete-EILO23N4.js → delete-ZJ65LJPR.js} +2 -2
- package/dist/chunks/{disable-6U4YJ6X2.js → disable-55BFUWA3.js} +2 -2
- package/dist/chunks/{discard-AOB3DOVR.js → discard-GCFLECLA.js} +2 -2
- package/dist/chunks/{edit-QWXEDZ7C.js → edit-2UXOWJYI.js} +3 -3
- package/dist/chunks/{enable-OOYZYWHO.js → enable-V2PVTE7B.js} +2 -2
- package/dist/chunks/{export-TCODS24A.js → export-6PJONV3Q.js} +2 -2
- package/dist/chunks/{inspect-XPF7BVFT.js → inspect-UAT7WWFU.js} +3 -3
- package/dist/chunks/{list-23UC6BLI.js → list-3TXV2JDY.js} +3 -3
- package/dist/chunks/{list-G4RXHND6.js → list-PHUNLXFO.js} +2 -2
- package/dist/chunks/{ls-N2ZJCAX4.js → ls-DL6Y2ECG.js} +4 -4
- package/dist/chunks/{publish-CRI5AIVR.js → publish-WE5FWUGS.js} +2 -2
- package/dist/chunks/{query-VZWNY434.js → query-R5DCNK4W.js} +2 -2
- package/dist/chunks/{reorder-QGRIL3X5.js → reorder-Y7KUZIBT.js} +2 -2
- package/dist/chunks/{restore-2BNDRBBI.js → restore-X4PYKEPU.js} +2 -2
- package/dist/chunks/{rm-XBWBYUZ5.js → rm-A4HRBNZ5.js} +4 -4
- package/dist/chunks/{rule-inspect-2Y4KL333.js → rule-inspect-ZC2GT4MO.js} +4 -4
- package/dist/chunks/{rules-OXB4XIRQ.js → rules-RMGHA3LC.js} +6 -6
- package/dist/chunks/{schema-E5XSUUO4.js → schema-PG3P2NP4.js} +2 -2
- package/dist/chunks/{update-I7WT4SY6.js → update-IIPJIUMA.js} +4 -4
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +10 -10
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +7 -7
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +31 -31
- package/dist/index.js +11 -10
- package/dist/vc.js +2 -1
- package/dist/version.mjs +1 -1
- package/package.json +22 -22
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-NN5CMMC2.js";
|
|
13
|
+
import "./chunk-5OGU2MKL.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-L6Q2EQPI.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-P66MJG2R.js";
|
|
25
|
+
import "./chunk-CWRL2B64.js";
|
|
26
26
|
import "./chunk-4CIXZOP4.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-76ZNZKIN.js";
|
|
13
13
|
import {
|
|
14
14
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HQQ5VXCJ.js";
|
|
16
16
|
import {
|
|
17
17
|
autoInstallVercelPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EQMRA3RA.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
useKeypress,
|
|
40
40
|
usePrefix,
|
|
41
41
|
useState
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CWRL2B64.js";
|
|
43
43
|
import {
|
|
44
44
|
require_load_json_file
|
|
45
45
|
} from "./chunk-4CIXZOP4.js";
|
|
@@ -2539,9 +2539,19 @@ ${error.stack}`);
|
|
|
2539
2539
|
writeToConfigFile(this.config);
|
|
2540
2540
|
}
|
|
2541
2541
|
updateAuthConfig(authConfig) {
|
|
2542
|
+
if (authConfig.token && authConfig.token !== this.authConfig.token) {
|
|
2543
|
+
this.user = void 0;
|
|
2544
|
+
this.userPromise = void 0;
|
|
2545
|
+
this.teams = void 0;
|
|
2546
|
+
this.teamsPromise = void 0;
|
|
2547
|
+
}
|
|
2542
2548
|
this.authConfig = { ...this.authConfig, ...authConfig };
|
|
2543
2549
|
}
|
|
2544
2550
|
emptyAuthConfig() {
|
|
2551
|
+
this.user = void 0;
|
|
2552
|
+
this.userPromise = void 0;
|
|
2553
|
+
this.teams = void 0;
|
|
2554
|
+
this.teamsPromise = void 0;
|
|
2545
2555
|
this.authConfig = this.authConfig.skipWrite ? { skipWrite: true } : {};
|
|
2546
2556
|
}
|
|
2547
2557
|
writeToAuthConfigFile() {
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-L6Q2EQPI.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P66MJG2R.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CWRL2B64.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -6,18 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand,
|
|
9
|
-
isGlobal
|
|
10
|
-
|
|
9
|
+
isGlobal,
|
|
10
|
+
isNativeBinaryInstall
|
|
11
|
+
} from "./chunk-XEYTEMBL.js";
|
|
11
12
|
import {
|
|
12
13
|
getGlobalPathConfig,
|
|
13
14
|
login,
|
|
14
15
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2O23IWFZ.js";
|
|
16
17
|
import {
|
|
17
18
|
apiCommand,
|
|
18
19
|
listSubcommand2 as listSubcommand,
|
|
19
20
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NJ3JN4BJ.js";
|
|
21
22
|
import {
|
|
22
23
|
help
|
|
23
24
|
} from "./chunk-TTOZFGDX.js";
|
|
@@ -2626,6 +2627,9 @@ function setAutoUpdate(client, enabled) {
|
|
|
2626
2627
|
writeToConfigFile(client.config);
|
|
2627
2628
|
}
|
|
2628
2629
|
async function canAutoUpdate(client, exitCode, command) {
|
|
2630
|
+
if (isNativeBinaryInstall()) {
|
|
2631
|
+
return false;
|
|
2632
|
+
}
|
|
2629
2633
|
if (!isAutoUpdateEnabled(client.config)) {
|
|
2630
2634
|
return false;
|
|
2631
2635
|
}
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J6V7CB2T.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CWRL2B64.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|
|
@@ -36631,7 +36631,7 @@ var require_package = __commonJS({
|
|
|
36631
36631
|
"../client/package.json"(exports, module) {
|
|
36632
36632
|
module.exports = {
|
|
36633
36633
|
name: "@vercel/client",
|
|
36634
|
-
version: "17.5.
|
|
36634
|
+
version: "17.5.5",
|
|
36635
36635
|
main: "dist/index.js",
|
|
36636
36636
|
typings: "dist/index.d.ts",
|
|
36637
36637
|
homepage: "https://vercel.com",
|
|
@@ -50078,6 +50078,18 @@ async function getProjectByNameOrId(client, projectNameOrId, accountId, includeR
|
|
|
50078
50078
|
|
|
50079
50079
|
// src/util/get-user.ts
|
|
50080
50080
|
async function getUser(client) {
|
|
50081
|
+
if (client.user) {
|
|
50082
|
+
return client.user;
|
|
50083
|
+
}
|
|
50084
|
+
if (client.userPromise) {
|
|
50085
|
+
return client.userPromise;
|
|
50086
|
+
}
|
|
50087
|
+
client.userPromise = fetchUser(client).finally(() => {
|
|
50088
|
+
client.userPromise = void 0;
|
|
50089
|
+
});
|
|
50090
|
+
return client.userPromise;
|
|
50091
|
+
}
|
|
50092
|
+
async function fetchUser(client) {
|
|
50081
50093
|
try {
|
|
50082
50094
|
const res = await client.fetch("/v2/user", {
|
|
50083
50095
|
useCurrentTeam: false
|
|
@@ -50094,9 +50106,12 @@ async function getUser(client) {
|
|
|
50094
50106
|
}
|
|
50095
50107
|
}
|
|
50096
50108
|
client.telemetryEventStore.updateUserId(res.user.id);
|
|
50109
|
+
client.user = res.user;
|
|
50097
50110
|
return res.user;
|
|
50098
50111
|
} catch (error) {
|
|
50099
50112
|
if (error instanceof APIError && error.status === 403) {
|
|
50113
|
+
client.user = void 0;
|
|
50114
|
+
client.userPromise = void 0;
|
|
50100
50115
|
if (client.authConfig.userId) {
|
|
50101
50116
|
client.updateAuthConfig({ userId: void 0 });
|
|
50102
50117
|
try {
|
|
@@ -51528,6 +51543,28 @@ async function getOriginUrl(configPath) {
|
|
|
51528
51543
|
// src/util/teams/get-teams.ts
|
|
51529
51544
|
import { URLSearchParams as URLSearchParams2 } from "url";
|
|
51530
51545
|
async function getTeams(client, opts = {}) {
|
|
51546
|
+
const { apiVersion = 1 } = opts;
|
|
51547
|
+
if (apiVersion === 1) {
|
|
51548
|
+
if (client.teams) {
|
|
51549
|
+
return client.teams;
|
|
51550
|
+
}
|
|
51551
|
+
if (client.teamsPromise) {
|
|
51552
|
+
return client.teamsPromise;
|
|
51553
|
+
}
|
|
51554
|
+
client.teamsPromise = fetchTeams(client, opts).then((result) => {
|
|
51555
|
+
const teams = Array.isArray(result) ? result : result.teams;
|
|
51556
|
+
client.teams = teams;
|
|
51557
|
+
return teams;
|
|
51558
|
+
});
|
|
51559
|
+
try {
|
|
51560
|
+
return await client.teamsPromise;
|
|
51561
|
+
} finally {
|
|
51562
|
+
client.teamsPromise = void 0;
|
|
51563
|
+
}
|
|
51564
|
+
}
|
|
51565
|
+
return fetchTeams(client, opts);
|
|
51566
|
+
}
|
|
51567
|
+
async function fetchTeams(client, opts = {}) {
|
|
51531
51568
|
const { apiVersion = 1 } = opts;
|
|
51532
51569
|
let query = "";
|
|
51533
51570
|
if (opts.apiVersion === 2) {
|
|
@@ -51547,7 +51584,11 @@ async function getTeams(client, opts = {}) {
|
|
|
51547
51584
|
}
|
|
51548
51585
|
);
|
|
51549
51586
|
if (apiVersion === 1) {
|
|
51550
|
-
|
|
51587
|
+
const teams = body.teams || [];
|
|
51588
|
+
for (const team of teams) {
|
|
51589
|
+
teamCache.set(team.id, team);
|
|
51590
|
+
}
|
|
51591
|
+
return teams;
|
|
51551
51592
|
}
|
|
51552
51593
|
return body;
|
|
51553
51594
|
} catch (error) {
|
|
@@ -51583,6 +51624,40 @@ async function selectOrg(client, question, autoConfirm) {
|
|
|
51583
51624
|
const {
|
|
51584
51625
|
config: { currentTeam }
|
|
51585
51626
|
} = client;
|
|
51627
|
+
if (autoConfirm && !client.nonInteractive) {
|
|
51628
|
+
if (currentTeam) {
|
|
51629
|
+
output_manager_default.spinner("Loading team\u2026", 1e3);
|
|
51630
|
+
try {
|
|
51631
|
+
const team = await getTeamById(client, currentTeam);
|
|
51632
|
+
return { type: "team", id: team.id, slug: team.slug };
|
|
51633
|
+
} catch (err) {
|
|
51634
|
+
output_manager_default.debug(`Unable to load current team directly: ${err}`);
|
|
51635
|
+
} finally {
|
|
51636
|
+
output_manager_default.stopSpinner();
|
|
51637
|
+
}
|
|
51638
|
+
}
|
|
51639
|
+
output_manager_default.spinner("Loading user\u2026", 1e3);
|
|
51640
|
+
let user2;
|
|
51641
|
+
try {
|
|
51642
|
+
user2 = await getUser(client);
|
|
51643
|
+
} finally {
|
|
51644
|
+
output_manager_default.stopSpinner();
|
|
51645
|
+
}
|
|
51646
|
+
if (user2.version !== "northstar") {
|
|
51647
|
+
return { type: "user", id: user2.id, slug: user2.username };
|
|
51648
|
+
}
|
|
51649
|
+
if (user2.defaultTeamId) {
|
|
51650
|
+
output_manager_default.spinner("Loading team\u2026", 1e3);
|
|
51651
|
+
try {
|
|
51652
|
+
const team = await getTeamById(client, user2.defaultTeamId);
|
|
51653
|
+
return { type: "team", id: team.id, slug: team.slug };
|
|
51654
|
+
} catch (err) {
|
|
51655
|
+
output_manager_default.debug(`Unable to load default team directly: ${err}`);
|
|
51656
|
+
} finally {
|
|
51657
|
+
output_manager_default.stopSpinner();
|
|
51658
|
+
}
|
|
51659
|
+
}
|
|
51660
|
+
}
|
|
51586
51661
|
output_manager_default.spinner("Loading teams\u2026", 1e3);
|
|
51587
51662
|
let user;
|
|
51588
51663
|
let teams;
|
|
@@ -55030,6 +55105,7 @@ export {
|
|
|
55030
55105
|
envCommand,
|
|
55031
55106
|
param,
|
|
55032
55107
|
getUser,
|
|
55108
|
+
getTeamById,
|
|
55033
55109
|
getTeams,
|
|
55034
55110
|
isBackspaceKey,
|
|
55035
55111
|
isEnterKey,
|
|
@@ -55052,7 +55128,6 @@ export {
|
|
|
55052
55128
|
require_fast_deep_equal,
|
|
55053
55129
|
require_ajv,
|
|
55054
55130
|
getProjectByNameOrId,
|
|
55055
|
-
getTeamById,
|
|
55056
55131
|
isDirectory,
|
|
55057
55132
|
require_pluralize,
|
|
55058
55133
|
require_slugify,
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-APRQ4WOM.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B7343AJ4.js";
|
|
13
13
|
import {
|
|
14
14
|
autoInstallVercelPlugin,
|
|
15
15
|
pullCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EQMRA3RA.js";
|
|
17
17
|
import {
|
|
18
18
|
help
|
|
19
19
|
} from "./chunk-TTOZFGDX.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
envPullCommandLogic,
|
|
24
24
|
humanizePath,
|
|
25
25
|
parseTarget
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CWRL2B64.js";
|
|
27
27
|
import {
|
|
28
28
|
TelemetryClient
|
|
29
29
|
} from "./chunk-4CIXZOP4.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-L6Q2EQPI.js";
|
|
11
11
|
import {
|
|
12
12
|
getLocalPathConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HQQ5VXCJ.js";
|
|
14
14
|
import {
|
|
15
15
|
getScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-P66MJG2R.js";
|
|
17
17
|
import {
|
|
18
18
|
VERCEL_DIR_PROJECT,
|
|
19
19
|
VERCEL_DIR_README,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
selectAndParseRemoteUrl,
|
|
48
48
|
selectOrg,
|
|
49
49
|
writeServicesConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CWRL2B64.js";
|
|
51
51
|
import {
|
|
52
52
|
buildCommandWithGlobalFlags,
|
|
53
53
|
outputAgentError,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EQMRA3RA.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CWRL2B64.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch,
|
|
20
20
|
require_pluralize
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CWRL2B64.js";
|
|
22
22
|
import {
|
|
23
23
|
CantParseJSONFile,
|
|
24
24
|
cmd,
|
|
@@ -11226,7 +11226,8 @@ import {
|
|
|
11226
11226
|
getLambdaOptionsFromFunction,
|
|
11227
11227
|
normalizePath,
|
|
11228
11228
|
isBackendBuilder,
|
|
11229
|
-
isExperimentalBackendsEnabled
|
|
11229
|
+
isExperimentalBackendsEnabled,
|
|
11230
|
+
isExternalSymlink
|
|
11230
11231
|
} from "@vercel/build-utils";
|
|
11231
11232
|
|
|
11232
11233
|
// src/util/build/merge.ts
|
|
@@ -11905,6 +11906,9 @@ function filesWithoutFsRefs(files, repoRootPath, sharedDest, standalone) {
|
|
|
11905
11906
|
if (!filePathMap)
|
|
11906
11907
|
filePathMap = {};
|
|
11907
11908
|
if (standalone && sharedDest) {
|
|
11909
|
+
if (isExternalSymlink(file)) {
|
|
11910
|
+
continue;
|
|
11911
|
+
}
|
|
11908
11912
|
shared[path2] = file;
|
|
11909
11913
|
filePathMap[normalizePath(path2)] = normalizePath(
|
|
11910
11914
|
relative2(repoRootPath, join4(sharedDest, path2))
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
printIndications,
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2O23IWFZ.js";
|
|
13
13
|
import {
|
|
14
14
|
suggestNextCommands
|
|
15
15
|
} from "./chunk-LOS7HHU3.js";
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
} from "./chunk-NYJXGEIR.js";
|
|
20
20
|
import {
|
|
21
21
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NJ3JN4BJ.js";
|
|
23
23
|
import {
|
|
24
24
|
ua_default
|
|
25
25
|
} from "./chunk-76ZNZKIN.js";
|
|
26
26
|
import {
|
|
27
27
|
showPluginTipIfNeeded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EQMRA3RA.js";
|
|
29
29
|
import {
|
|
30
30
|
getScope
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-P66MJG2R.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectByNameOrId,
|
|
34
34
|
param,
|
|
35
35
|
printAlignedLabel,
|
|
36
36
|
require_dist as require_dist3,
|
|
37
37
|
require_pluralize
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CWRL2B64.js";
|
|
39
39
|
import {
|
|
40
40
|
require_ms,
|
|
41
41
|
stamp_default
|
|
@@ -1584,7 +1584,7 @@ var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
|
1584
1584
|
import { URLSearchParams } from "url";
|
|
1585
1585
|
async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, findOpts }, abortController) {
|
|
1586
1586
|
const { log, debug } = output_manager_default;
|
|
1587
|
-
const
|
|
1587
|
+
const scope = mode === "deploy" ? await getScope(client) : null;
|
|
1588
1588
|
let o = 0;
|
|
1589
1589
|
await (0, import_async_retry.default)(
|
|
1590
1590
|
async (bail, attemptNumber) => {
|
|
@@ -1620,7 +1620,7 @@ async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, fi
|
|
|
1620
1620
|
try {
|
|
1621
1621
|
const json = await getDeployment(
|
|
1622
1622
|
client,
|
|
1623
|
-
contextName,
|
|
1623
|
+
scope.contextName,
|
|
1624
1624
|
urlOrDeploymentId
|
|
1625
1625
|
);
|
|
1626
1626
|
if (json.readyState === "READY") {
|
|
@@ -6,7 +6,7 @@ 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-CWRL2B64.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
12
|
} from "./chunk-UGXBNJMO.js";
|
|
@@ -14,10 +14,16 @@ import {
|
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-TZ2YI2VH.js";
|
|
16
16
|
|
|
17
|
+
// src/util/native-install.ts
|
|
18
|
+
function isNativeBinaryInstall() {
|
|
19
|
+
return process.env.VERCEL_VC_NATIVE === "1";
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
// src/util/get-update-command.ts
|
|
18
23
|
var import_fs_extra = __toESM(require_lib(), 1);
|
|
19
24
|
import { sep, dirname, join, resolve } from "path";
|
|
20
25
|
import { scanParentDirs } from "@vercel/build-utils";
|
|
26
|
+
var nativePackageName = "@vercel/vc-native";
|
|
21
27
|
async function getConfigPrefix() {
|
|
22
28
|
const paths = [
|
|
23
29
|
process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG,
|
|
@@ -65,7 +71,8 @@ async function isGlobal() {
|
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
async function getUpdateCommand() {
|
|
68
|
-
const
|
|
74
|
+
const nativeInstall = isNativeBinaryInstall();
|
|
75
|
+
const pkgAndVersion = `${nativeInstall ? nativePackageName : packageName}@latest`;
|
|
69
76
|
const entrypoint = await (0, import_fs_extra.realpath)(process.argv[1]);
|
|
70
77
|
let { cliType, lockfilePath } = await scanParentDirs(
|
|
71
78
|
dirname(dirname(entrypoint))
|
|
@@ -82,10 +89,12 @@ async function getUpdateCommand() {
|
|
|
82
89
|
install = "i -g";
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
|
-
|
|
92
|
+
const force = nativeInstall && cliType === "npm" ? " --force" : "";
|
|
93
|
+
return `${cliType} ${install} ${pkgAndVersion}${force}`;
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
export {
|
|
97
|
+
isNativeBinaryInstall,
|
|
89
98
|
isGlobal,
|
|
90
99
|
getUpdateCommand
|
|
91
100
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseSubcommandArgs,
|
|
16
16
|
resolveRoutes,
|
|
17
17
|
withGlobalFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EARP53GN.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteSubcommand
|
|
21
21
|
} from "./chunk-5EKBCYHA.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
AGENT_REASON,
|
|
24
24
|
AGENT_STATUS
|
|
25
25
|
} from "./chunk-L6Q2EQPI.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CWRL2B64.js";
|
|
27
27
|
import "./chunk-4CIXZOP4.js";
|
|
28
28
|
import {
|
|
29
29
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EARP53GN.js";
|
|
21
21
|
import {
|
|
22
22
|
disableSubcommand
|
|
23
23
|
} from "./chunk-5EKBCYHA.js";
|
|
24
24
|
import "./chunk-L6Q2EQPI.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-CWRL2B64.js";
|
|
26
26
|
import "./chunk-4CIXZOP4.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EARP53GN.js";
|
|
21
21
|
import {
|
|
22
22
|
discardSubcommand
|
|
23
23
|
} from "./chunk-5EKBCYHA.js";
|
|
24
24
|
import "./chunk-L6Q2EQPI.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-CWRL2B64.js";
|
|
26
26
|
import "./chunk-4CIXZOP4.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printRouteConfig,
|
|
20
20
|
routingRuleToCurrentRoute,
|
|
21
21
|
runInteractiveEditLoop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UG5OAYHF.js";
|
|
23
23
|
import {
|
|
24
24
|
getRouteVersions
|
|
25
25
|
} from "./chunk-AHU7WNL2.js";
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
resolveRoute,
|
|
32
32
|
shellQuoteRouteIdentifierForSuggestion,
|
|
33
33
|
withGlobalFlags
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EARP53GN.js";
|
|
35
35
|
import {
|
|
36
36
|
editSubcommand
|
|
37
37
|
} from "./chunk-5EKBCYHA.js";
|
|
38
38
|
import "./chunk-L6Q2EQPI.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-CWRL2B64.js";
|
|
40
40
|
import "./chunk-4CIXZOP4.js";
|
|
41
41
|
import {
|
|
42
42
|
outputAgentError
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EARP53GN.js";
|
|
21
21
|
import {
|
|
22
22
|
enableSubcommand
|
|
23
23
|
} from "./chunk-5EKBCYHA.js";
|
|
24
24
|
import "./chunk-L6Q2EQPI.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-CWRL2B64.js";
|
|
26
26
|
import "./chunk-4CIXZOP4.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getRoutes,
|
|
10
10
|
parseSubcommandArgs,
|
|
11
11
|
withGlobalFlags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EARP53GN.js";
|
|
13
13
|
import {
|
|
14
14
|
exportSubcommand
|
|
15
15
|
} from "./chunk-5EKBCYHA.js";
|
|
16
16
|
import "./chunk-L6Q2EQPI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-CWRL2B64.js";
|
|
18
18
|
import "./chunk-4CIXZOP4.js";
|
|
19
19
|
import {
|
|
20
20
|
outputAgentError
|