vercel 33.6.0 → 33.6.2
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 +180 -155
- package/package.json +14 -11
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.8",
|
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.10.0",
|
62554
62554
|
"@vercel/error-utils": "2.0.2",
|
62555
62555
|
"@vercel/routing-utils": "3.1.0",
|
62556
62556
|
"@zeit/fetch": "5.2.0",
|
@@ -100576,7 +100576,7 @@ async function list(client2, {
|
|
100576
100576
|
eraseFinalAnswer = false
|
100577
100577
|
// If true, the line with the final answer that inquirer prints will be erased before returning
|
100578
100578
|
}) {
|
100579
|
-
init_patch_inquirer();
|
100579
|
+
await Promise.resolve().then(() => (init_patch_inquirer(), patch_inquirer_exports));
|
100580
100580
|
let biggestLength = 0;
|
100581
100581
|
let selected;
|
100582
100582
|
for (const choice of _choices) {
|
@@ -101061,7 +101061,7 @@ var init_saml = __esm({
|
|
101061
101061
|
|
101062
101062
|
// src/util/input/confirm.ts
|
101063
101063
|
async function confirm(client2, message2, preferred) {
|
101064
|
-
init_patch_inquirer();
|
101064
|
+
await Promise.resolve().then(() => (init_patch_inquirer(), patch_inquirer_exports));
|
101065
101065
|
const answers = await client2.prompt({
|
101066
101066
|
type: "confirm",
|
101067
101067
|
name: "value",
|
@@ -143876,7 +143876,8 @@ var require_frameworks = __commonJS2({
|
|
143876
143876
|
var frameworks_exports = {};
|
143877
143877
|
__export4(frameworks_exports, {
|
143878
143878
|
default: () => frameworks_default,
|
143879
|
-
|
143879
|
+
frameworkList: () => frameworkList6,
|
143880
|
+
frameworks: () => frameworks
|
143880
143881
|
});
|
143881
143882
|
module2.exports = __toCommonJS4(frameworks_exports);
|
143882
143883
|
var import_path44 = require("path");
|
@@ -143884,7 +143885,7 @@ var require_frameworks = __commonJS2({
|
|
143884
143885
|
var import_read_config_file = require_read_config_file();
|
143885
143886
|
__reExport(frameworks_exports, require_types5(), module2.exports);
|
143886
143887
|
var { readdir: readdir2, readFile: readFile6, unlink } = import_fs10.promises;
|
143887
|
-
var
|
143888
|
+
var frameworks = [
|
143888
143889
|
{
|
143889
143890
|
name: "Blitz.js (Legacy)",
|
143890
143891
|
slug: "blitzjs",
|
@@ -145810,8 +145811,8 @@ var require_frameworks = __commonJS2({
|
|
145810
145811
|
getOutputDirName: async () => "public"
|
145811
145812
|
}
|
145812
145813
|
];
|
145813
|
-
var
|
145814
|
-
var frameworks_default =
|
145814
|
+
var frameworkList6 = frameworks;
|
145815
|
+
var frameworks_default = frameworkList6;
|
145815
145816
|
}
|
145816
145817
|
});
|
145817
145818
|
|
@@ -147045,7 +147046,7 @@ var require_detect_builders = __commonJS2({
|
|
147045
147046
|
});
|
147046
147047
|
module2.exports = __toCommonJS4(detect_builders_exports);
|
147047
147048
|
var import_minimatch5 = __toESM4(require_minimatch2());
|
147048
|
-
var
|
147049
|
+
var import_semver4 = require_semver2();
|
147049
147050
|
var import_path44 = require("path");
|
147050
147051
|
var import_frameworks6 = __toESM4(require_frameworks());
|
147051
147052
|
var import_is_official_runtime = require_is_official_runtime();
|
@@ -147449,7 +147450,7 @@ var require_detect_builders = __commonJS2({
|
|
147449
147450
|
}
|
147450
147451
|
if (func.runtime !== void 0) {
|
147451
147452
|
const tag = `${func.runtime}`.split("@").pop();
|
147452
|
-
if (!tag || !(0,
|
147453
|
+
if (!tag || !(0, import_semver4.valid)(tag)) {
|
147453
147454
|
return {
|
147454
147455
|
code: "invalid_function_runtime",
|
147455
147456
|
message: "Function Runtimes must have a valid version, for example `now-php@1.0.0`."
|
@@ -147811,7 +147812,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
147811
147812
|
detectFileSystemAPI: () => detectFileSystemAPI2
|
147812
147813
|
});
|
147813
147814
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
147814
|
-
var
|
147815
|
+
var import_semver4 = __toESM4(require_semver2());
|
147815
147816
|
var import__3 = require_dist27();
|
147816
147817
|
async function detectFileSystemAPI2({
|
147817
147818
|
files,
|
@@ -147924,8 +147925,8 @@ var require_detect_file_system_api = __commonJS2({
|
|
147924
147925
|
};
|
147925
147926
|
}
|
147926
147927
|
if (nextVersion !== "latest" && nextVersion !== "canary") {
|
147927
|
-
const fixedVersion =
|
147928
|
-
if (!fixedVersion || !
|
147928
|
+
const fixedVersion = import_semver4.default.valid(import_semver4.default.coerce(nextVersion) || "");
|
147929
|
+
if (!fixedVersion || !import_semver4.default.gte(fixedVersion, "12.0.0")) {
|
147929
147930
|
return {
|
147930
147931
|
metadata,
|
147931
147932
|
fsApiBuilder: null,
|
@@ -147937,8 +147938,8 @@ var require_detect_file_system_api = __commonJS2({
|
|
147937
147938
|
if (!hasDotOutput) {
|
147938
147939
|
const vercelCliVersion = deps["vercel"];
|
147939
147940
|
if (vercelCliVersion && vercelCliVersion !== "latest" && vercelCliVersion !== "canary") {
|
147940
|
-
const fixedVersion =
|
147941
|
-
if (!fixedVersion || !
|
147941
|
+
const fixedVersion = import_semver4.default.valid(import_semver4.default.coerce(vercelCliVersion) || "");
|
147942
|
+
if (!fixedVersion || !import_semver4.default.gte(fixedVersion, "23.1.3-canary.68")) {
|
147942
147943
|
return {
|
147943
147944
|
metadata,
|
147944
147945
|
fsApiBuilder: null,
|
@@ -148112,10 +148113,10 @@ var require_detect_framework = __commonJS2({
|
|
148112
148113
|
}
|
148113
148114
|
async function detectFramework2({
|
148114
148115
|
fs: fs15,
|
148115
|
-
frameworkList:
|
148116
|
+
frameworkList: frameworkList6
|
148116
148117
|
}) {
|
148117
148118
|
const result = await Promise.all(
|
148118
|
-
|
148119
|
+
frameworkList6.map(async (frameworkMatch) => {
|
148119
148120
|
if (await matches(fs15, frameworkMatch)) {
|
148120
148121
|
return frameworkMatch;
|
148121
148122
|
}
|
@@ -148127,10 +148128,10 @@ var require_detect_framework = __commonJS2({
|
|
148127
148128
|
}
|
148128
148129
|
async function detectFrameworks3({
|
148129
148130
|
fs: fs15,
|
148130
|
-
frameworkList:
|
148131
|
+
frameworkList: frameworkList6
|
148131
148132
|
}) {
|
148132
148133
|
const result = await Promise.all(
|
148133
|
-
|
148134
|
+
frameworkList6.map(async (frameworkMatch) => {
|
148134
148135
|
if (await matches(fs15, frameworkMatch)) {
|
148135
148136
|
return frameworkMatch;
|
148136
148137
|
}
|
@@ -148142,10 +148143,10 @@ var require_detect_framework = __commonJS2({
|
|
148142
148143
|
}
|
148143
148144
|
async function detectFrameworkRecord3({
|
148144
148145
|
fs: fs15,
|
148145
|
-
frameworkList:
|
148146
|
+
frameworkList: frameworkList6
|
148146
148147
|
}) {
|
148147
148148
|
const result = await Promise.all(
|
148148
|
-
|
148149
|
+
frameworkList6.map(async (frameworkMatch) => {
|
148149
148150
|
const matchResult = await matches(fs15, frameworkMatch);
|
148150
148151
|
if (matchResult) {
|
148151
148152
|
return {
|
@@ -155107,7 +155108,7 @@ var require_get_monorepo_default_settings = __commonJS2({
|
|
155107
155108
|
var import_package_managers = require_package_managers();
|
155108
155109
|
var import_detect_framework = require_detect_framework();
|
155109
155110
|
var import_json5 = __toESM4(require_lib21());
|
155110
|
-
var
|
155111
|
+
var import_semver4 = __toESM4(require_semver2());
|
155111
155112
|
var MissingBuildPipeline2 = class extends Error {
|
155112
155113
|
constructor() {
|
155113
155114
|
super(
|
@@ -155126,10 +155127,10 @@ var require_get_monorepo_default_settings = __commonJS2({
|
|
155126
155127
|
if (!turboSemVer) {
|
155127
155128
|
return false;
|
155128
155129
|
}
|
155129
|
-
if (!
|
155130
|
+
if (!import_semver4.default.validRange(turboSemVer)) {
|
155130
155131
|
return false;
|
155131
155132
|
}
|
155132
|
-
return !
|
155133
|
+
return !import_semver4.default.intersects(turboSemVer, "<1.8.0");
|
155133
155134
|
}
|
155134
155135
|
async function getMonorepoDefaultSettings2(projectName, projectPath, relativeToRoot, detectorFilesystem) {
|
155135
155136
|
const [monorepoManager, packageManager] = await Promise.all([
|
@@ -163618,7 +163619,7 @@ var init_create_git_meta = __esm({
|
|
163618
163619
|
|
163619
163620
|
// src/util/input/select-org.ts
|
163620
163621
|
async function selectOrg(client2, question, autoConfirm) {
|
163621
|
-
init_patch_inquirer();
|
163622
|
+
await Promise.resolve().then(() => (init_patch_inquirer(), patch_inquirer_exports));
|
163622
163623
|
const {
|
163623
163624
|
output: output2,
|
163624
163625
|
config: { currentTeam }
|
@@ -163732,13 +163733,13 @@ async function detectProjects(cwd2) {
|
|
163732
163733
|
}
|
163733
163734
|
await Promise.all(
|
163734
163735
|
packagePaths.map(async (p) => {
|
163735
|
-
const
|
163736
|
+
const frameworks = await (0, import_fs_detectors.detectFrameworks)({
|
163736
163737
|
fs: fs15.chdir((0, import_path13.join)(".", p)),
|
163737
|
-
frameworkList: import_frameworks.
|
163738
|
+
frameworkList: import_frameworks.frameworkList
|
163738
163739
|
});
|
163739
|
-
if (
|
163740
|
+
if (frameworks.length === 0)
|
163740
163741
|
return;
|
163741
|
-
detectedProjects.set(p.slice(1),
|
163742
|
+
detectedProjects.set(p.slice(1), frameworks);
|
163742
163743
|
})
|
163743
163744
|
);
|
163744
163745
|
return detectedProjects;
|
@@ -164014,7 +164015,7 @@ async function ensureRepoLink(client2, cwd2, { yes, overwrite }) {
|
|
164014
164015
|
}),
|
164015
164016
|
...addSeparators ? [new import_inquirer4.default.Separator("----- New Projects to be created -----")] : [],
|
164016
164017
|
...Array.from(detectedProjects.entries()).flatMap(
|
164017
|
-
([rootDirectory,
|
164018
|
+
([rootDirectory, frameworks]) => frameworks.map((framework, i) => {
|
164018
164019
|
const name = (0, import_slugify.default)(
|
164019
164020
|
[
|
164020
164021
|
(0, import_path14.basename)(rootPath),
|
@@ -164778,6 +164779,18 @@ var init_env_target = __esm({
|
|
164778
164779
|
}
|
164779
164780
|
});
|
164780
164781
|
|
164782
|
+
// src/util/is-zero-config-build.ts
|
164783
|
+
function isZeroConfigBuild(builds) {
|
164784
|
+
return !builds || builds.length === 0 || // If the zeroConfig property is set on all builds, still consider it as
|
164785
|
+
// zero config deployment
|
164786
|
+
builds.every((buildConfig) => buildConfig.config?.zeroConfig);
|
164787
|
+
}
|
164788
|
+
var init_is_zero_config_build = __esm({
|
164789
|
+
"src/util/is-zero-config-build.ts"() {
|
164790
|
+
"use strict";
|
164791
|
+
}
|
164792
|
+
});
|
164793
|
+
|
164781
164794
|
// src/util/input/input-project.ts
|
164782
164795
|
async function inputProject(client2, org, detectedProjectName, autoConfirm = false) {
|
164783
164796
|
const { output: output2 } = client2;
|
@@ -165048,7 +165061,7 @@ async function editProjectSettings(client2, projectSettings, framework, autoConf
|
|
165048
165061
|
}
|
165049
165062
|
}
|
165050
165063
|
if (localConfigurationOverrides.framework) {
|
165051
|
-
const overrideFramework = import_frameworks2.
|
165064
|
+
const overrideFramework = import_frameworks2.frameworkList.find(
|
165052
165065
|
(f) => f.slug === localConfigurationOverrides.framework
|
165053
165066
|
);
|
165054
165067
|
if (overrideFramework) {
|
@@ -166009,7 +166022,7 @@ async function setupAndLink(client2, path11, {
|
|
166009
166022
|
return { status: "error", exitCode: 1, reason: "INVALID_ROOT_DIRECTORY" };
|
166010
166023
|
}
|
166011
166024
|
config3.currentTeam = org.type === "team" ? org.id : void 0;
|
166012
|
-
const isZeroConfig = !localConfig ||
|
166025
|
+
const isZeroConfig = !localConfig || isZeroConfigBuild(localConfig.builds);
|
166013
166026
|
try {
|
166014
166027
|
let settings = {};
|
166015
166028
|
if (isZeroConfig) {
|
@@ -166111,6 +166124,7 @@ var init_setup_and_link = __esm({
|
|
166111
166124
|
import_path19 = require("path");
|
166112
166125
|
import_chalk43 = __toESM3(require_source());
|
166113
166126
|
import_fs_extra12 = __toESM3(require_lib());
|
166127
|
+
init_is_zero_config_build();
|
166114
166128
|
init_link2();
|
166115
166129
|
init_create_project();
|
166116
166130
|
init_handle_error();
|
@@ -169489,7 +169503,7 @@ var require_npa = __commonJS2({
|
|
169489
169503
|
module2.exports.Result = Result;
|
169490
169504
|
var url3;
|
169491
169505
|
var HostedGit;
|
169492
|
-
var
|
169506
|
+
var semver3;
|
169493
169507
|
var path11;
|
169494
169508
|
var validatePackageName;
|
169495
169509
|
var osenv;
|
@@ -169737,10 +169751,10 @@ var require_npa = __commonJS2({
|
|
169737
169751
|
const spec = res.rawSpec === "" ? "latest" : res.rawSpec;
|
169738
169752
|
res.saveSpec = null;
|
169739
169753
|
res.fetchSpec = spec;
|
169740
|
-
if (!
|
169741
|
-
|
169742
|
-
const version2 =
|
169743
|
-
const range =
|
169754
|
+
if (!semver3)
|
169755
|
+
semver3 = require_semver();
|
169756
|
+
const version2 = semver3.valid(spec, true);
|
169757
|
+
const range = semver3.validRange(spec, true);
|
169744
169758
|
if (version2) {
|
169745
169759
|
res.type = "version";
|
169746
169760
|
} else if (range) {
|
@@ -170093,7 +170107,7 @@ var init_corepack = __esm({
|
|
170093
170107
|
// src/util/build/sort-builders.ts
|
170094
170108
|
function sortBuilders(builds) {
|
170095
170109
|
const frontendRuntimeSet2 = new Set(
|
170096
|
-
import_frameworks3.
|
170110
|
+
import_frameworks3.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
|
170097
170111
|
);
|
170098
170112
|
const toNumber = (build2) => frontendRuntimeSet2.has(build2.use) ? 0 : 1;
|
170099
170113
|
return builds.sort((build1, build2) => {
|
@@ -170851,7 +170865,7 @@ async function doBuild(client2, project, buildsJson, cwd2, outputDir) {
|
|
170851
170865
|
async function getFramework(cwd2, buildResults) {
|
170852
170866
|
const detectedFramework = await (0, import_fs_detectors4.detectFrameworkRecord)({
|
170853
170867
|
fs: new import_fs_detectors4.LocalFileSystemDetector(cwd2),
|
170854
|
-
frameworkList: import_frameworks4.
|
170868
|
+
frameworkList: import_frameworks4.frameworkList
|
170855
170869
|
});
|
170856
170870
|
if (!detectedFramework) {
|
170857
170871
|
return;
|
@@ -171867,50 +171881,6 @@ var init_certs = __esm({
|
|
171867
171881
|
}
|
171868
171882
|
});
|
171869
171883
|
|
171870
|
-
// src/util/parse-meta.ts
|
171871
|
-
function parseMeta(meta) {
|
171872
|
-
if (!meta) {
|
171873
|
-
return {};
|
171874
|
-
}
|
171875
|
-
if (typeof meta === "string") {
|
171876
|
-
meta = [meta];
|
171877
|
-
}
|
171878
|
-
const parsed = {};
|
171879
|
-
for (const item of meta) {
|
171880
|
-
const [key, ...rest] = item.split("=");
|
171881
|
-
parsed[key] = rest.join("=");
|
171882
|
-
}
|
171883
|
-
return parsed;
|
171884
|
-
}
|
171885
|
-
var init_parse_meta = __esm({
|
171886
|
-
"src/util/parse-meta.ts"() {
|
171887
|
-
"use strict";
|
171888
|
-
}
|
171889
|
-
});
|
171890
|
-
|
171891
|
-
// src/util/get-project-name.ts
|
171892
|
-
function getProjectName({
|
171893
|
-
argv: argv2,
|
171894
|
-
nowConfig = {},
|
171895
|
-
paths = []
|
171896
|
-
}) {
|
171897
|
-
const nameCli = argv2["--name"];
|
171898
|
-
if (nameCli) {
|
171899
|
-
return nameCli;
|
171900
|
-
}
|
171901
|
-
if (nowConfig.name) {
|
171902
|
-
return nowConfig.name;
|
171903
|
-
}
|
171904
|
-
return (0, import_path30.basename)(paths[0] || "");
|
171905
|
-
}
|
171906
|
-
var import_path30;
|
171907
|
-
var init_get_project_name = __esm({
|
171908
|
-
"src/util/get-project-name.ts"() {
|
171909
|
-
"use strict";
|
171910
|
-
import_path30 = require("path");
|
171911
|
-
}
|
171912
|
-
});
|
171913
|
-
|
171914
171884
|
// src/util/deploy/get-deployment-checks.ts
|
171915
171885
|
async function getDeploymentChecks(client2, deploymentId) {
|
171916
171886
|
const checksResponse = await client2.fetch(
|
@@ -171924,6 +171894,23 @@ var init_get_deployment_checks = __esm({
|
|
171924
171894
|
}
|
171925
171895
|
});
|
171926
171896
|
|
171897
|
+
// src/util/deploy/get-prebuilt-json.ts
|
171898
|
+
async function getPrebuiltJson(directory) {
|
171899
|
+
try {
|
171900
|
+
return await import_fs_extra19.default.readJSON((0, import_path30.join)(directory, ".vercel/output/builds.json"));
|
171901
|
+
} catch (error4) {
|
171902
|
+
}
|
171903
|
+
return null;
|
171904
|
+
}
|
171905
|
+
var import_fs_extra19, import_path30;
|
171906
|
+
var init_get_prebuilt_json = __esm({
|
171907
|
+
"src/util/deploy/get-prebuilt-json.ts"() {
|
171908
|
+
"use strict";
|
171909
|
+
import_fs_extra19 = __toESM3(require_lib());
|
171910
|
+
import_path30 = require("path");
|
171911
|
+
}
|
171912
|
+
});
|
171913
|
+
|
171927
171914
|
// src/util/deploy/parse-target.ts
|
171928
171915
|
function parseTarget(output2, targetArg, prodArg) {
|
171929
171916
|
if (targetArg) {
|
@@ -171958,36 +171945,6 @@ var init_parse_target = __esm({
|
|
171958
171945
|
}
|
171959
171946
|
});
|
171960
171947
|
|
171961
|
-
// src/util/deploy/get-prebuilt-json.ts
|
171962
|
-
async function getPrebuiltJson(directory) {
|
171963
|
-
try {
|
171964
|
-
return await import_fs_extra19.default.readJSON((0, import_path31.join)(directory, ".vercel/output/builds.json"));
|
171965
|
-
} catch (error4) {
|
171966
|
-
}
|
171967
|
-
return null;
|
171968
|
-
}
|
171969
|
-
var import_fs_extra19, import_path31;
|
171970
|
-
var init_get_prebuilt_json = __esm({
|
171971
|
-
"src/util/deploy/get-prebuilt-json.ts"() {
|
171972
|
-
"use strict";
|
171973
|
-
import_fs_extra19 = __toESM3(require_lib());
|
171974
|
-
import_path31 = require("path");
|
171975
|
-
}
|
171976
|
-
});
|
171977
|
-
|
171978
|
-
// src/util/deploy/validate-archive-format.ts
|
171979
|
-
function isValidArchive(archive) {
|
171980
|
-
return validArchiveFormats.has(archive);
|
171981
|
-
}
|
171982
|
-
var import_client9, validArchiveFormats;
|
171983
|
-
var init_validate_archive_format = __esm({
|
171984
|
-
"src/util/deploy/validate-archive-format.ts"() {
|
171985
|
-
"use strict";
|
171986
|
-
import_client9 = __toESM3(require_dist10());
|
171987
|
-
validArchiveFormats = new Set(import_client9.VALID_ARCHIVE_FORMATS);
|
171988
|
-
}
|
171989
|
-
});
|
171990
|
-
|
171991
171948
|
// src/util/deploy/is-deploying.ts
|
171992
171949
|
function isDeploying(readyState) {
|
171993
171950
|
return deploymentInProgressStates.includes(readyState);
|
@@ -172067,6 +172024,63 @@ var init_print_deployment_status = __esm({
|
|
172067
172024
|
}
|
172068
172025
|
});
|
172069
172026
|
|
172027
|
+
// src/util/deploy/validate-archive-format.ts
|
172028
|
+
function isValidArchive(archive) {
|
172029
|
+
return validArchiveFormats.has(archive);
|
172030
|
+
}
|
172031
|
+
var import_client9, validArchiveFormats;
|
172032
|
+
var init_validate_archive_format = __esm({
|
172033
|
+
"src/util/deploy/validate-archive-format.ts"() {
|
172034
|
+
"use strict";
|
172035
|
+
import_client9 = __toESM3(require_dist10());
|
172036
|
+
validArchiveFormats = new Set(import_client9.VALID_ARCHIVE_FORMATS);
|
172037
|
+
}
|
172038
|
+
});
|
172039
|
+
|
172040
|
+
// src/util/get-project-name.ts
|
172041
|
+
function getProjectName({
|
172042
|
+
argv: argv2,
|
172043
|
+
nowConfig = {},
|
172044
|
+
paths = []
|
172045
|
+
}) {
|
172046
|
+
const nameCli = argv2["--name"];
|
172047
|
+
if (nameCli) {
|
172048
|
+
return nameCli;
|
172049
|
+
}
|
172050
|
+
if (nowConfig.name) {
|
172051
|
+
return nowConfig.name;
|
172052
|
+
}
|
172053
|
+
return (0, import_path31.basename)(paths[0] || "");
|
172054
|
+
}
|
172055
|
+
var import_path31;
|
172056
|
+
var init_get_project_name = __esm({
|
172057
|
+
"src/util/get-project-name.ts"() {
|
172058
|
+
"use strict";
|
172059
|
+
import_path31 = require("path");
|
172060
|
+
}
|
172061
|
+
});
|
172062
|
+
|
172063
|
+
// src/util/parse-meta.ts
|
172064
|
+
function parseMeta(meta) {
|
172065
|
+
if (!meta) {
|
172066
|
+
return {};
|
172067
|
+
}
|
172068
|
+
if (typeof meta === "string") {
|
172069
|
+
meta = [meta];
|
172070
|
+
}
|
172071
|
+
const parsed = {};
|
172072
|
+
for (const item of meta) {
|
172073
|
+
const [key, ...rest] = item.split("=");
|
172074
|
+
parsed[key] = rest.join("=");
|
172075
|
+
}
|
172076
|
+
return parsed;
|
172077
|
+
}
|
172078
|
+
var init_parse_meta = __esm({
|
172079
|
+
"src/util/parse-meta.ts"() {
|
172080
|
+
"use strict";
|
172081
|
+
}
|
172082
|
+
});
|
172083
|
+
|
172070
172084
|
// src/commands/deploy/command.ts
|
172071
172085
|
var deployCommand;
|
172072
172086
|
var init_command6 = __esm({
|
@@ -172313,52 +172327,52 @@ function handleCreateDeployError(output2, error4, localConfig) {
|
|
172313
172327
|
}
|
172314
172328
|
return error4;
|
172315
172329
|
}
|
172316
|
-
var
|
172330
|
+
var import_build_utils14, import_client10, import_error_utils18, import_bytes5, import_chalk53, import_fs_extra20, import_ms10, import_path32, deploy_default, addProcessEnv;
|
172317
172331
|
var init_deploy = __esm({
|
172318
172332
|
"src/commands/deploy/index.ts"() {
|
172319
172333
|
"use strict";
|
172320
|
-
|
172321
|
-
|
172334
|
+
import_build_utils14 = require("@vercel/build-utils");
|
172335
|
+
init_is_zero_config_build();
|
172336
|
+
import_client10 = __toESM3(require_dist10());
|
172337
|
+
import_error_utils18 = __toESM3(require_dist2());
|
172322
172338
|
import_bytes5 = __toESM3(require_bytes());
|
172323
172339
|
import_chalk53 = __toESM3(require_source());
|
172324
|
-
|
172340
|
+
import_fs_extra20 = __toESM3(require_lib());
|
172341
|
+
import_ms10 = __toESM3(require_ms2());
|
172325
172342
|
import_path32 = require("path");
|
172326
|
-
import_client10 = __toESM3(require_dist10());
|
172327
|
-
init_code();
|
172328
|
-
init_highlight();
|
172329
|
-
init_files();
|
172330
|
-
init_get_args();
|
172331
|
-
init_error2();
|
172332
|
-
import_build_utils14 = require("@vercel/build-utils");
|
172333
|
-
init_humanize_path();
|
172334
172343
|
init_util();
|
172335
|
-
|
172344
|
+
init_files();
|
172345
|
+
init_create_git_meta();
|
172336
172346
|
init_create_deploy();
|
172337
|
-
|
172338
|
-
|
172339
|
-
|
172340
|
-
|
172341
|
-
|
172347
|
+
init_get_deployment_checks();
|
172348
|
+
init_get_prebuilt_json();
|
172349
|
+
init_parse_target();
|
172350
|
+
init_print_deployment_status();
|
172351
|
+
init_validate_archive_format();
|
172342
172352
|
init_purchase_domain_if_available();
|
172353
|
+
init_emoji();
|
172354
|
+
init_error2();
|
172355
|
+
init_errors();
|
172356
|
+
init_errors_ts();
|
172357
|
+
init_get_args();
|
172358
|
+
init_get_deployment();
|
172359
|
+
init_get_project_name();
|
172360
|
+
init_humanize_path();
|
172343
172361
|
init_confirm();
|
172344
172362
|
init_edit_project_settings();
|
172345
|
-
init_link2();
|
172346
|
-
init_get_project_name();
|
172347
|
-
init_select_org();
|
172348
172363
|
init_input_project();
|
172349
|
-
init_emoji();
|
172350
172364
|
init_input_root_directory();
|
172351
|
-
|
172352
|
-
|
172353
|
-
|
172354
|
-
|
172355
|
-
|
172356
|
-
init_create_git_meta();
|
172357
|
-
init_validate_archive_format();
|
172365
|
+
init_select_org();
|
172366
|
+
init_code();
|
172367
|
+
init_highlight();
|
172368
|
+
init_param();
|
172369
|
+
init_stamp();
|
172358
172370
|
init_parse_env();
|
172359
|
-
|
172371
|
+
init_parse_meta();
|
172372
|
+
init_pkg_name();
|
172373
|
+
init_link2();
|
172360
172374
|
init_project_settings();
|
172361
|
-
|
172375
|
+
init_validate_paths();
|
172362
172376
|
init_help();
|
172363
172377
|
init_command6();
|
172364
172378
|
deploy_default = async (client2) => {
|
@@ -172683,9 +172697,13 @@ var init_deploy = __esm({
|
|
172683
172697
|
);
|
172684
172698
|
let nodeVersion;
|
172685
172699
|
if (packageJson?.engines?.node) {
|
172686
|
-
|
172687
|
-
|
172688
|
-
nodeVersion =
|
172700
|
+
try {
|
172701
|
+
const { range } = await (0, import_build_utils14.getSupportedNodeVersion)(packageJson.engines.node);
|
172702
|
+
nodeVersion = range;
|
172703
|
+
} catch (error5) {
|
172704
|
+
if (error5 instanceof Error) {
|
172705
|
+
output2.warn(error5.message);
|
172706
|
+
}
|
172689
172707
|
}
|
172690
172708
|
}
|
172691
172709
|
try {
|
@@ -172715,7 +172733,7 @@ var init_deploy = __esm({
|
|
172715
172733
|
noWait,
|
172716
172734
|
autoAssignCustomDomains
|
172717
172735
|
};
|
172718
|
-
if (
|
172736
|
+
if (isZeroConfigBuild(localConfig.builds)) {
|
172719
172737
|
createArgs.projectSettings = {
|
172720
172738
|
sourceFilesOutsideRootDirectory,
|
172721
172739
|
rootDirectory,
|
@@ -186601,7 +186619,7 @@ var init_server = __esm({
|
|
186601
186619
|
init_project_settings();
|
186602
186620
|
init_parse_listen();
|
186603
186621
|
frontendRuntimeSet = new Set(
|
186604
|
-
import_frameworks5.
|
186622
|
+
import_frameworks5.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
|
186605
186623
|
);
|
186606
186624
|
DevServer = class {
|
186607
186625
|
constructor(cwd2, options) {
|
@@ -187546,7 +187564,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
187546
187564
|
return this.projectSettings.devCommand;
|
187547
187565
|
} else if (this.projectSettings?.framework) {
|
187548
187566
|
const frameworkSlug = this.projectSettings.framework;
|
187549
|
-
const framework = import_frameworks5.
|
187567
|
+
const framework = import_frameworks5.frameworkList.find((f) => f.slug === frameworkSlug);
|
187550
187568
|
if (framework) {
|
187551
187569
|
const defaults = framework.settings.devCommand.value;
|
187552
187570
|
if (defaults) {
|
@@ -188679,7 +188697,7 @@ function text({
|
|
188679
188697
|
// Tab
|
188680
188698
|
// Right arrow
|
188681
188699
|
autoCompleteChars = /* @__PURE__ */ new Set([" ", "\x1B[C"]),
|
188682
|
-
// If true, converts everything the user types to
|
188700
|
+
// If true, converts everything the user types to lowercase
|
188683
188701
|
forceLowerCase = false
|
188684
188702
|
} = {}) {
|
188685
188703
|
return new Promise((resolve12, reject) => {
|
@@ -191535,7 +191553,7 @@ var init_known_error = __esm({
|
|
191535
191553
|
|
191536
191554
|
// src/commands/env/add.ts
|
191537
191555
|
async function add5(client2, project, opts, args2, output2) {
|
191538
|
-
init_patch_inquirer();
|
191556
|
+
await Promise.resolve().then(() => (init_patch_inquirer(), patch_inquirer_exports));
|
191539
191557
|
const stdInput = await readStandardInput(client2.stdin);
|
191540
191558
|
let [envName, envTargetArg, envGitBranch] = args2;
|
191541
191559
|
if (args2.length > 3) {
|
@@ -191811,7 +191829,7 @@ var init_remove_env_record = __esm({
|
|
191811
191829
|
|
191812
191830
|
// src/commands/env/rm.ts
|
191813
191831
|
async function rm5(client2, project, opts, args2, output2) {
|
191814
|
-
init_patch_inquirer();
|
191832
|
+
await Promise.resolve().then(() => (init_patch_inquirer(), patch_inquirer_exports));
|
191815
191833
|
if (args2.length > 3) {
|
191816
191834
|
output2.error(
|
191817
191835
|
`Invalid number of arguments. Usage: ${getCommandName(
|
@@ -196940,9 +196958,13 @@ var init_command24 = __esm({
|
|
196940
196958
|
init_pkg_name();
|
196941
196959
|
secretsCommand = {
|
196942
196960
|
name: "secrets",
|
196943
|
-
description: `
|
196961
|
+
description: `WARNING: On May 1st, 2024 secrets will be automatically converted to sensitive Environment Variables for Preview and Production environments. Secrets attached to Development environments will not be migrated.
|
196962
|
+
The ${getCommandName(
|
196963
|
+
"secrets"
|
196964
|
+
)} command will be deprecated at this time, please use the ${getCommandName(
|
196944
196965
|
"env"
|
196945
|
-
)} command
|
196966
|
+
)} command instead.
|
196967
|
+
See https://vercel.com/changelog/legacy-environment-variable-secrets-are-being-sunset for more information.`,
|
196946
196968
|
arguments: [
|
196947
196969
|
{
|
196948
196970
|
name: "command",
|
@@ -197046,6 +197068,9 @@ async function run({ output: output2, contextName, currentTeam, client: client2
|
|
197046
197068
|
const start = Date.now();
|
197047
197069
|
const { "--test-warning": testWarningFlag } = argv;
|
197048
197070
|
const commandName = getCommandName("secret " + subcommand);
|
197071
|
+
output2.warn(
|
197072
|
+
"On May 1st, 2024 secrets will be automatically converted to sensitive Environment Variables for Preview and Production environments.\nSecrets attached to Development environments will not be migrated.See https://vercel.com/changelog/legacy-environment-variable-secrets-are-being-sunset for more information."
|
197073
|
+
);
|
197049
197074
|
if (subcommand === "ls" || subcommand === "list") {
|
197050
197075
|
output2.note(
|
197051
197076
|
`The ${getCommandName(
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "33.6.
|
3
|
+
"version": "33.6.2",
|
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.10.0",
|
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.25",
|
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.5",
|
33
33
|
"@vercel/ruby": "2.0.5",
|
34
|
-
"@vercel/static-build": "2.4.
|
34
|
+
"@vercel/static-build": "2.4.5",
|
35
35
|
"chokidar": "3.3.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -78,12 +78,13 @@
|
|
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.28",
|
82
|
+
"@vercel/client": "13.1.8",
|
83
83
|
"@vercel/error-utils": "2.0.2",
|
84
|
-
"@vercel/frameworks": "3.0.
|
85
|
-
"@vercel/fs-detectors": "5.2.
|
84
|
+
"@vercel/frameworks": "3.0.1",
|
85
|
+
"@vercel/fs-detectors": "5.2.2",
|
86
86
|
"@vercel/routing-utils": "3.1.0",
|
87
|
+
"@vitest/expect": "1.4.0",
|
87
88
|
"ajv": "6.12.2",
|
88
89
|
"alpha-sort": "2.0.1",
|
89
90
|
"ansi-escapes": "4.3.2",
|
@@ -155,6 +156,8 @@
|
|
155
156
|
"ts-node": "10.9.1",
|
156
157
|
"universal-analytics": "0.4.20",
|
157
158
|
"utility-types": "2.1.0",
|
159
|
+
"vite": "5.1.6",
|
160
|
+
"vitest": "1.3.1",
|
158
161
|
"which": "3.0.0",
|
159
162
|
"write-json-file": "2.2.0",
|
160
163
|
"xdg-app-paths": "5.1.0",
|
@@ -162,7 +165,7 @@
|
|
162
165
|
},
|
163
166
|
"scripts": {
|
164
167
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|
165
|
-
"test-unit": "pnpm
|
168
|
+
"test-unit": "pnpm vitest test/unit/",
|
166
169
|
"test-e2e": "rimraf test/fixtures/integration && pnpm test test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts",
|
167
170
|
"test-dev": "pnpm test test/dev/",
|
168
171
|
"coverage": "codecov",
|