vercel 54.14.2 → 54.15.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-PKT6ULVJ.js → add-6XHROCMP.js} +5 -5
- package/dist/chunks/{chunk-3BR246Y6.js → chunk-3RIVJWW5.js} +2 -11
- package/dist/chunks/{chunk-J7BMPRCU.js → chunk-574PHXNT.js} +9 -4
- package/dist/chunks/{chunk-FLW73SZ3.js → chunk-6A62YUBE.js} +3 -3
- package/dist/chunks/{chunk-G3NXHUFT.js → chunk-6SL223IW.js} +1 -1
- package/dist/chunks/{chunk-2ZSXQQXI.js → chunk-6TPH3ZBU.js} +10 -19
- package/dist/chunks/{chunk-2XEEOHHH.js → chunk-AG6TBL6C.js} +1 -1
- package/dist/chunks/chunk-BRQ6PX3U.js +593 -0
- package/dist/chunks/{chunk-O7RJHL34.js → chunk-CENOYXK3.js} +583 -11
- package/dist/chunks/{chunk-YLGMXYFG.js → chunk-DCN3SOR6.js} +2 -2
- package/dist/chunks/{chunk-OHIZ4SVU.js → chunk-EAEEBPMD.js} +15 -3
- package/dist/chunks/{chunk-2HN6DLIY.js → chunk-HSXUEJ4T.js} +1 -1
- package/dist/chunks/{chunk-SDZ5ICZL.js → chunk-LABX5FSJ.js} +1 -1
- package/dist/chunks/{chunk-JISJDGJF.js → chunk-LOPPFUV3.js} +2 -2
- package/dist/chunks/{chunk-O4V7CMVO.js → chunk-OEYKL4IY.js} +7 -5
- package/dist/chunks/{chunk-372SHB43.js → chunk-OQD4G5FW.js} +4 -4
- package/dist/chunks/{chunk-LJ5WXXG6.js → chunk-QH7WYDEP.js} +11 -0
- package/dist/chunks/{chunk-Z3X747P6.js → chunk-RHXSECUF.js} +206 -31
- package/dist/chunks/{chunk-LQR3CHMH.js → chunk-SFPJ3VR7.js} +421 -799
- package/dist/chunks/{chunk-FEYVO2US.js → chunk-TLVKY7WL.js} +90 -32
- package/dist/chunks/{chunk-4BFK3C7V.js → chunk-UZD3DM6V.js} +1 -1
- package/dist/chunks/{chunk-IPWWE7PB.js → chunk-WGH26RJV.js} +1 -1
- package/dist/chunks/{chunk-ILJH44MK.js → chunk-YE3C5CUX.js} +1 -1
- package/dist/chunks/{compile-vercel-config-3LV7J3IZ.js → compile-vercel-config-ATU3UBFK.js} +1 -1
- package/dist/chunks/{delete-GFW6Y6TZ.js → delete-WIN4UHQY.js} +3 -3
- package/dist/chunks/{disable-PGRAS2ZL.js → disable-24KUO3TS.js} +3 -3
- package/dist/chunks/{discard-S6N5Q4G5.js → discard-B6ATZCPD.js} +3 -3
- package/dist/chunks/{edit-TICKX4ZV.js → edit-DIYIVLFQ.js} +7 -7
- package/dist/chunks/{enable-L3BYWN6S.js → enable-BF7NKTV7.js} +3 -3
- package/dist/chunks/{export-NXS33U5T.js → export-HHONDN7V.js} +3 -3
- package/dist/chunks/{inspect-OOI5JN3Y.js → inspect-GSYKUMK5.js} +4 -4
- package/dist/chunks/{list-77WL6463.js → list-OSJGB5AE.js} +4 -4
- package/dist/chunks/{list-6EHRL2D4.js → list-PZ4DRWLO.js} +2 -2
- package/dist/chunks/{ls-PBSOEXFG.js → ls-QBCHGSIC.js} +5 -5
- package/dist/chunks/{publish-CU2THVYW.js → publish-QYPZQ66O.js} +3 -3
- package/dist/chunks/{query-HEATRYAK.js → query-BDMX4CF6.js} +3 -3
- package/dist/chunks/{reorder-IQVKSM3H.js → reorder-YDTGTTJB.js} +3 -3
- package/dist/chunks/{restore-RDEOBGAS.js → restore-LXO2ZBAF.js} +3 -3
- package/dist/chunks/{rm-MCSGTU4J.js → rm-3L7FVCDA.js} +5 -5
- package/dist/chunks/{rule-inspect-3YK2XSL3.js → rule-inspect-T57QBYJR.js} +5 -5
- package/dist/chunks/{rules-F4MRDDHM.js → rules-E5DTNMFG.js} +7 -7
- package/dist/chunks/{schema-65C5EBJ7.js → schema-VYVJ4GYP.js} +3 -3
- package/dist/chunks/{update-XB4WSRGY.js → update-LT3LZVEZ.js} +5 -5
- package/dist/commands/build/index.js +157 -101
- package/dist/commands/deploy/index.js +13 -12
- package/dist/commands/dev/index.js +70 -23
- package/dist/commands/env/index.js +8 -6
- package/dist/commands/link/index.js +9 -16
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +5371 -1618
- package/dist/index.js +9 -9
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../../chunks/chunk-2HSQ7YUK.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateCommand
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-WGH26RJV.js";
|
|
13
13
|
import {
|
|
14
14
|
highlight
|
|
15
15
|
} from "../../chunks/chunk-V5P25P7F.js";
|
|
@@ -26,23 +26,23 @@ import {
|
|
|
26
26
|
require_mime_types,
|
|
27
27
|
require_npa,
|
|
28
28
|
staticFiles
|
|
29
|
-
} from "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-3RIVJWW5.js";
|
|
30
30
|
import "../../chunks/chunk-IB5L4LKZ.js";
|
|
31
31
|
import {
|
|
32
32
|
pickOverrides
|
|
33
|
-
} from "../../chunks/chunk-
|
|
33
|
+
} from "../../chunks/chunk-AG6TBL6C.js";
|
|
34
34
|
import "../../chunks/chunk-YI3JV6GM.js";
|
|
35
35
|
import {
|
|
36
36
|
displayDetectedServices,
|
|
37
37
|
printProjectNotFoundError,
|
|
38
38
|
readConfig,
|
|
39
39
|
setupAndLink
|
|
40
|
-
} from "../../chunks/chunk-
|
|
41
|
-
import "../../chunks/chunk-
|
|
40
|
+
} from "../../chunks/chunk-OQD4G5FW.js";
|
|
41
|
+
import "../../chunks/chunk-QH7WYDEP.js";
|
|
42
42
|
import {
|
|
43
43
|
getLocalPathConfig
|
|
44
|
-
} from "../../chunks/chunk-
|
|
45
|
-
import "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-UZD3DM6V.js";
|
|
45
|
+
import "../../chunks/chunk-6SL223IW.js";
|
|
46
46
|
import {
|
|
47
47
|
help
|
|
48
48
|
} from "../../chunks/chunk-AWD3IGXU.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
resolveProjectCwd,
|
|
70
70
|
tryDetectServices,
|
|
71
71
|
validateConfig
|
|
72
|
-
} from "../../chunks/chunk-
|
|
72
|
+
} from "../../chunks/chunk-SFPJ3VR7.js";
|
|
73
73
|
import {
|
|
74
74
|
TelemetryClient
|
|
75
75
|
} from "../../chunks/chunk-HIYWSGI7.js";
|
|
@@ -17420,6 +17420,19 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
|
|
|
17420
17420
|
mapToEntrypoint.set(src, originalSrc);
|
|
17421
17421
|
}
|
|
17422
17422
|
}
|
|
17423
|
+
if (buildConfig.config?.framework === "go" && !fileList.includes(src)) {
|
|
17424
|
+
const originalSrc = src;
|
|
17425
|
+
const goEntrypoints = [
|
|
17426
|
+
"main.go",
|
|
17427
|
+
"cmd/api/main.go",
|
|
17428
|
+
"cmd/server/main.go"
|
|
17429
|
+
];
|
|
17430
|
+
const existing = goEntrypoints.filter((p) => fileList.includes(p));
|
|
17431
|
+
if (existing.length > 0) {
|
|
17432
|
+
src = existing[0];
|
|
17433
|
+
mapToEntrypoint.set(src, originalSrc);
|
|
17434
|
+
}
|
|
17435
|
+
}
|
|
17423
17436
|
const extensionless = devServer.getExtensionlessFile(src);
|
|
17424
17437
|
if (extensionless) {
|
|
17425
17438
|
mapToEntrypoint.set(extensionless, src);
|
|
@@ -20171,7 +20184,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20171
20184
|
return void 0;
|
|
20172
20185
|
}
|
|
20173
20186
|
async _getVercelConfig() {
|
|
20174
|
-
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-
|
|
20187
|
+
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-ATU3UBFK.js");
|
|
20175
20188
|
await compileVercelConfig(this.cwd);
|
|
20176
20189
|
const configPath = getLocalPathConfig(this.cwd);
|
|
20177
20190
|
const [
|
|
@@ -20549,32 +20562,66 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20549
20562
|
this.server.on("upgrade", async (req, socket, head) => {
|
|
20550
20563
|
await this.startPromise;
|
|
20551
20564
|
if (this.orchestrator) {
|
|
20552
|
-
const
|
|
20553
|
-
const service = this.orchestrator.getServiceForRoute(
|
|
20565
|
+
const pathname2 = url2.parse(req.url || "/").pathname || "/";
|
|
20566
|
+
const service = this.orchestrator.getServiceForRoute(pathname2);
|
|
20554
20567
|
if (service) {
|
|
20555
|
-
const
|
|
20568
|
+
const target = `http://${service.host}:${service.port}`;
|
|
20556
20569
|
output_manager_default.debug(
|
|
20557
|
-
`Detected "upgrade" event, proxying to service "${service.name}" at ${
|
|
20570
|
+
`Detected "upgrade" event, proxying to service "${service.name}" at ${target}`
|
|
20558
20571
|
);
|
|
20559
|
-
this.proxy.ws(req, socket, head, { target
|
|
20572
|
+
this.proxy.ws(req, socket, head, { target });
|
|
20560
20573
|
return;
|
|
20561
20574
|
}
|
|
20562
20575
|
output_manager_default.debug(
|
|
20563
|
-
`Detected "upgrade" event, but no matching service found for ${
|
|
20576
|
+
`Detected "upgrade" event, but no matching service found for ${pathname2}`
|
|
20564
20577
|
);
|
|
20565
20578
|
socket.destroy();
|
|
20566
20579
|
return;
|
|
20567
20580
|
}
|
|
20568
|
-
if (
|
|
20569
|
-
|
|
20570
|
-
|
|
20571
|
-
);
|
|
20572
|
-
socket.destroy();
|
|
20581
|
+
if (this.devProcessOrigin) {
|
|
20582
|
+
const target = this.devProcessOrigin;
|
|
20583
|
+
output_manager_default.debug(`Detected "upgrade" event, proxying to ${target}`);
|
|
20584
|
+
this.proxy.ws(req, socket, head, { target });
|
|
20573
20585
|
return;
|
|
20574
20586
|
}
|
|
20575
|
-
const
|
|
20576
|
-
|
|
20577
|
-
|
|
20587
|
+
const pathname = url2.parse(req.url || "/").pathname || "/";
|
|
20588
|
+
for (const match of this.buildMatches.values()) {
|
|
20589
|
+
const { builder } = match.builderWithPkg;
|
|
20590
|
+
if ((builder.version === 3 || builder.version === -1) && typeof builder.startDevServer === "function") {
|
|
20591
|
+
try {
|
|
20592
|
+
const result = await builder.startDevServer({
|
|
20593
|
+
files: this.files,
|
|
20594
|
+
entrypoint: match.entrypoint,
|
|
20595
|
+
workPath: this.cwd,
|
|
20596
|
+
config: match.config || {},
|
|
20597
|
+
repoRootPath: this.repoRoot,
|
|
20598
|
+
meta: {
|
|
20599
|
+
isDev: true,
|
|
20600
|
+
requestPath: pathname,
|
|
20601
|
+
devCacheDir: this.devCacheDir,
|
|
20602
|
+
env: { ...this.envConfigs.runEnv },
|
|
20603
|
+
buildEnv: { ...this.envConfigs.buildEnv }
|
|
20604
|
+
}
|
|
20605
|
+
});
|
|
20606
|
+
if (result) {
|
|
20607
|
+
const { port, pid, shutdown } = result;
|
|
20608
|
+
this.shutdownCallbacks.set(pid, shutdown);
|
|
20609
|
+
const target = `http://127.0.0.1:${port}`;
|
|
20610
|
+
output_manager_default.debug(
|
|
20611
|
+
`Detected "upgrade" event, proxying to builder dev server at ${target}`
|
|
20612
|
+
);
|
|
20613
|
+
this.proxy.ws(req, socket, head, { target });
|
|
20614
|
+
return;
|
|
20615
|
+
}
|
|
20616
|
+
} catch (err) {
|
|
20617
|
+
output_manager_default.debug(`Failed to start dev server for upgrade: ${err}`);
|
|
20618
|
+
}
|
|
20619
|
+
}
|
|
20620
|
+
}
|
|
20621
|
+
output_manager_default.debug(
|
|
20622
|
+
`Detected "upgrade" event, but no backend available for ${pathname}`
|
|
20623
|
+
);
|
|
20624
|
+
socket.destroy();
|
|
20578
20625
|
});
|
|
20579
20626
|
await devCommandPromise;
|
|
20580
20627
|
if (!this.orchestrator?.hasServices()) {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
formatEnvironment,
|
|
22
22
|
validateLsArgs
|
|
23
|
-
} from "../../chunks/chunk-
|
|
23
|
+
} from "../../chunks/chunk-HSXUEJ4T.js";
|
|
24
24
|
import {
|
|
25
25
|
validateJsonOutput
|
|
26
26
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
30
30
|
import {
|
|
31
31
|
getCommandAliases
|
|
32
|
-
} from "../../chunks/chunk-
|
|
33
|
-
import "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-CENOYXK3.js";
|
|
33
|
+
import "../../chunks/chunk-YE3C5CUX.js";
|
|
34
34
|
import "../../chunks/chunk-IB56QKCM.js";
|
|
35
35
|
import "../../chunks/chunk-DPS62LHL.js";
|
|
36
36
|
import "../../chunks/chunk-SGPBULVT.js";
|
|
@@ -40,18 +40,20 @@ import "../../chunks/chunk-IJJOI63T.js";
|
|
|
40
40
|
import {
|
|
41
41
|
require_execa
|
|
42
42
|
} from "../../chunks/chunk-YI3JV6GM.js";
|
|
43
|
+
import {
|
|
44
|
+
autoInstallVercelPlugin
|
|
45
|
+
} from "../../chunks/chunk-BRQ6PX3U.js";
|
|
43
46
|
import {
|
|
44
47
|
stamp_default
|
|
45
48
|
} from "../../chunks/chunk-64IF634X.js";
|
|
46
49
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
47
|
-
import "../../chunks/chunk-
|
|
50
|
+
import "../../chunks/chunk-LABX5FSJ.js";
|
|
48
51
|
import {
|
|
49
52
|
help
|
|
50
53
|
} from "../../chunks/chunk-AWD3IGXU.js";
|
|
51
54
|
import {
|
|
52
55
|
STANDARD_ENVIRONMENTS,
|
|
53
56
|
addSubcommand,
|
|
54
|
-
autoInstallVercelPlugin,
|
|
55
57
|
envCommand,
|
|
56
58
|
envTargetChoices,
|
|
57
59
|
formatProject,
|
|
@@ -70,7 +72,7 @@ import {
|
|
|
70
72
|
require_frameworks,
|
|
71
73
|
runSubcommand,
|
|
72
74
|
updateSubcommand
|
|
73
|
-
} from "../../chunks/chunk-
|
|
75
|
+
} from "../../chunks/chunk-SFPJ3VR7.js";
|
|
74
76
|
import {
|
|
75
77
|
TelemetryClient,
|
|
76
78
|
require_dist as require_dist2
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
addSubcommand7 as addSubcommand,
|
|
12
12
|
getCommandAliases,
|
|
13
13
|
linkCommand
|
|
14
|
-
} from "../../chunks/chunk-
|
|
15
|
-
import "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-CENOYXK3.js";
|
|
15
|
+
import "../../chunks/chunk-YE3C5CUX.js";
|
|
16
16
|
import "../../chunks/chunk-IB56QKCM.js";
|
|
17
17
|
import "../../chunks/chunk-DPS62LHL.js";
|
|
18
18
|
import "../../chunks/chunk-SGPBULVT.js";
|
|
@@ -21,23 +21,22 @@ import "../../chunks/chunk-56AJHIQC.js";
|
|
|
21
21
|
import "../../chunks/chunk-IJJOI63T.js";
|
|
22
22
|
import {
|
|
23
23
|
ensureLink
|
|
24
|
-
} from "../../chunks/chunk-
|
|
25
|
-
import "../../chunks/chunk-
|
|
26
|
-
import "../../chunks/chunk-
|
|
27
|
-
import "../../chunks/chunk-
|
|
28
|
-
import "../../chunks/chunk-
|
|
24
|
+
} from "../../chunks/chunk-DCN3SOR6.js";
|
|
25
|
+
import "../../chunks/chunk-OQD4G5FW.js";
|
|
26
|
+
import "../../chunks/chunk-QH7WYDEP.js";
|
|
27
|
+
import "../../chunks/chunk-UZD3DM6V.js";
|
|
28
|
+
import "../../chunks/chunk-LABX5FSJ.js";
|
|
29
29
|
import {
|
|
30
30
|
detectExplicitScope,
|
|
31
31
|
getScope
|
|
32
|
-
} from "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-6SL223IW.js";
|
|
33
33
|
import {
|
|
34
34
|
help
|
|
35
35
|
} from "../../chunks/chunk-AWD3IGXU.js";
|
|
36
36
|
import {
|
|
37
37
|
addRepoLink,
|
|
38
|
-
autoInstallVercelPlugin,
|
|
39
38
|
ensureRepoLink
|
|
40
|
-
} from "../../chunks/chunk-
|
|
39
|
+
} from "../../chunks/chunk-SFPJ3VR7.js";
|
|
41
40
|
import {
|
|
42
41
|
TelemetryClient
|
|
43
42
|
} from "../../chunks/chunk-HIYWSGI7.js";
|
|
@@ -150,9 +149,6 @@ async function link(client) {
|
|
|
150
149
|
output_manager_default.prettyError(err);
|
|
151
150
|
return 1;
|
|
152
151
|
}
|
|
153
|
-
await autoInstallVercelPlugin(client, {
|
|
154
|
-
autoConfirm: yes2
|
|
155
|
-
});
|
|
156
152
|
return 0;
|
|
157
153
|
}
|
|
158
154
|
try {
|
|
@@ -212,9 +208,6 @@ async function link(client) {
|
|
|
212
208
|
return link2;
|
|
213
209
|
}
|
|
214
210
|
}
|
|
215
|
-
await autoInstallVercelPlugin(client, {
|
|
216
|
-
autoConfirm: yes
|
|
217
|
-
});
|
|
218
211
|
return 0;
|
|
219
212
|
}
|
|
220
213
|
export {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
formatEnvironment,
|
|
22
22
|
validateLsArgs
|
|
23
|
-
} from "../../chunks/chunk-
|
|
23
|
+
} from "../../chunks/chunk-HSXUEJ4T.js";
|
|
24
24
|
import {
|
|
25
25
|
validateJsonOutput
|
|
26
26
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "../../chunks/chunk-VXYGCOKL.js";
|
|
33
33
|
import {
|
|
34
34
|
getScope
|
|
35
|
-
} from "../../chunks/chunk-
|
|
35
|
+
} from "../../chunks/chunk-6SL223IW.js";
|
|
36
36
|
import {
|
|
37
37
|
help
|
|
38
38
|
} from "../../chunks/chunk-AWD3IGXU.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getLinkedProject,
|
|
42
42
|
getProjectByNameOrId,
|
|
43
43
|
parseTarget
|
|
44
|
-
} from "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-SFPJ3VR7.js";
|
|
45
45
|
import {
|
|
46
46
|
TelemetryClient
|
|
47
47
|
} from "../../chunks/chunk-HIYWSGI7.js";
|