vercel 34.1.5 → 34.1.8
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 +14 -11
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -146309,7 +146309,7 @@ var init_command4 = __esm({
|
|
146309
146309
|
name: "prod",
|
146310
146310
|
description: "Build a production deployment",
|
146311
146311
|
shorthand: null,
|
146312
|
-
type:
|
146312
|
+
type: Boolean,
|
146313
146313
|
deprecated: false
|
146314
146314
|
},
|
146315
146315
|
{
|
@@ -146385,18 +146385,20 @@ async function main2(client2) {
|
|
146385
146385
|
} else {
|
146386
146386
|
process.env.__VERCEL_BUILD_RUNNING = "1";
|
146387
146387
|
}
|
146388
|
-
|
146389
|
-
|
146390
|
-
|
146391
|
-
|
146392
|
-
|
146393
|
-
|
146394
|
-
|
146388
|
+
let parsedArgs = null;
|
146389
|
+
const flagsSpecification = getFlagsSpecification(buildCommand.options);
|
146390
|
+
try {
|
146391
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
146392
|
+
} catch (error4) {
|
146393
|
+
handleError(error4);
|
146394
|
+
return 1;
|
146395
|
+
}
|
146396
|
+
if (parsedArgs.flags["--help"]) {
|
146395
146397
|
output2.print(help2(buildCommand, { columns: client2.stderr.columns }));
|
146396
146398
|
return 2;
|
146397
146399
|
}
|
146398
|
-
const target =
|
146399
|
-
const yes = Boolean(
|
146400
|
+
const target = parsedArgs.flags["--prod"] ? "production" : "preview";
|
146401
|
+
const yes = Boolean(parsedArgs.flags["--yes"]);
|
146400
146402
|
try {
|
146401
146403
|
await (0, import_build_utils13.validateNpmrc)(cwd);
|
146402
146404
|
} catch (err) {
|
@@ -146452,7 +146454,7 @@ async function main2(client2) {
|
|
146452
146454
|
project = await readProjectSettings(vercelDir);
|
146453
146455
|
}
|
146454
146456
|
const defaultOutputDir = (0, import_path28.join)(cwd, projectRootDirectory, OUTPUT_DIR);
|
146455
|
-
const outputDir =
|
146457
|
+
const outputDir = parsedArgs.flags["--output"] ? (0, import_path28.resolve)(parsedArgs.flags["--output"]) : defaultOutputDir;
|
146456
146458
|
await Promise.all([
|
146457
146459
|
import_fs_extra18.default.remove(outputDir),
|
146458
146460
|
// Also delete `.vercel/output`, in case the script is targeting Build Output API directly
|
@@ -146971,6 +146973,7 @@ var init_build = __esm({
|
|
146971
146973
|
init_help();
|
146972
146974
|
init_command4();
|
146973
146975
|
init_scrub_argv();
|
146976
|
+
init_get_flags_specification();
|
146974
146977
|
}
|
146975
146978
|
});
|
146976
146979
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "34.1.
|
3
|
+
"version": "34.1.8",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -25,13 +25,13 @@
|
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.1.1",
|
27
27
|
"@vercel/hydrogen": "1.0.2",
|
28
|
-
"@vercel/next": "4.2.
|
28
|
+
"@vercel/next": "4.2.7",
|
29
29
|
"@vercel/node": "3.0.28",
|
30
30
|
"@vercel/python": "4.2.0",
|
31
31
|
"@vercel/redwood": "2.0.8",
|
32
32
|
"@vercel/remix-builder": "2.1.5",
|
33
33
|
"@vercel/ruby": "2.1.0",
|
34
|
-
"@vercel/static-build": "2.5.
|
34
|
+
"@vercel/static-build": "2.5.3",
|
35
35
|
"chokidar": "3.3.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|