vercel 33.4.1 → 33.5.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/index.js +32 -2
- package/package.json +9 -9
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.2",
|
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.6.0",
|
62554
62554
|
"@vercel/error-utils": "2.0.2",
|
62555
62555
|
"@vercel/routing-utils": "3.1.0",
|
62556
62556
|
"@zeit/fetch": "5.2.0",
|
@@ -170835,9 +170835,11 @@ async function doBuild(client2, project, buildsJson, cwd2, outputDir) {
|
|
170835
170835
|
overrides: mergedOverrides,
|
170836
170836
|
framework,
|
170837
170837
|
crons: mergedCrons,
|
170838
|
+
/** @deprecated Replaced by Variants. Remove once fully replaced. */
|
170838
170839
|
flags: mergedFlags
|
170839
170840
|
};
|
170840
170841
|
await import_fs_extra18.default.writeJSON((0, import_path28.join)(outputDir, "config.json"), config3, { spaces: 2 });
|
170842
|
+
await writeVariantsJson(client2, buildResults.values(), outputDir);
|
170841
170843
|
const relOutputDir = (0, import_path28.relative)(cwd2, outputDir);
|
170842
170844
|
output2.print(
|
170843
170845
|
`${prependEmoji(
|
@@ -170944,6 +170946,34 @@ function mergeFlags(buildResults) {
|
|
170944
170946
|
return [];
|
170945
170947
|
});
|
170946
170948
|
}
|
170949
|
+
async function writeVariantsJson({ output: output2 }, buildResults, outputDir) {
|
170950
|
+
const variantsFilePath = (0, import_path28.join)(outputDir, "variants.json");
|
170951
|
+
let hasVariants = true;
|
170952
|
+
const variants = await import_fs_extra18.default.readJSON(variantsFilePath).catch((error4) => {
|
170953
|
+
if (error4.code === "ENOENT") {
|
170954
|
+
hasVariants = false;
|
170955
|
+
return { definitions: {} };
|
170956
|
+
}
|
170957
|
+
throw error4;
|
170958
|
+
});
|
170959
|
+
for (const result of buildResults) {
|
170960
|
+
if (!("variants" in result) || !result.variants)
|
170961
|
+
continue;
|
170962
|
+
for (const [key, defintion] of Object.entries(result.variants)) {
|
170963
|
+
if (result.variants[key]) {
|
170964
|
+
output2.warn(
|
170965
|
+
`The variant "${key}" was found multiple times. Only its first occurrence will be considered.`
|
170966
|
+
);
|
170967
|
+
continue;
|
170968
|
+
}
|
170969
|
+
hasVariants = true;
|
170970
|
+
variants.definitions[key] = defintion;
|
170971
|
+
}
|
170972
|
+
}
|
170973
|
+
if (hasVariants) {
|
170974
|
+
await import_fs_extra18.default.writeJSON(variantsFilePath, variants, { spaces: 2 });
|
170975
|
+
}
|
170976
|
+
}
|
170947
170977
|
async function writeBuildJson(buildsJson, outputDir) {
|
170948
170978
|
await import_fs_extra18.default.writeJSON((0, import_path28.join)(outputDir, "builds.json"), buildsJson, { spaces: 2 });
|
170949
170979
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "33.
|
3
|
+
"version": "33.5.0",
|
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.6.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.1",
|
29
|
+
"@vercel/node": "3.0.18",
|
30
30
|
"@vercel/python": "4.1.1",
|
31
|
-
"@vercel/redwood": "2.0.
|
32
|
-
"@vercel/remix-builder": "2.0.
|
31
|
+
"@vercel/redwood": "2.0.7",
|
32
|
+
"@vercel/remix-builder": "2.0.19",
|
33
33
|
"@vercel/ruby": "2.0.5",
|
34
|
-
"@vercel/static-build": "2.
|
34
|
+
"@vercel/static-build": "2.3.0",
|
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.22",
|
82
|
+
"@vercel/client": "13.1.2",
|
83
83
|
"@vercel/error-utils": "2.0.2",
|
84
84
|
"@vercel/frameworks": "2.0.6",
|
85
85
|
"@vercel/fs-detectors": "5.1.6",
|