vercel 48.6.4 → 48.6.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/index.js +71 -67
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -7304,13 +7304,13 @@ var require_chalk = __commonJS2({
|
|
|
7304
7304
|
styles[key] = {
|
|
7305
7305
|
get() {
|
|
7306
7306
|
const codes = ansiStyles[key];
|
|
7307
|
-
return
|
|
7307
|
+
return build3.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
|
|
7308
7308
|
}
|
|
7309
7309
|
};
|
|
7310
7310
|
}
|
|
7311
7311
|
styles.visible = {
|
|
7312
7312
|
get() {
|
|
7313
|
-
return
|
|
7313
|
+
return build3.call(this, this._styles || [], true, "visible");
|
|
7314
7314
|
}
|
|
7315
7315
|
};
|
|
7316
7316
|
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), "g");
|
|
@@ -7328,7 +7328,7 @@ var require_chalk = __commonJS2({
|
|
|
7328
7328
|
close: ansiStyles.color.close,
|
|
7329
7329
|
closeRe: ansiStyles.color.closeRe
|
|
7330
7330
|
};
|
|
7331
|
-
return
|
|
7331
|
+
return build3.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
7332
7332
|
};
|
|
7333
7333
|
}
|
|
7334
7334
|
};
|
|
@@ -7349,14 +7349,14 @@ var require_chalk = __commonJS2({
|
|
|
7349
7349
|
close: ansiStyles.bgColor.close,
|
|
7350
7350
|
closeRe: ansiStyles.bgColor.closeRe
|
|
7351
7351
|
};
|
|
7352
|
-
return
|
|
7352
|
+
return build3.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
|
|
7353
7353
|
};
|
|
7354
7354
|
}
|
|
7355
7355
|
};
|
|
7356
7356
|
}
|
|
7357
7357
|
var proto = Object.defineProperties(() => {
|
|
7358
7358
|
}, styles);
|
|
7359
|
-
function
|
|
7359
|
+
function build3(_styles, _empty, key) {
|
|
7360
7360
|
const builder = function() {
|
|
7361
7361
|
return applyStyle.apply(builder, arguments);
|
|
7362
7362
|
};
|
|
@@ -42518,7 +42518,7 @@ var require_colors = __commonJS2({
|
|
|
42518
42518
|
}
|
|
42519
42519
|
return str.replace(matchOperatorsRe, "\\$&");
|
|
42520
42520
|
};
|
|
42521
|
-
function
|
|
42521
|
+
function build3(_styles) {
|
|
42522
42522
|
var builder = function builder2() {
|
|
42523
42523
|
return applyStyle.apply(builder2, arguments);
|
|
42524
42524
|
};
|
|
@@ -42533,7 +42533,7 @@ var require_colors = __commonJS2({
|
|
|
42533
42533
|
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), "g");
|
|
42534
42534
|
ret[key] = {
|
|
42535
42535
|
get: function() {
|
|
42536
|
-
return
|
|
42536
|
+
return build3(this._styles.concat(key));
|
|
42537
42537
|
}
|
|
42538
42538
|
};
|
|
42539
42539
|
});
|
|
@@ -42592,7 +42592,7 @@ var require_colors = __commonJS2({
|
|
|
42592
42592
|
Object.keys(styles).forEach(function(name) {
|
|
42593
42593
|
ret[name] = {
|
|
42594
42594
|
get: function() {
|
|
42595
|
-
return
|
|
42595
|
+
return build3([name]);
|
|
42596
42596
|
}
|
|
42597
42597
|
};
|
|
42598
42598
|
});
|
|
@@ -135904,9 +135904,9 @@ function sortBuilders(builds) {
|
|
|
135904
135904
|
import_frameworks2.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
|
|
135905
135905
|
);
|
|
135906
135906
|
frontendRuntimeSet2.delete("@vercel/python");
|
|
135907
|
-
const toNumber = (
|
|
135908
|
-
return builds.sort((build1,
|
|
135909
|
-
return toNumber(build1) - toNumber(
|
|
135907
|
+
const toNumber = (build3) => build3.use === "@vercel/python" ? 1 : frontendRuntimeSet2.has(build3.use) ? 0 : 2;
|
|
135908
|
+
return builds.sort((build1, build22) => {
|
|
135909
|
+
return toNumber(build1) - toNumber(build22);
|
|
135910
135910
|
});
|
|
135911
135911
|
}
|
|
135912
135912
|
var import_frameworks2;
|
|
@@ -145937,7 +145937,7 @@ var init_unzip = __esm({
|
|
|
145937
145937
|
});
|
|
145938
145938
|
|
|
145939
145939
|
// src/util/build/write-build-result.ts
|
|
145940
|
-
async function writeBuildResult(repoRootPath, outputDir, buildResult,
|
|
145940
|
+
async function writeBuildResult(repoRootPath, outputDir, buildResult, build3, builder, builderPkg, vercelConfig, standalone = false) {
|
|
145941
145941
|
let version2 = builder.version;
|
|
145942
145942
|
if ((0, import_build_utils11.isExperimentalBackendsEnabled)() && "output" in buildResult) {
|
|
145943
145943
|
version2 = 2;
|
|
@@ -145947,7 +145947,7 @@ async function writeBuildResult(repoRootPath, outputDir, buildResult, build2, bu
|
|
|
145947
145947
|
repoRootPath,
|
|
145948
145948
|
outputDir,
|
|
145949
145949
|
buildResult,
|
|
145950
|
-
|
|
145950
|
+
build3,
|
|
145951
145951
|
vercelConfig,
|
|
145952
145952
|
standalone
|
|
145953
145953
|
);
|
|
@@ -145956,7 +145956,7 @@ async function writeBuildResult(repoRootPath, outputDir, buildResult, build2, bu
|
|
|
145956
145956
|
repoRootPath,
|
|
145957
145957
|
outputDir,
|
|
145958
145958
|
buildResult,
|
|
145959
|
-
|
|
145959
|
+
build3,
|
|
145960
145960
|
vercelConfig,
|
|
145961
145961
|
standalone
|
|
145962
145962
|
);
|
|
@@ -145981,16 +145981,16 @@ function isFile(v) {
|
|
|
145981
145981
|
function stripDuplicateSlashes(path11) {
|
|
145982
145982
|
return normalize2(path11).replace(/(^\/|\/$)/g, "");
|
|
145983
145983
|
}
|
|
145984
|
-
async function writeBuildResultV2(repoRootPath, outputDir, buildResult,
|
|
145984
|
+
async function writeBuildResultV2(repoRootPath, outputDir, buildResult, build3, vercelConfig, standalone = false) {
|
|
145985
145985
|
if ("buildOutputPath" in buildResult) {
|
|
145986
145986
|
await mergeBuilderOutput(outputDir, buildResult);
|
|
145987
145987
|
return;
|
|
145988
145988
|
}
|
|
145989
145989
|
if (!buildResult.output) {
|
|
145990
145990
|
const configFile = vercelConfig?.[import_client3.fileNameSymbol];
|
|
145991
|
-
const updateMessage =
|
|
145991
|
+
const updateMessage = build3.use.startsWith("@now/") ? ` Please update from "@now" to "@vercel" in your \`${configFile}\` file.` : "";
|
|
145992
145992
|
throw new Error(
|
|
145993
|
-
`The build result from "${
|
|
145993
|
+
`The build result from "${build3.use}" is missing the "output" property.${updateMessage}`
|
|
145994
145994
|
);
|
|
145995
145995
|
}
|
|
145996
145996
|
const existingFunctions = /* @__PURE__ */ new Map();
|
|
@@ -146083,7 +146083,7 @@ async function writeBuildResultV2(repoRootPath, outputDir, buildResult, build2,
|
|
|
146083
146083
|
}
|
|
146084
146084
|
return Object.keys(overrides).length > 0 ? overrides : void 0;
|
|
146085
146085
|
}
|
|
146086
|
-
async function writeBuildResultV3(repoRootPath, outputDir, buildResult,
|
|
146086
|
+
async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build3, vercelConfig, standalone = false) {
|
|
146087
146087
|
const { output: output2 } = buildResult;
|
|
146088
146088
|
if (process.env.VERCEL_EXPERIMENTAL_ROUTES_JSON === "1") {
|
|
146089
146089
|
const routesJsonPath = (0, import_path21.join)(outputDir, "..", "routes.json");
|
|
@@ -146107,7 +146107,7 @@ async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build2,
|
|
|
146107
146107
|
repoRootPath,
|
|
146108
146108
|
outputDir,
|
|
146109
146109
|
{ output: newOutput, routes: buildResult.routes },
|
|
146110
|
-
|
|
146110
|
+
build3,
|
|
146111
146111
|
vercelConfig,
|
|
146112
146112
|
standalone
|
|
146113
146113
|
);
|
|
@@ -146116,7 +146116,7 @@ async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build2,
|
|
|
146116
146116
|
}
|
|
146117
146117
|
}
|
|
146118
146118
|
}
|
|
146119
|
-
const src =
|
|
146119
|
+
const src = build3.src;
|
|
146120
146120
|
if (typeof src !== "string") {
|
|
146121
146121
|
throw new Error(`Expected "build.src" to be a string`);
|
|
146122
146122
|
}
|
|
@@ -146126,7 +146126,7 @@ async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build2,
|
|
|
146126
146126
|
}) : {};
|
|
146127
146127
|
const ext = (0, import_path21.extname)(src);
|
|
146128
146128
|
const path11 = stripDuplicateSlashes(
|
|
146129
|
-
|
|
146129
|
+
build3.config?.zeroConfig ? src.substring(0, src.length - ext.length) : src
|
|
146130
146130
|
);
|
|
146131
146131
|
if (isLambda(output2)) {
|
|
146132
146132
|
await writeLambda(
|
|
@@ -146149,7 +146149,7 @@ async function writeBuildResultV3(repoRootPath, outputDir, buildResult, build2,
|
|
|
146149
146149
|
);
|
|
146150
146150
|
} else {
|
|
146151
146151
|
throw new Error(
|
|
146152
|
-
`Unsupported output type: "${output2.type}" for ${
|
|
146152
|
+
`Unsupported output type: "${output2.type}" for ${build3.src}`
|
|
146153
146153
|
);
|
|
146154
146154
|
}
|
|
146155
146155
|
}
|
|
@@ -148284,19 +148284,19 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148284
148284
|
await import_fs_extra18.default.mkdirp(outputDir);
|
|
148285
148285
|
const ops = [];
|
|
148286
148286
|
const buildsJsonBuilds = new Map(
|
|
148287
|
-
builds.map((
|
|
148288
|
-
const builderWithPkg = buildersWithPkgs.get(
|
|
148287
|
+
builds.map((build3) => {
|
|
148288
|
+
const builderWithPkg = buildersWithPkgs.get(build3.use);
|
|
148289
148289
|
if (!builderWithPkg) {
|
|
148290
|
-
throw new Error(`Failed to load Builder "${
|
|
148290
|
+
throw new Error(`Failed to load Builder "${build3.use}"`);
|
|
148291
148291
|
}
|
|
148292
148292
|
const { builder, pkg: builderPkg } = builderWithPkg;
|
|
148293
148293
|
return [
|
|
148294
|
-
|
|
148294
|
+
build3,
|
|
148295
148295
|
{
|
|
148296
148296
|
require: builderPkg.name,
|
|
148297
148297
|
requirePath: builderWithPkg.path,
|
|
148298
148298
|
apiVersion: builder.version,
|
|
148299
|
-
...
|
|
148299
|
+
...build3
|
|
148300
148300
|
}
|
|
148301
148301
|
];
|
|
148302
148302
|
})
|
|
@@ -148313,12 +148313,12 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148313
148313
|
const repoRootPath = cwd;
|
|
148314
148314
|
const corepackShimDir = await initCorepack({ repoRootPath });
|
|
148315
148315
|
const diagnostics = {};
|
|
148316
|
-
for (const
|
|
148317
|
-
if (typeof
|
|
148316
|
+
for (const build3 of sortedBuilders) {
|
|
148317
|
+
if (typeof build3.src !== "string")
|
|
148318
148318
|
continue;
|
|
148319
|
-
const builderWithPkg = buildersWithPkgs.get(
|
|
148319
|
+
const builderWithPkg = buildersWithPkgs.get(build3.use);
|
|
148320
148320
|
if (!builderWithPkg) {
|
|
148321
|
-
throw new Error(`Failed to load Builder "${
|
|
148321
|
+
throw new Error(`Failed to load Builder "${build3.use}"`);
|
|
148322
148322
|
}
|
|
148323
148323
|
try {
|
|
148324
148324
|
const { builder, pkg: builderPkg } = builderWithPkg;
|
|
@@ -148335,10 +148335,10 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148335
148335
|
output_manager_default.debug(`Setting env ${envKey} to "${value}"`);
|
|
148336
148336
|
}
|
|
148337
148337
|
}
|
|
148338
|
-
const isFrontendBuilder =
|
|
148338
|
+
const isFrontendBuilder = build3.config && "framework" in build3.config;
|
|
148339
148339
|
const buildConfig = isZeroConfig ? {
|
|
148340
148340
|
outputDirectory: projectSettings.outputDirectory ?? void 0,
|
|
148341
|
-
...
|
|
148341
|
+
...build3.config,
|
|
148342
148342
|
projectSettings,
|
|
148343
148343
|
installCommand: projectSettings.installCommand ?? void 0,
|
|
148344
148344
|
devCommand: projectSettings.devCommand ?? void 0,
|
|
@@ -148347,7 +148347,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148347
148347
|
nodeVersion: projectSettings.nodeVersion,
|
|
148348
148348
|
bunVersion: localConfig.bunVersion ?? void 0
|
|
148349
148349
|
} : {
|
|
148350
|
-
...
|
|
148350
|
+
...build3.config || {},
|
|
148351
148351
|
bunVersion: localConfig.bunVersion ?? void 0
|
|
148352
148352
|
};
|
|
148353
148353
|
const builderSpan = span.child("vc.builder", {
|
|
@@ -148355,7 +148355,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148355
148355
|
});
|
|
148356
148356
|
const buildOptions = {
|
|
148357
148357
|
files: filesMap,
|
|
148358
|
-
entrypoint:
|
|
148358
|
+
entrypoint: build3.src,
|
|
148359
148359
|
workPath,
|
|
148360
148360
|
repoRootPath,
|
|
148361
148361
|
config: buildConfig,
|
|
@@ -148363,12 +148363,15 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148363
148363
|
span: builderSpan
|
|
148364
148364
|
};
|
|
148365
148365
|
output_manager_default.debug(
|
|
148366
|
-
`Building entrypoint "${
|
|
148366
|
+
`Building entrypoint "${build3.src}" with "${builderPkg.name}"`
|
|
148367
148367
|
);
|
|
148368
148368
|
let buildResult;
|
|
148369
148369
|
try {
|
|
148370
148370
|
buildResult = await builderSpan.trace(
|
|
148371
148371
|
() => {
|
|
148372
|
+
if ((0, import_build_utils13.shouldUseExperimentalBackends)(buildConfig.framework) && builderPkg.name !== "@vercel/static") {
|
|
148373
|
+
return experimentalBackendBuilder.build(buildOptions);
|
|
148374
|
+
}
|
|
148372
148375
|
return builder.build(buildOptions);
|
|
148373
148376
|
}
|
|
148374
148377
|
);
|
|
@@ -148397,7 +148400,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148397
148400
|
if ((0, import_build_utils13.getDiscontinuedNodeVersions)().some((o) => o.runtime === lambdaRuntime)) {
|
|
148398
148401
|
throw new import_build_utils13.NowBuildError({
|
|
148399
148402
|
code: "NODEJS_DISCONTINUED_VERSION",
|
|
148400
|
-
message: `The Runtime "${
|
|
148403
|
+
message: `The Runtime "${build3.use}" is using "${lambdaRuntime}", which is discontinued. Please upgrade your Runtime to a more recent version or consult the author for more details.`,
|
|
148401
148404
|
link: "https://vercel.link/function-runtimes"
|
|
148402
148405
|
});
|
|
148403
148406
|
}
|
|
@@ -148407,7 +148410,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148407
148410
|
"@vercel/hono",
|
|
148408
148411
|
"@vercel/fastify"
|
|
148409
148412
|
];
|
|
148410
|
-
const isBackendBuilder =
|
|
148413
|
+
const isBackendBuilder = build3.use && backendBuilders.includes(build3.use);
|
|
148411
148414
|
if (process.env.VERCEL_EXPERIMENTAL_ROUTES_JSON === "1") {
|
|
148412
148415
|
if ("output" in buildResult && buildResult.output && isBackendBuilder) {
|
|
148413
148416
|
const routesJsonPath = (0, import_path27.join)(outputDir, "..", "routes.json");
|
|
@@ -148445,7 +148448,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148445
148448
|
}
|
|
148446
148449
|
}
|
|
148447
148450
|
}
|
|
148448
|
-
buildResults.set(
|
|
148451
|
+
buildResults.set(build3, buildResult);
|
|
148449
148452
|
let buildOutputLength = 0;
|
|
148450
148453
|
if ("output" in buildResult) {
|
|
148451
148454
|
buildOutputLength = Array.isArray(buildResult.output) ? buildResult.output.length : 1;
|
|
@@ -148458,7 +148461,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148458
148461
|
repoRootPath,
|
|
148459
148462
|
outputDir,
|
|
148460
148463
|
buildResult,
|
|
148461
|
-
|
|
148464
|
+
build3,
|
|
148462
148465
|
builder,
|
|
148463
148466
|
builderPkg,
|
|
148464
148467
|
localConfig,
|
|
@@ -148473,7 +148476,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148473
148476
|
)
|
|
148474
148477
|
);
|
|
148475
148478
|
} catch (err) {
|
|
148476
|
-
const buildJsonBuild = buildsJsonBuilds.get(
|
|
148479
|
+
const buildJsonBuild = buildsJsonBuilds.get(build3);
|
|
148477
148480
|
if (buildJsonBuild) {
|
|
148478
148481
|
buildJsonBuild.error = toEnumerableError(err);
|
|
148479
148482
|
}
|
|
@@ -148527,10 +148530,10 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148527
148530
|
if (existingConfig.overrides) {
|
|
148528
148531
|
overrides.push(existingConfig.overrides);
|
|
148529
148532
|
}
|
|
148530
|
-
for (const [
|
|
148533
|
+
for (const [build3, buildResult] of buildResults.entries()) {
|
|
148531
148534
|
if ("buildOutputPath" in buildResult) {
|
|
148532
|
-
output_manager_default.debug(`Using "config.json" for "${
|
|
148533
|
-
buildResults.set(
|
|
148535
|
+
output_manager_default.debug(`Using "config.json" for "${build3.use}`);
|
|
148536
|
+
buildResults.set(build3, existingConfig);
|
|
148534
148537
|
break;
|
|
148535
148538
|
}
|
|
148536
148539
|
}
|
|
@@ -148591,8 +148594,8 @@ async function getFramework(cwd, buildResults) {
|
|
|
148591
148594
|
return;
|
|
148592
148595
|
}
|
|
148593
148596
|
if (detectedFramework.useRuntime) {
|
|
148594
|
-
for (const [
|
|
148595
|
-
if ("framework" in buildResult &&
|
|
148597
|
+
for (const [build3, buildResult] of buildResults.entries()) {
|
|
148598
|
+
if ("framework" in buildResult && build3.use === detectedFramework.useRuntime.use) {
|
|
148596
148599
|
return buildResult.framework;
|
|
148597
148600
|
}
|
|
148598
148601
|
}
|
|
@@ -148611,8 +148614,8 @@ async function getFramework(cwd, buildResults) {
|
|
|
148611
148614
|
};
|
|
148612
148615
|
}
|
|
148613
148616
|
}
|
|
148614
|
-
function expandBuild(files,
|
|
148615
|
-
if (!
|
|
148617
|
+
function expandBuild(files, build3) {
|
|
148618
|
+
if (!build3.use) {
|
|
148616
148619
|
throw new import_build_utils13.NowBuildError({
|
|
148617
148620
|
code: `invalid_build_specification`,
|
|
148618
148621
|
message: "Field `use` is missing in build specification",
|
|
@@ -148620,7 +148623,7 @@ function expandBuild(files, build2) {
|
|
|
148620
148623
|
action: "View Documentation"
|
|
148621
148624
|
});
|
|
148622
148625
|
}
|
|
148623
|
-
let src = (0, import_path27.normalize)(
|
|
148626
|
+
let src = (0, import_path27.normalize)(build3.src || "**").split(import_path27.sep).join("/");
|
|
148624
148627
|
if (src === "." || src === "./") {
|
|
148625
148628
|
throw new import_build_utils13.NowBuildError({
|
|
148626
148629
|
code: `invalid_build_specification`,
|
|
@@ -148637,7 +148640,7 @@ function expandBuild(files, build2) {
|
|
|
148637
148640
|
);
|
|
148638
148641
|
return matches.map((m) => {
|
|
148639
148642
|
return {
|
|
148640
|
-
...
|
|
148643
|
+
...build3,
|
|
148641
148644
|
src: m
|
|
148642
148645
|
};
|
|
148643
148646
|
});
|
|
@@ -148709,7 +148712,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
|
|
|
148709
148712
|
}
|
|
148710
148713
|
return routes2;
|
|
148711
148714
|
}
|
|
148712
|
-
var import_chalk55, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises2, InMemoryReporter;
|
|
148715
|
+
var import_chalk55, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, experimentalBackendBuilder, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises2, InMemoryReporter;
|
|
148713
148716
|
var init_build2 = __esm({
|
|
148714
148717
|
"src/commands/build/index.ts"() {
|
|
148715
148718
|
"use strict";
|
|
@@ -148719,6 +148722,7 @@ var init_build2 = __esm({
|
|
|
148719
148722
|
import_minimatch2 = __toESM3(require_minimatch2());
|
|
148720
148723
|
import_path27 = require("path");
|
|
148721
148724
|
import_semver3 = __toESM3(require_semver());
|
|
148725
|
+
experimentalBackendBuilder = __toESM3(require("@vercel/backends"));
|
|
148722
148726
|
import_build_utils13 = require("@vercel/build-utils");
|
|
148723
148727
|
import_client6 = __toESM3(require_dist7());
|
|
148724
148728
|
import_frameworks5 = __toESM3(require_frameworks());
|
|
@@ -151122,7 +151126,7 @@ var init_util = __esm({
|
|
|
151122
151126
|
regions,
|
|
151123
151127
|
quiet = false,
|
|
151124
151128
|
env,
|
|
151125
|
-
build:
|
|
151129
|
+
build: build3,
|
|
151126
151130
|
forceNew = false,
|
|
151127
151131
|
withCache = false,
|
|
151128
151132
|
target = null,
|
|
@@ -151138,7 +151142,7 @@ var init_util = __esm({
|
|
|
151138
151142
|
const requestBody = {
|
|
151139
151143
|
...nowConfig,
|
|
151140
151144
|
env,
|
|
151141
|
-
build:
|
|
151145
|
+
build: build3,
|
|
151142
151146
|
public: wantsPublic || nowConfig.public,
|
|
151143
151147
|
name,
|
|
151144
151148
|
project,
|
|
@@ -152109,7 +152113,7 @@ var init_deploy2 = __esm({
|
|
|
152109
152113
|
return 1;
|
|
152110
152114
|
}
|
|
152111
152115
|
const prebuiltBuild = await getPrebuiltJson(vercelOutputDir);
|
|
152112
|
-
const prebuiltError = prebuiltBuild?.error || prebuiltBuild?.builds?.find((
|
|
152116
|
+
const prebuiltError = prebuiltBuild?.error || prebuiltBuild?.builds?.find((build3) => "error" in build3)?.error;
|
|
152113
152117
|
if (prebuiltError) {
|
|
152114
152118
|
output_manager_default.log(
|
|
152115
152119
|
`Prebuilt deployment cannot be created because ${getCommandName(
|
|
@@ -170177,8 +170181,8 @@ async function getReachableHostOnPort(port) {
|
|
|
170177
170181
|
]);
|
|
170178
170182
|
return results.find(Boolean) || false;
|
|
170179
170183
|
}
|
|
170180
|
-
function filterFrontendBuilds(
|
|
170181
|
-
const { name } = (0, import_npm_package_arg2.default)(
|
|
170184
|
+
function filterFrontendBuilds(build3) {
|
|
170185
|
+
const { name } = (0, import_npm_package_arg2.default)(build3.use);
|
|
170182
170186
|
return !frontendRuntimeSet.has(name || "");
|
|
170183
170187
|
}
|
|
170184
170188
|
function hasNewRoutingProperties(vercelConfig) {
|
|
@@ -177654,7 +177658,7 @@ var init_builds = __esm({
|
|
|
177654
177658
|
getCommonPath = (buildGroup) => {
|
|
177655
177659
|
const commonPath = [];
|
|
177656
177660
|
const splits = buildGroup.map(
|
|
177657
|
-
(
|
|
177661
|
+
(build3) => getDirPath(build3.entrypoint).split("/")
|
|
177658
177662
|
);
|
|
177659
177663
|
const shortest = splits.reduce(
|
|
177660
177664
|
(prevValue, currentValue) => Math.min(prevValue, currentValue.length),
|
|
@@ -177670,15 +177674,15 @@ var init_builds = __esm({
|
|
|
177670
177674
|
}
|
|
177671
177675
|
return commonPath.join("/") || "/";
|
|
177672
177676
|
};
|
|
177673
|
-
styleBuild = (
|
|
177674
|
-
const { entrypoint, id } =
|
|
177677
|
+
styleBuild = (build3, times, longestSource) => {
|
|
177678
|
+
const { entrypoint, id } = build3;
|
|
177675
177679
|
const time = typeof times[id] === "string" ? times[id] : "";
|
|
177676
177680
|
let pathColor = import_chalk98.default.cyan;
|
|
177677
|
-
if (isFailed(
|
|
177681
|
+
if (isFailed(build3)) {
|
|
177678
177682
|
pathColor = import_chalk98.default.red;
|
|
177679
177683
|
}
|
|
177680
177684
|
const entry = entrypoint.padEnd(longestSource + padding);
|
|
177681
|
-
const prefix = hasOutput(
|
|
177685
|
+
const prefix = hasOutput(build3) ? "\u250C" : "\u2576";
|
|
177682
177686
|
return `${import_chalk98.default.grey(prefix)} ${pathColor(entry)}${time}`;
|
|
177683
177687
|
};
|
|
177684
177688
|
styleHiddenBuilds = (commonPath, buildGroup, times, longestSource, isHidden2 = false) => {
|
|
@@ -177770,7 +177774,7 @@ var init_builds = __esm({
|
|
|
177770
177774
|
return nextList;
|
|
177771
177775
|
};
|
|
177772
177776
|
builds_default = (builds, times) => {
|
|
177773
|
-
let path11 = builds.sort(sortByEntrypoint).map((
|
|
177777
|
+
let path11 = builds.sort(sortByEntrypoint).map((build3) => [build3]);
|
|
177774
177778
|
const highestLevel = builds.reduce((prev, curr) => {
|
|
177775
177779
|
const partCounter = curr.entrypoint.split("/").length - 1;
|
|
177776
177780
|
return partCounter > prev ? partCounter : prev;
|
|
@@ -177833,9 +177837,9 @@ var init_builds = __esm({
|
|
|
177833
177837
|
finalBuildsLength++;
|
|
177834
177838
|
}
|
|
177835
177839
|
const outputs = [];
|
|
177836
|
-
for (const
|
|
177837
|
-
if (Array.isArray(
|
|
177838
|
-
outputs.push(...
|
|
177840
|
+
for (const build3 of buildGroup) {
|
|
177841
|
+
if (Array.isArray(build3.output)) {
|
|
177842
|
+
outputs.push(...build3.output);
|
|
177839
177843
|
}
|
|
177840
177844
|
}
|
|
177841
177845
|
outputs.slice(0, MAX_OUTPUTS_PER_GROUP).forEach(
|
|
@@ -178170,8 +178174,8 @@ async function printDetails({
|
|
|
178170
178174
|
}
|
|
178171
178175
|
if (builds.length > 0) {
|
|
178172
178176
|
const times = {};
|
|
178173
|
-
for (const
|
|
178174
|
-
const { id: id2, createdAt: createdAt2, readyStateAt } =
|
|
178177
|
+
for (const build3 of builds) {
|
|
178178
|
+
const { id: id2, createdAt: createdAt2, readyStateAt } = build3;
|
|
178175
178179
|
times[id2] = createdAt2 && readyStateAt ? elapsed(readyStateAt - createdAt2) : null;
|
|
178176
178180
|
}
|
|
178177
178181
|
print(import_chalk100.default.bold(" Builds\n\n"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "48.6.
|
|
3
|
+
"version": "48.6.5",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "The command-line interface for Vercel",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@vercel/static-build": "2.8.1",
|
|
39
39
|
"chokidar": "4.0.0",
|
|
40
40
|
"jose": "5.9.6",
|
|
41
|
-
"@vercel/
|
|
42
|
-
"@vercel/
|
|
41
|
+
"@vercel/backends": "0.0.3",
|
|
42
|
+
"@vercel/detect-agent": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@alex_neo/jest-expect-message": "1.0.5",
|
|
@@ -168,9 +168,9 @@
|
|
|
168
168
|
"write-json-file": "2.2.0",
|
|
169
169
|
"xdg-app-paths": "5.1.0",
|
|
170
170
|
"yauzl-promise": "2.1.3",
|
|
171
|
+
"@vercel-internals/types": "3.0.6",
|
|
171
172
|
"@vercel-internals/constants": "1.0.4",
|
|
172
|
-
"@vercel-internals/get-package-json": "1.0.0"
|
|
173
|
-
"@vercel-internals/types": "3.0.6"
|
|
173
|
+
"@vercel-internals/get-package-json": "1.0.0"
|
|
174
174
|
},
|
|
175
175
|
"scripts": {
|
|
176
176
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|