vercel 34.1.7 → 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.
Files changed (2) hide show
  1. package/dist/index.js +14 -11
  2. 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: String,
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
- const argv2 = getArgs(client2.argv.slice(2), {
146389
- "--output": String,
146390
- "--prod": Boolean,
146391
- "--yes": Boolean,
146392
- "-y": "--yes"
146393
- });
146394
- if (argv2["--help"]) {
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 = argv2["--prod"] ? "production" : "preview";
146399
- const yes = Boolean(argv2["--yes"]);
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 = argv2["--output"] ? (0, import_path28.resolve)(argv2["--output"]) : defaultOutputDir;
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.7",
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.6",
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.2",
34
+ "@vercel/static-build": "2.5.3",
35
35
  "chokidar": "3.3.1"
36
36
  },
37
37
  "devDependencies": {