vercel 55.0.0 → 56.1.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.
Files changed (68) hide show
  1. package/dist/chunks/{add-YRFK663I.js → add-323XURMF.js} +6 -6
  2. package/dist/chunks/{add-BQGGX36J.js → add-CAG6USJE.js} +5 -5
  3. package/dist/chunks/{chunk-SENGDDFO.js → chunk-2LVETUK7.js} +1 -1
  4. package/dist/chunks/{chunk-LHY5EFII.js → chunk-3XCDGACN.js} +3 -3
  5. package/dist/chunks/{chunk-OKWMOW2F.js → chunk-4YWIGTZR.js} +9 -6
  6. package/dist/chunks/{chunk-VTA3KZUX.js → chunk-6HNQJHQP.js} +3 -3
  7. package/dist/chunks/{chunk-EJV2KFOF.js → chunk-6NECZQWO.js} +3 -3
  8. package/dist/chunks/{chunk-2QBF3ZL3.js → chunk-CB3I3QIT.js} +3 -4
  9. package/dist/chunks/{chunk-OCEM4YAQ.js → chunk-CQEYCOBR.js} +1 -1
  10. package/dist/chunks/{chunk-A5QK4X3Z.js → chunk-CWSK7WS2.js} +4 -4
  11. package/dist/chunks/{chunk-2XTV2FM7.js → chunk-CZLKIVVT.js} +1 -1
  12. package/dist/chunks/{chunk-QKR7GNAK.js → chunk-DREO3DFB.js} +6 -6
  13. package/dist/chunks/{chunk-AW6V5LOC.js → chunk-DZGBBY3A.js} +4 -4
  14. package/dist/chunks/{chunk-D43MOSMZ.js → chunk-GW66OTWH.js} +165 -183
  15. package/dist/chunks/{chunk-ZQEZYHPJ.js → chunk-HAZVRYHI.js} +4 -4
  16. package/dist/chunks/{chunk-QH7WYDEP.js → chunk-IC4YEIGW.js} +7 -0
  17. package/dist/chunks/{chunk-6CRRXESK.js → chunk-O7ZMPY6L.js} +1 -1
  18. package/dist/chunks/{chunk-EUARKVCA.js → chunk-PJ3UJGFX.js} +2 -2
  19. package/dist/chunks/{chunk-MGUQN3V3.js → chunk-Q42RNOJZ.js} +4 -4
  20. package/dist/chunks/{chunk-GVZKC6PS.js → chunk-SVSO76UB.js} +1 -1
  21. package/dist/chunks/{chunk-XHC5YRFY.js → chunk-TLHKETA6.js} +37 -8
  22. package/dist/chunks/{chunk-IIUE7CDZ.js → chunk-U5MCEDDN.js} +1 -1
  23. package/dist/chunks/{chunk-AA3E7OLF.js → chunk-VBLL2YSE.js} +1 -1
  24. package/dist/chunks/{chunk-ZZIAWRCX.js → chunk-W346YNDN.js} +18 -0
  25. package/dist/chunks/{chunk-HOYOJUQZ.js → chunk-X73W5HTJ.js} +4 -4
  26. package/dist/chunks/{chunk-X36ADWA5.js → chunk-ZDKEZNOJ.js} +1 -1
  27. package/dist/chunks/{compile-vercel-config-3RYUGKGU.js → compile-vercel-config-TIO3FAYI.js} +2 -2
  28. package/dist/chunks/{delete-UQKVMHVV.js → delete-6TCLBG25.js} +5 -5
  29. package/dist/chunks/{disable-GUK4VHQY.js → disable-7SOBOP2H.js} +5 -5
  30. package/dist/chunks/{discard-DTI36R2T.js → discard-YGXO5GP5.js} +5 -5
  31. package/dist/chunks/{edit-ED4LM54G.js → edit-KL2O6AGH.js} +6 -6
  32. package/dist/chunks/{enable-RAWDG7GZ.js → enable-BJG2XLCD.js} +5 -5
  33. package/dist/chunks/{export-U6OBSYVP.js → export-32T5VGVA.js} +9 -8
  34. package/dist/chunks/{image-LIJI6QJY.js → image-PXN76ZCH.js} +5 -5
  35. package/dist/chunks/{inspect-IQD2ULLP.js → inspect-EIQBBWPM.js} +5 -5
  36. package/dist/chunks/{inspect-7LGTAPH3.js → inspect-IMS5XUMF.js} +5 -5
  37. package/dist/chunks/{inspect-25D5G5FX.js → inspect-N2UQFFNL.js} +5 -5
  38. package/dist/chunks/{inspect-3SEYQNWT.js → inspect-TSK2LYUI.js} +5 -5
  39. package/dist/chunks/{list-I25HBKWF.js → list-OHXBNQJW.js} +3 -3
  40. package/dist/chunks/{list-2IJHE2AC.js → list-RELZVTWN.js} +5 -5
  41. package/dist/chunks/{login-N4DIZZWE.js → login-JEAMS6RC.js} +5 -5
  42. package/dist/chunks/{ls-HN3SUOPA.js → ls-3RMT2VAX.js} +6 -6
  43. package/dist/chunks/{ls-2VXZPNMR.js → ls-6LX7JBT4.js} +5 -5
  44. package/dist/chunks/{ls-S7YPR3OS.js → ls-IOR6RY2E.js} +5 -5
  45. package/dist/chunks/{ls-TFOKQKY3.js → ls-VLBSSAUI.js} +5 -5
  46. package/dist/chunks/{publish-ZTGB4XE2.js → publish-RP7M4QTZ.js} +5 -5
  47. package/dist/chunks/{query-2UK5BV4B.js → query-CZVPJ4DQ.js} +3 -3
  48. package/dist/chunks/{reorder-FM755TJK.js → reorder-M25MRPFN.js} +5 -5
  49. package/dist/chunks/{restore-NXQJMPMT.js → restore-NC5F6U4W.js} +5 -5
  50. package/dist/chunks/{rm-XJMPAJNP.js → rm-54DKY5WE.js} +5 -5
  51. package/dist/chunks/{rm-III6VASE.js → rm-NE33ZYNW.js} +5 -5
  52. package/dist/chunks/{rm-MPC5DPOS.js → rm-NFJ4Z7OV.js} +6 -6
  53. package/dist/chunks/{rule-inspect-BJGXMAO5.js → rule-inspect-JAULGGMI.js} +6 -6
  54. package/dist/chunks/{rules-FSNWMWJH.js → rules-KFLYMN6N.js} +8 -8
  55. package/dist/chunks/{schema-NR6DGYCB.js → schema-D2ECKUMA.js} +3 -3
  56. package/dist/chunks/{tags-RVHMONZN.js → tags-22H3MYVI.js} +4 -4
  57. package/dist/chunks/{update-55OM2454.js → update-7CBX7VDA.js} +6 -6
  58. package/dist/commands/build/index.js +31 -16
  59. package/dist/commands/deploy/index.js +13 -13
  60. package/dist/commands/dev/index.js +10 -10
  61. package/dist/commands/env/index.js +8 -18
  62. package/dist/commands/link/index.js +10 -10
  63. package/dist/commands/list/index.js +4 -4
  64. package/dist/commands-bulk.js +4558 -2817
  65. package/dist/index.js +10 -20
  66. package/dist/vc.js +51 -0
  67. package/dist/version.mjs +1 -1
  68. package/package.json +22 -21
@@ -9,8 +9,8 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesCollectionPath
12
- } from "./chunk-LHY5EFII.js";
13
- import "./chunk-AW6V5LOC.js";
12
+ } from "./chunk-3XCDGACN.js";
13
+ import "./chunk-DZGBBY3A.js";
14
14
  import "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  validateJsonOutput
@@ -20,13 +20,13 @@ import {
20
20
  } from "./chunk-22GUZ5KG.js";
21
21
  import {
22
22
  AGENT_REASON
23
- } from "./chunk-QH7WYDEP.js";
24
- import "./chunk-OCEM4YAQ.js";
25
- import "./chunk-XHC5YRFY.js";
23
+ } from "./chunk-IC4YEIGW.js";
24
+ import "./chunk-CQEYCOBR.js";
25
+ import "./chunk-TLHKETA6.js";
26
26
  import {
27
27
  buildCommandWithGlobalFlags,
28
28
  outputAgentError
29
- } from "./chunk-2QBF3ZL3.js";
29
+ } from "./chunk-CB3I3QIT.js";
30
30
  import "./chunk-ECCWJHC6.js";
31
31
  import {
32
32
  getFlagsSpecification,
@@ -9,7 +9,7 @@ import {
9
9
  handleVcrApiError,
10
10
  resolveVcrScope,
11
11
  validateVcrJsonOutput
12
- } from "./chunk-MGUQN3V3.js";
12
+ } from "./chunk-Q42RNOJZ.js";
13
13
  import {
14
14
  outputError
15
15
  } from "./chunk-BUZRVER7.js";
@@ -21,13 +21,13 @@ import "./chunk-7C7MMT4J.js";
21
21
  import "./chunk-RLJA2KI7.js";
22
22
  import {
23
23
  AGENT_REASON
24
- } from "./chunk-QH7WYDEP.js";
25
- import "./chunk-OCEM4YAQ.js";
26
- import "./chunk-XHC5YRFY.js";
24
+ } from "./chunk-IC4YEIGW.js";
25
+ import "./chunk-CQEYCOBR.js";
26
+ import "./chunk-TLHKETA6.js";
27
27
  import {
28
28
  buildCommandWithGlobalFlags,
29
29
  outputAgentError
30
- } from "./chunk-2QBF3ZL3.js";
30
+ } from "./chunk-CB3I3QIT.js";
31
31
  import "./chunk-ECCWJHC6.js";
32
32
  import {
33
33
  getFlagsSpecification,
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-VTA3KZUX.js";
11
+ } from "./chunk-6HNQJHQP.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-AW6V5LOC.js";
9
+ } from "./chunk-DZGBBY3A.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
@@ -14,11 +14,11 @@ import {
14
14
  } from "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  AGENT_REASON
17
- } from "./chunk-QH7WYDEP.js";
17
+ } from "./chunk-IC4YEIGW.js";
18
18
  import {
19
19
  buildCommandWithGlobalFlags,
20
20
  outputAgentError
21
- } from "./chunk-2QBF3ZL3.js";
21
+ } from "./chunk-CB3I3QIT.js";
22
22
 
23
23
  // src/commands/alerts/rules/parse-scope.ts
24
24
  async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
@@ -7,15 +7,15 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  AGENT_REASON,
9
9
  AGENT_STATUS
10
- } from "./chunk-QH7WYDEP.js";
10
+ } from "./chunk-IC4YEIGW.js";
11
11
  import {
12
12
  getLocalPathConfig,
13
13
  isPromptBackError,
14
14
  isPromptCanceledError
15
- } from "./chunk-AA3E7OLF.js";
15
+ } from "./chunk-VBLL2YSE.js";
16
16
  import {
17
17
  getScope
18
- } from "./chunk-OCEM4YAQ.js";
18
+ } from "./chunk-CQEYCOBR.js";
19
19
  import {
20
20
  table
21
21
  } from "./chunk-QEEGXNFK.js";
@@ -53,12 +53,12 @@ import {
53
53
  selectAndParseRemoteUrl,
54
54
  selectOrg,
55
55
  writeServicesConfig
56
- } from "./chunk-XHC5YRFY.js";
56
+ } from "./chunk-TLHKETA6.js";
57
57
  import {
58
58
  buildCommandWithGlobalFlags,
59
59
  outputAgentError,
60
60
  shouldEmitNonInteractiveCommandError
61
- } from "./chunk-2QBF3ZL3.js";
61
+ } from "./chunk-CB3I3QIT.js";
62
62
  import {
63
63
  printError
64
64
  } from "./chunk-EHTPDXTS.js";
@@ -81,6 +81,7 @@ import {
81
81
  var import_fs_extra = __toESM(require_lib(), 1);
82
82
  var import_chalk = __toESM(require_source(), 1);
83
83
  import { homedir } from "os";
84
+ import { resolve, sep } from "path";
84
85
  async function validateRootDirectory(cwd, path2, errorSuffix = "") {
85
86
  const pathStat = await (0, import_fs_extra.lstat)(path2).catch(() => null);
86
87
  const suffix = errorSuffix ? ` ${errorSuffix}` : "";
@@ -100,7 +101,9 @@ async function validateRootDirectory(cwd, path2, errorSuffix = "") {
100
101
  );
101
102
  return false;
102
103
  }
103
- if (!path2.startsWith(cwd)) {
104
+ const base = resolve(cwd);
105
+ const target = resolve(path2);
106
+ if (target !== base && !target.startsWith(base + sep)) {
104
107
  output_manager_default.error(
105
108
  `The provided path ${import_chalk.default.cyan(
106
109
  `\u201C${humanizePath(path2)}\u201D`
@@ -7,14 +7,14 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  AGENT_REASON,
9
9
  AGENT_STATUS
10
- } from "./chunk-QH7WYDEP.js";
10
+ } from "./chunk-IC4YEIGW.js";
11
11
  import {
12
12
  getLinkedProject
13
- } from "./chunk-XHC5YRFY.js";
13
+ } from "./chunk-TLHKETA6.js";
14
14
  import {
15
15
  buildCommandWithYes,
16
16
  outputAgentError
17
- } from "./chunk-2QBF3ZL3.js";
17
+ } from "./chunk-CB3I3QIT.js";
18
18
  import {
19
19
  getFlagsSpecification,
20
20
  getGlobalFlagsOnlyFromArgs,
@@ -7,16 +7,16 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  printProjectNotFoundError,
9
9
  setupAndLink
10
- } from "./chunk-OKWMOW2F.js";
10
+ } from "./chunk-4YWIGTZR.js";
11
11
  import {
12
12
  getLinkedProject,
13
13
  param,
14
14
  resolveProjectCwd
15
- } from "./chunk-XHC5YRFY.js";
15
+ } from "./chunk-TLHKETA6.js";
16
16
  import {
17
17
  buildCommandWithYes,
18
18
  outputActionRequired
19
- } from "./chunk-2QBF3ZL3.js";
19
+ } from "./chunk-CB3I3QIT.js";
20
20
  import {
21
21
  getCommandName,
22
22
  getCommandNamePlain
@@ -38,7 +38,7 @@ var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
38
38
  "-T"
39
39
  // --token/-t are intentionally excluded and stripped via stripSensitiveAuthArgs.
40
40
  ]);
41
- var BOOLEAN_GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
41
+ var GLOBAL_FLAGS_BOOLEAN = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
42
42
  var GLOBAL_FLAG_SHORTHANDS = {
43
43
  "-y": "--yes",
44
44
  "-S": "--scope",
@@ -55,7 +55,7 @@ function getGlobalFlagsFromArgv(argv) {
55
55
  const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
56
56
  if (GLOBAL_FLAG_NAMES.has(name)) {
57
57
  out.push(arg);
58
- const takesSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < args.length && !args[i + 1].startsWith("-");
58
+ const takesSeparateValue = !GLOBAL_FLAGS_BOOLEAN.has(name) && !arg.includes("=") && i + 1 < args.length && !args[i + 1].startsWith("-");
59
59
  if (takesSeparateValue) {
60
60
  out.push(args[i + 1]);
61
61
  i++;
@@ -71,7 +71,7 @@ function omitGlobalFlagsFromArgs(args) {
71
71
  const arg = safeArgs[i];
72
72
  const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
73
73
  if (GLOBAL_FLAG_NAMES.has(name)) {
74
- const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-");
74
+ const skipSeparateValue = !GLOBAL_FLAGS_BOOLEAN.has(name) && !arg.includes("=") && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-");
75
75
  if (skipSeparateValue) {
76
76
  i++;
77
77
  }
@@ -529,7 +529,6 @@ function openUrlInBrowserCommand(url) {
529
529
 
530
530
  export {
531
531
  buildCommandWithYes,
532
- getGlobalFlagsFromArgv,
533
532
  omitGlobalFlagsFromArgs,
534
533
  buildIntegrationCommandTailFromArgv,
535
534
  buildCommandWithGlobalFlags,
@@ -11,7 +11,7 @@ import {
11
11
  getTeamById,
12
12
  getUser,
13
13
  getVercelDirectory
14
- } from "./chunk-XHC5YRFY.js";
14
+ } from "./chunk-TLHKETA6.js";
15
15
  import {
16
16
  TeamDeleted
17
17
  } from "./chunk-P6AK7SVK.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-6CRRXESK.js";
9
+ } from "./chunk-O7ZMPY6L.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
12
  } from "./chunk-NJUPUGOE.js";
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  ensureLink
18
- } from "./chunk-EJV2KFOF.js";
18
+ } from "./chunk-6NECZQWO.js";
19
19
  import {
20
20
  pullCommand
21
- } from "./chunk-IIUE7CDZ.js";
21
+ } from "./chunk-U5MCEDDN.js";
22
22
  import {
23
23
  help
24
24
  } from "./chunk-QY63UKTP.js";
@@ -28,7 +28,7 @@ import {
28
28
  envPullCommandLogic,
29
29
  humanizePath,
30
30
  parseTarget
31
- } from "./chunk-XHC5YRFY.js";
31
+ } from "./chunk-TLHKETA6.js";
32
32
  import {
33
33
  TelemetryClient
34
34
  } from "./chunk-ECCWJHC6.js";
@@ -18,7 +18,7 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-XHC5YRFY.js";
21
+ } from "./chunk-TLHKETA6.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
@@ -828,7 +828,7 @@ var editSubcommand = {
828
828
  var exportSubcommand = {
829
829
  name: "export",
830
830
  aliases: [],
831
- description: "Export routes in vercel.json or vercel.ts format",
831
+ description: "Export routes to a vercel.json or vercel.ts file",
832
832
  arguments: [
833
833
  {
834
834
  name: "name-or-id",
@@ -837,11 +837,11 @@ var exportSubcommand = {
837
837
  ],
838
838
  options: [
839
839
  {
840
- name: "format",
841
- description: "Output format: json (default) or ts",
842
- shorthand: null,
840
+ name: "output",
841
+ description: "Output file format: .json (default) or .ts",
842
+ shorthand: "o",
843
843
  type: String,
844
- argument: "FORMAT",
844
+ argument: "json|ts",
845
845
  deprecated: false
846
846
  }
847
847
  ],
@@ -852,7 +852,7 @@ var exportSubcommand = {
852
852
  },
853
853
  {
854
854
  name: "Export as vercel.ts format",
855
- value: `${packageName} routes export --format ts`
855
+ value: `${packageName} routes export --output ts`
856
856
  },
857
857
  {
858
858
  name: "Export a specific route",
@@ -9,18 +9,18 @@ import {
9
9
  } from "./chunk-BUZRVER7.js";
10
10
  import {
11
11
  AGENT_REASON
12
- } from "./chunk-QH7WYDEP.js";
12
+ } from "./chunk-IC4YEIGW.js";
13
13
  import {
14
14
  getScope
15
- } from "./chunk-OCEM4YAQ.js";
15
+ } from "./chunk-CQEYCOBR.js";
16
16
  import {
17
17
  getLinkedProject,
18
18
  getProjectByNameOrId
19
- } from "./chunk-XHC5YRFY.js";
19
+ } from "./chunk-TLHKETA6.js";
20
20
  import {
21
21
  buildCommandWithGlobalFlags,
22
22
  outputAgentError
23
- } from "./chunk-2QBF3ZL3.js";
23
+ } from "./chunk-CB3I3QIT.js";
24
24
  import {
25
25
  ProjectNotFound,
26
26
  isAPIError