vercel 33.5.5 → 33.6.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/index.js +125 -111
- package/package.json +8 -8
package/dist/index.js
CHANGED
@@ -62513,7 +62513,7 @@ var require_package = __commonJS2({
|
|
62513
62513
|
"../client/package.json"(exports2, module2) {
|
62514
62514
|
module2.exports = {
|
62515
62515
|
name: "@vercel/client",
|
62516
|
-
version: "13.1.
|
62516
|
+
version: "13.1.7",
|
62517
62517
|
main: "dist/index.js",
|
62518
62518
|
typings: "dist/index.d.ts",
|
62519
62519
|
homepage: "https://vercel.com",
|
@@ -62550,7 +62550,7 @@ var require_package = __commonJS2({
|
|
62550
62550
|
typescript: "4.9.5"
|
62551
62551
|
},
|
62552
62552
|
dependencies: {
|
62553
|
-
"@vercel/build-utils": "7.
|
62553
|
+
"@vercel/build-utils": "7.9.1",
|
62554
62554
|
"@vercel/error-utils": "2.0.2",
|
62555
62555
|
"@vercel/routing-utils": "3.1.0",
|
62556
62556
|
"@zeit/fetch": "5.2.0",
|
@@ -170517,9 +170517,6 @@ async function main2(client2) {
|
|
170517
170517
|
if (project.settings.analyticsId) {
|
170518
170518
|
envToUnset.add("VERCEL_ANALYTICS_ID");
|
170519
170519
|
process.env.VERCEL_ANALYTICS_ID = project.settings.analyticsId;
|
170520
|
-
output2.warn(
|
170521
|
-
"Vercel Speed Insights auto-injection is deprecated in favor of @vercel/speed-insights package. Learn more: https://vercel.link/upgrate-to-speed-insights-package"
|
170522
|
-
);
|
170523
170520
|
}
|
170524
170521
|
process.env.VERCEL = "1";
|
170525
170522
|
process.env.NOW_BUILDER = "1";
|
@@ -170828,7 +170825,7 @@ async function doBuild(client2, project, buildsJson, cwd2, outputDir) {
|
|
170828
170825
|
const mergedCrons = mergeCrons(localConfig.crons, buildResults.values());
|
170829
170826
|
const mergedWildcard = mergeWildcard(buildResults.values());
|
170830
170827
|
const mergedOverrides = overrides.length > 0 ? Object.assign({}, ...overrides) : void 0;
|
170831
|
-
const framework = await getFramework(
|
170828
|
+
const framework = await getFramework(workPath, buildResults);
|
170832
170829
|
const config3 = {
|
170833
170830
|
version: 3,
|
170834
170831
|
routes: mergedRoutes,
|
@@ -171870,50 +171867,6 @@ var init_certs = __esm({
|
|
171870
171867
|
}
|
171871
171868
|
});
|
171872
171869
|
|
171873
|
-
// src/util/parse-meta.ts
|
171874
|
-
function parseMeta(meta) {
|
171875
|
-
if (!meta) {
|
171876
|
-
return {};
|
171877
|
-
}
|
171878
|
-
if (typeof meta === "string") {
|
171879
|
-
meta = [meta];
|
171880
|
-
}
|
171881
|
-
const parsed = {};
|
171882
|
-
for (const item of meta) {
|
171883
|
-
const [key, ...rest] = item.split("=");
|
171884
|
-
parsed[key] = rest.join("=");
|
171885
|
-
}
|
171886
|
-
return parsed;
|
171887
|
-
}
|
171888
|
-
var init_parse_meta = __esm({
|
171889
|
-
"src/util/parse-meta.ts"() {
|
171890
|
-
"use strict";
|
171891
|
-
}
|
171892
|
-
});
|
171893
|
-
|
171894
|
-
// src/util/get-project-name.ts
|
171895
|
-
function getProjectName({
|
171896
|
-
argv: argv2,
|
171897
|
-
nowConfig = {},
|
171898
|
-
paths = []
|
171899
|
-
}) {
|
171900
|
-
const nameCli = argv2["--name"];
|
171901
|
-
if (nameCli) {
|
171902
|
-
return nameCli;
|
171903
|
-
}
|
171904
|
-
if (nowConfig.name) {
|
171905
|
-
return nowConfig.name;
|
171906
|
-
}
|
171907
|
-
return (0, import_path30.basename)(paths[0] || "");
|
171908
|
-
}
|
171909
|
-
var import_path30;
|
171910
|
-
var init_get_project_name = __esm({
|
171911
|
-
"src/util/get-project-name.ts"() {
|
171912
|
-
"use strict";
|
171913
|
-
import_path30 = require("path");
|
171914
|
-
}
|
171915
|
-
});
|
171916
|
-
|
171917
171870
|
// src/util/deploy/get-deployment-checks.ts
|
171918
171871
|
async function getDeploymentChecks(client2, deploymentId) {
|
171919
171872
|
const checksResponse = await client2.fetch(
|
@@ -171927,6 +171880,23 @@ var init_get_deployment_checks = __esm({
|
|
171927
171880
|
}
|
171928
171881
|
});
|
171929
171882
|
|
171883
|
+
// src/util/deploy/get-prebuilt-json.ts
|
171884
|
+
async function getPrebuiltJson(directory) {
|
171885
|
+
try {
|
171886
|
+
return await import_fs_extra19.default.readJSON((0, import_path30.join)(directory, ".vercel/output/builds.json"));
|
171887
|
+
} catch (error4) {
|
171888
|
+
}
|
171889
|
+
return null;
|
171890
|
+
}
|
171891
|
+
var import_fs_extra19, import_path30;
|
171892
|
+
var init_get_prebuilt_json = __esm({
|
171893
|
+
"src/util/deploy/get-prebuilt-json.ts"() {
|
171894
|
+
"use strict";
|
171895
|
+
import_fs_extra19 = __toESM3(require_lib());
|
171896
|
+
import_path30 = require("path");
|
171897
|
+
}
|
171898
|
+
});
|
171899
|
+
|
171930
171900
|
// src/util/deploy/parse-target.ts
|
171931
171901
|
function parseTarget(output2, targetArg, prodArg) {
|
171932
171902
|
if (targetArg) {
|
@@ -171961,36 +171931,6 @@ var init_parse_target = __esm({
|
|
171961
171931
|
}
|
171962
171932
|
});
|
171963
171933
|
|
171964
|
-
// src/util/deploy/get-prebuilt-json.ts
|
171965
|
-
async function getPrebuiltJson(directory) {
|
171966
|
-
try {
|
171967
|
-
return await import_fs_extra19.default.readJSON((0, import_path31.join)(directory, ".vercel/output/builds.json"));
|
171968
|
-
} catch (error4) {
|
171969
|
-
}
|
171970
|
-
return null;
|
171971
|
-
}
|
171972
|
-
var import_fs_extra19, import_path31;
|
171973
|
-
var init_get_prebuilt_json = __esm({
|
171974
|
-
"src/util/deploy/get-prebuilt-json.ts"() {
|
171975
|
-
"use strict";
|
171976
|
-
import_fs_extra19 = __toESM3(require_lib());
|
171977
|
-
import_path31 = require("path");
|
171978
|
-
}
|
171979
|
-
});
|
171980
|
-
|
171981
|
-
// src/util/deploy/validate-archive-format.ts
|
171982
|
-
function isValidArchive(archive) {
|
171983
|
-
return validArchiveFormats.has(archive);
|
171984
|
-
}
|
171985
|
-
var import_client9, validArchiveFormats;
|
171986
|
-
var init_validate_archive_format = __esm({
|
171987
|
-
"src/util/deploy/validate-archive-format.ts"() {
|
171988
|
-
"use strict";
|
171989
|
-
import_client9 = __toESM3(require_dist10());
|
171990
|
-
validArchiveFormats = new Set(import_client9.VALID_ARCHIVE_FORMATS);
|
171991
|
-
}
|
171992
|
-
});
|
171993
|
-
|
171994
171934
|
// src/util/deploy/is-deploying.ts
|
171995
171935
|
function isDeploying(readyState) {
|
171996
171936
|
return deploymentInProgressStates.includes(readyState);
|
@@ -172070,6 +172010,63 @@ var init_print_deployment_status = __esm({
|
|
172070
172010
|
}
|
172071
172011
|
});
|
172072
172012
|
|
172013
|
+
// src/util/deploy/validate-archive-format.ts
|
172014
|
+
function isValidArchive(archive) {
|
172015
|
+
return validArchiveFormats.has(archive);
|
172016
|
+
}
|
172017
|
+
var import_client9, validArchiveFormats;
|
172018
|
+
var init_validate_archive_format = __esm({
|
172019
|
+
"src/util/deploy/validate-archive-format.ts"() {
|
172020
|
+
"use strict";
|
172021
|
+
import_client9 = __toESM3(require_dist10());
|
172022
|
+
validArchiveFormats = new Set(import_client9.VALID_ARCHIVE_FORMATS);
|
172023
|
+
}
|
172024
|
+
});
|
172025
|
+
|
172026
|
+
// src/util/get-project-name.ts
|
172027
|
+
function getProjectName({
|
172028
|
+
argv: argv2,
|
172029
|
+
nowConfig = {},
|
172030
|
+
paths = []
|
172031
|
+
}) {
|
172032
|
+
const nameCli = argv2["--name"];
|
172033
|
+
if (nameCli) {
|
172034
|
+
return nameCli;
|
172035
|
+
}
|
172036
|
+
if (nowConfig.name) {
|
172037
|
+
return nowConfig.name;
|
172038
|
+
}
|
172039
|
+
return (0, import_path31.basename)(paths[0] || "");
|
172040
|
+
}
|
172041
|
+
var import_path31;
|
172042
|
+
var init_get_project_name = __esm({
|
172043
|
+
"src/util/get-project-name.ts"() {
|
172044
|
+
"use strict";
|
172045
|
+
import_path31 = require("path");
|
172046
|
+
}
|
172047
|
+
});
|
172048
|
+
|
172049
|
+
// src/util/parse-meta.ts
|
172050
|
+
function parseMeta(meta) {
|
172051
|
+
if (!meta) {
|
172052
|
+
return {};
|
172053
|
+
}
|
172054
|
+
if (typeof meta === "string") {
|
172055
|
+
meta = [meta];
|
172056
|
+
}
|
172057
|
+
const parsed = {};
|
172058
|
+
for (const item of meta) {
|
172059
|
+
const [key, ...rest] = item.split("=");
|
172060
|
+
parsed[key] = rest.join("=");
|
172061
|
+
}
|
172062
|
+
return parsed;
|
172063
|
+
}
|
172064
|
+
var init_parse_meta = __esm({
|
172065
|
+
"src/util/parse-meta.ts"() {
|
172066
|
+
"use strict";
|
172067
|
+
}
|
172068
|
+
});
|
172069
|
+
|
172073
172070
|
// src/commands/deploy/command.ts
|
172074
172071
|
var deployCommand;
|
172075
172072
|
var init_command6 = __esm({
|
@@ -172316,51 +172313,51 @@ function handleCreateDeployError(output2, error4, localConfig) {
|
|
172316
172313
|
}
|
172317
172314
|
return error4;
|
172318
172315
|
}
|
172319
|
-
var
|
172316
|
+
var import_build_utils14, import_client10, import_error_utils18, import_bytes5, import_chalk53, import_fs_extra20, import_ms10, import_path32, deploy_default, addProcessEnv;
|
172320
172317
|
var init_deploy = __esm({
|
172321
172318
|
"src/commands/deploy/index.ts"() {
|
172322
172319
|
"use strict";
|
172323
|
-
|
172324
|
-
|
172320
|
+
import_build_utils14 = require("@vercel/build-utils");
|
172321
|
+
import_client10 = __toESM3(require_dist10());
|
172322
|
+
import_error_utils18 = __toESM3(require_dist2());
|
172325
172323
|
import_bytes5 = __toESM3(require_bytes());
|
172326
172324
|
import_chalk53 = __toESM3(require_source());
|
172325
|
+
import_fs_extra20 = __toESM3(require_lib());
|
172326
|
+
import_ms10 = __toESM3(require_ms2());
|
172327
172327
|
import_path32 = require("path");
|
172328
|
-
import_client10 = __toESM3(require_dist10());
|
172329
|
-
init_code();
|
172330
|
-
init_highlight();
|
172331
|
-
init_files();
|
172332
|
-
init_get_args();
|
172333
|
-
init_error2();
|
172334
|
-
import_build_utils14 = require("@vercel/build-utils");
|
172335
|
-
init_humanize_path();
|
172336
172328
|
init_util();
|
172337
|
-
|
172329
|
+
init_files();
|
172330
|
+
init_create_git_meta();
|
172338
172331
|
init_create_deploy();
|
172339
|
-
|
172340
|
-
|
172341
|
-
|
172342
|
-
|
172343
|
-
|
172332
|
+
init_get_deployment_checks();
|
172333
|
+
init_get_prebuilt_json();
|
172334
|
+
init_parse_target();
|
172335
|
+
init_print_deployment_status();
|
172336
|
+
init_validate_archive_format();
|
172344
172337
|
init_purchase_domain_if_available();
|
172338
|
+
init_emoji();
|
172339
|
+
init_error2();
|
172340
|
+
init_errors();
|
172341
|
+
init_errors_ts();
|
172342
|
+
init_get_args();
|
172343
|
+
init_get_deployment();
|
172344
|
+
init_get_project_name();
|
172345
|
+
init_humanize_path();
|
172345
172346
|
init_confirm();
|
172346
172347
|
init_edit_project_settings();
|
172347
|
-
init_link2();
|
172348
|
-
init_get_project_name();
|
172349
|
-
init_select_org();
|
172350
172348
|
init_input_project();
|
172351
|
-
init_emoji();
|
172352
172349
|
init_input_root_directory();
|
172353
|
-
|
172354
|
-
|
172355
|
-
|
172356
|
-
|
172357
|
-
|
172358
|
-
init_create_git_meta();
|
172359
|
-
init_validate_archive_format();
|
172350
|
+
init_select_org();
|
172351
|
+
init_code();
|
172352
|
+
init_highlight();
|
172353
|
+
init_param();
|
172354
|
+
init_stamp();
|
172360
172355
|
init_parse_env();
|
172361
|
-
|
172356
|
+
init_parse_meta();
|
172357
|
+
init_pkg_name();
|
172358
|
+
init_link2();
|
172362
172359
|
init_project_settings();
|
172363
|
-
|
172360
|
+
init_validate_paths();
|
172364
172361
|
init_help();
|
172365
172362
|
init_command6();
|
172366
172363
|
deploy_default = async (client2) => {
|
@@ -172678,6 +172675,22 @@ var init_deploy = __esm({
|
|
172678
172675
|
"`name` not found on project or provided by existing project"
|
172679
172676
|
);
|
172680
172677
|
}
|
172678
|
+
const { packageJson } = await (0, import_build_utils14.scanParentDirs)(
|
172679
|
+
(0, import_path32.join)(cwd2, project?.rootDirectory ?? ""),
|
172680
|
+
true,
|
172681
|
+
cwd2
|
172682
|
+
);
|
172683
|
+
let nodeVersion;
|
172684
|
+
if (packageJson?.engines?.node) {
|
172685
|
+
try {
|
172686
|
+
const { range } = await (0, import_build_utils14.getSupportedNodeVersion)(packageJson.engines.node);
|
172687
|
+
nodeVersion = range;
|
172688
|
+
} catch (error5) {
|
172689
|
+
if (error5 instanceof Error) {
|
172690
|
+
output2.warn(error5.message);
|
172691
|
+
}
|
172692
|
+
}
|
172693
|
+
}
|
172681
172694
|
try {
|
172682
172695
|
const autoAssignCustomDomains = argv2["--skip-domain"] ? false : void 0;
|
172683
172696
|
const createArgs = {
|
@@ -172708,7 +172721,8 @@ var init_deploy = __esm({
|
|
172708
172721
|
if (!localConfig.builds || localConfig.builds.length === 0) {
|
172709
172722
|
createArgs.projectSettings = {
|
172710
172723
|
sourceFilesOutsideRootDirectory,
|
172711
|
-
rootDirectory
|
172724
|
+
rootDirectory,
|
172725
|
+
nodeVersion
|
172712
172726
|
};
|
172713
172727
|
if (status !== "not_linked") {
|
172714
172728
|
createArgs.projectSettings = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "33.
|
3
|
+
"version": "33.6.1",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -21,17 +21,17 @@
|
|
21
21
|
"node": ">= 16"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@vercel/build-utils": "7.
|
24
|
+
"@vercel/build-utils": "7.9.1",
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.0.5",
|
27
27
|
"@vercel/hydrogen": "1.0.2",
|
28
|
-
"@vercel/next": "4.1.
|
29
|
-
"@vercel/node": "3.0.
|
28
|
+
"@vercel/next": "4.1.6",
|
29
|
+
"@vercel/node": "3.0.24",
|
30
30
|
"@vercel/python": "4.1.1",
|
31
31
|
"@vercel/redwood": "2.0.8",
|
32
|
-
"@vercel/remix-builder": "2.1.
|
32
|
+
"@vercel/remix-builder": "2.1.4",
|
33
33
|
"@vercel/ruby": "2.0.5",
|
34
|
-
"@vercel/static-build": "2.4.
|
34
|
+
"@vercel/static-build": "2.4.4",
|
35
35
|
"chokidar": "3.3.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -78,8 +78,8 @@
|
|
78
78
|
"@types/yauzl-promise": "2.1.0",
|
79
79
|
"@vercel-internals/constants": "1.0.4",
|
80
80
|
"@vercel-internals/get-package-json": "1.0.0",
|
81
|
-
"@vercel-internals/types": "1.0.
|
82
|
-
"@vercel/client": "13.1.
|
81
|
+
"@vercel-internals/types": "1.0.27",
|
82
|
+
"@vercel/client": "13.1.7",
|
83
83
|
"@vercel/error-utils": "2.0.2",
|
84
84
|
"@vercel/frameworks": "3.0.0",
|
85
85
|
"@vercel/fs-detectors": "5.2.1",
|