vercel 54.21.0 → 55.0.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 (84) hide show
  1. package/dist/chunks/{add-KZSG7SVG.js → add-BQGGX36J.js} +8 -8
  2. package/dist/chunks/{add-UDJ45UVF.js → add-YRFK663I.js} +7 -7
  3. package/dist/chunks/{chunk-OGJB2GHI.js → chunk-22GUZ5KG.js} +1 -1
  4. package/dist/chunks/{chunk-DDS5Z2MB.js → chunk-2QBF3ZL3.js} +1 -0
  5. package/dist/chunks/{chunk-KGPSD6TA.js → chunk-2XTV2FM7.js} +100 -36
  6. package/dist/chunks/{chunk-ULKM3ZD4.js → chunk-4RGSUV5C.js} +2 -2
  7. package/dist/chunks/{chunk-UJ5UEAMC.js → chunk-5AJNUXWP.js} +1 -1
  8. package/dist/chunks/{chunk-KXGWAWRV.js → chunk-5OT26JZN.js} +35 -3
  9. package/dist/chunks/{chunk-JAUGUJR3.js → chunk-6CRRXESK.js} +1 -1
  10. package/dist/chunks/{chunk-RY3AVR6E.js → chunk-7C7MMT4J.js} +1 -1
  11. package/dist/chunks/chunk-7PZWVZN6.js +105 -0
  12. package/dist/chunks/{chunk-D2M77YVC.js → chunk-7S3QUMIG.js} +2 -2
  13. package/dist/chunks/{chunk-TYXSXFVM.js → chunk-A5QK4X3Z.js} +6 -6
  14. package/dist/chunks/{chunk-6SVPJXCO.js → chunk-AA3E7OLF.js} +30 -3
  15. package/dist/chunks/{chunk-VFXF4O4X.js → chunk-AW6V5LOC.js} +3 -3
  16. package/dist/chunks/{chunk-I3HGCZ4E.js → chunk-CMJMYVQM.js} +1 -0
  17. package/dist/chunks/{chunk-SCQAJO6E.js → chunk-D43MOSMZ.js} +425 -22
  18. package/dist/chunks/{chunk-EJ6GQI6F.js → chunk-EHTPDXTS.js} +1 -0
  19. package/dist/chunks/{chunk-JIX2UI23.js → chunk-EJV2KFOF.js} +3 -3
  20. package/dist/chunks/{chunk-FCYCUCLI.js → chunk-EUARKVCA.js} +83 -20
  21. package/dist/chunks/{chunk-HAZXLIKZ.js → chunk-GVZKC6PS.js} +1 -1
  22. package/dist/chunks/{chunk-FNRZFHFO.js → chunk-HA7C7SDO.js} +3 -1
  23. package/dist/chunks/{chunk-KS5FONWU.js → chunk-HOYOJUQZ.js} +70 -17
  24. package/dist/chunks/{chunk-DFEUWDGM.js → chunk-IDMKFYEA.js} +1 -1
  25. package/dist/chunks/{chunk-S2N7BLSM.js → chunk-IIUE7CDZ.js} +2 -2
  26. package/dist/chunks/{chunk-MAJWH2PD.js → chunk-JJWESW5Y.js} +1 -1
  27. package/dist/chunks/{chunk-DBA4N3OZ.js → chunk-LHY5EFII.js} +2 -2
  28. package/dist/chunks/{chunk-BEETD7P4.js → chunk-MGUQN3V3.js} +3 -3
  29. package/dist/chunks/{chunk-LVR7QUSG.js → chunk-OCEM4YAQ.js} +1 -1
  30. package/dist/chunks/{chunk-UDIFOPZL.js → chunk-OKWMOW2F.js} +354 -404
  31. package/dist/chunks/{chunk-VKBYAWTL.js → chunk-QEEGXNFK.js} +1 -1
  32. package/dist/chunks/{chunk-EFUR47FZ.js → chunk-QKR7GNAK.js} +1 -1
  33. package/dist/chunks/{chunk-YSIZGIDP.js → chunk-QY63UKTP.js} +2 -2
  34. package/dist/chunks/{chunk-AUECDTMX.js → chunk-RLJA2KI7.js} +1 -1
  35. package/dist/chunks/{chunk-DJ4JEVDI.js → chunk-SENGDDFO.js} +1 -1
  36. package/dist/chunks/{chunk-VDTSYCXY.js → chunk-VTA3KZUX.js} +3 -3
  37. package/dist/chunks/chunk-WGGABYO5.js +31 -0
  38. package/dist/chunks/{chunk-6W7I5IOO.js → chunk-X36ADWA5.js} +51 -9
  39. package/dist/chunks/{chunk-IR674PKY.js → chunk-XHC5YRFY.js} +451 -274
  40. package/dist/chunks/{chunk-BLWPQEED.js → chunk-ZQEZYHPJ.js} +8 -6
  41. package/dist/chunks/{compile-vercel-config-DY63NSZV.js → compile-vercel-config-3RYUGKGU.js} +3 -3
  42. package/dist/chunks/{delete-WVLC7FLA.js → delete-UQKVMHVV.js} +5 -5
  43. package/dist/chunks/{disable-VLYKCAM5.js → disable-GUK4VHQY.js} +5 -5
  44. package/dist/chunks/{discard-GGNJLKTH.js → discard-DTI36R2T.js} +5 -5
  45. package/dist/chunks/{edit-ZU5K7DM3.js → edit-ED4LM54G.js} +6 -6
  46. package/dist/chunks/{enable-G3MUGP3W.js → enable-RAWDG7GZ.js} +5 -5
  47. package/dist/chunks/{exec-UKMIYIF6.js → exec-G4AUF3KG.js} +4 -90
  48. package/dist/chunks/{export-QHSB2FON.js → export-U6OBSYVP.js} +5 -5
  49. package/dist/chunks/{image-CWHCW3N5.js → image-LIJI6QJY.js} +4 -4
  50. package/dist/chunks/{inspect-OVAC6PJK.js → inspect-25D5G5FX.js} +11 -11
  51. package/dist/chunks/{inspect-W6RHYESL.js → inspect-3SEYQNWT.js} +11 -11
  52. package/dist/chunks/{inspect-QJSREPM3.js → inspect-7LGTAPH3.js} +7 -7
  53. package/dist/chunks/{inspect-HFCKYQQ3.js → inspect-IQD2ULLP.js} +11 -11
  54. package/dist/chunks/{list-2XYQW3YA.js → list-2IJHE2AC.js} +8 -8
  55. package/dist/chunks/{list-R37YS5CX.js → list-I25HBKWF.js} +5 -5
  56. package/dist/chunks/login-N4DIZZWE.js +247 -0
  57. package/dist/chunks/{ls-HKVAT223.js → ls-2VXZPNMR.js} +12 -12
  58. package/dist/chunks/{ls-X7Y37IPT.js → ls-HN3SUOPA.js} +7 -7
  59. package/dist/chunks/{ls-7JNUKRV2.js → ls-S7YPR3OS.js} +11 -11
  60. package/dist/chunks/{ls-JJXUYZU7.js → ls-TFOKQKY3.js} +11 -11
  61. package/dist/chunks/{publish-MYVZ4UTW.js → publish-ZTGB4XE2.js} +5 -5
  62. package/dist/chunks/{query-ZH2YJPAC.js → query-2UK5BV4B.js} +6 -6
  63. package/dist/chunks/{reorder-VY53EYZJ.js → reorder-FM755TJK.js} +5 -5
  64. package/dist/chunks/{restore-F2AEG3WO.js → restore-NXQJMPMT.js} +5 -5
  65. package/dist/chunks/{rm-T6Z6WZZN.js → rm-III6VASE.js} +8 -8
  66. package/dist/chunks/{rm-VUL4FHMX.js → rm-MPC5DPOS.js} +7 -7
  67. package/dist/chunks/{rm-IDSOMXQR.js → rm-XJMPAJNP.js} +6 -6
  68. package/dist/chunks/{rule-inspect-ELB7P5YA.js → rule-inspect-BJGXMAO5.js} +7 -7
  69. package/dist/chunks/{rules-XR6U5U7F.js → rules-FSNWMWJH.js} +9 -9
  70. package/dist/chunks/{schema-WKPB25ZF.js → schema-NR6DGYCB.js} +7 -7
  71. package/dist/chunks/{tags-NSWTVGHE.js → tags-RVHMONZN.js} +3 -3
  72. package/dist/chunks/{types-EQD5UZOH.js → types-2TPA6J4G.js} +3 -3
  73. package/dist/chunks/{update-H4Q24DK4.js → update-55OM2454.js} +7 -7
  74. package/dist/commands/build/index.js +51 -13
  75. package/dist/commands/deploy/index.js +33 -55
  76. package/dist/commands/dev/index.js +205 -62
  77. package/dist/commands/env/index.js +19 -19
  78. package/dist/commands/link/index.js +42 -25
  79. package/dist/commands/list/index.js +29 -14
  80. package/dist/commands-bulk.js +3869 -2022
  81. package/dist/index.js +24 -24
  82. package/dist/version.mjs +1 -1
  83. package/package.json +21 -21
  84. package/dist/chunks/chunk-Y4JJYHUG.js +0 -16
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_string_width
9
- } from "./chunk-EJ6GQI6F.js";
9
+ } from "./chunk-EHTPDXTS.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  yesOption
9
- } from "./chunk-EJ6GQI6F.js";
9
+ } from "./chunk-EHTPDXTS.js";
10
10
  import {
11
11
  packageName
12
12
  } from "./chunk-P6AK7SVK.js";
@@ -7,13 +7,13 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  noBorderChars,
9
9
  require_cli_table3
10
- } from "./chunk-VKBYAWTL.js";
10
+ } from "./chunk-QEEGXNFK.js";
11
11
  import {
12
12
  require_dist
13
13
  } from "./chunk-ECCWJHC6.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-EJ6GQI6F.js";
16
+ } from "./chunk-EHTPDXTS.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -9,7 +9,7 @@ import {
9
9
  limitOption,
10
10
  projectOption,
11
11
  yesOption
12
- } from "./chunk-EJ6GQI6F.js";
12
+ } from "./chunk-EHTPDXTS.js";
13
13
  import {
14
14
  packageName
15
15
  } from "./chunk-P6AK7SVK.js";
@@ -8,7 +8,7 @@ import {
8
8
  formatCondition,
9
9
  formatTransform,
10
10
  isTargetTransform
11
- } from "./chunk-VDTSYCXY.js";
11
+ } from "./chunk-VTA3KZUX.js";
12
12
  import {
13
13
  output_manager_default
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -10,17 +10,17 @@ import {
10
10
  } from "./chunk-QH7WYDEP.js";
11
11
  import {
12
12
  getLinkedProject
13
- } from "./chunk-IR674PKY.js";
13
+ } from "./chunk-XHC5YRFY.js";
14
14
  import {
15
15
  buildCommandWithYes,
16
16
  outputAgentError
17
- } from "./chunk-DDS5Z2MB.js";
17
+ } from "./chunk-2QBF3ZL3.js";
18
18
  import {
19
19
  getFlagsSpecification,
20
20
  getGlobalFlagsOnlyFromArgs,
21
21
  parseArguments,
22
22
  printError
23
- } from "./chunk-EJ6GQI6F.js";
23
+ } from "./chunk-EHTPDXTS.js";
24
24
  import {
25
25
  getCommandName,
26
26
  getCommandNamePlain
@@ -0,0 +1,31 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+
8
+ // src/util/is-valid-name.ts
9
+ function isValidName(name = "") {
10
+ const blacklist = ":/#?&@%+~".split("");
11
+ return !name.split("").every((c) => blacklist.includes(c));
12
+ }
13
+
14
+ // src/util/get-pagination-opts.ts
15
+ function getPaginationOpts(opts) {
16
+ const { "--next": nextTimestamp, "--limit": limit } = opts;
17
+ if (typeof nextTimestamp !== void 0 && Number.isNaN(nextTimestamp)) {
18
+ throw new Error("Please provide a number for option --next");
19
+ }
20
+ if (typeof limit === "number" && (!Number.isInteger(limit) || limit > 100 || limit < 1)) {
21
+ throw new Error(
22
+ "Please provide an integer from 1 to 100 for option --limit"
23
+ );
24
+ }
25
+ return [nextTimestamp, limit];
26
+ }
27
+
28
+ export {
29
+ isValidName,
30
+ getPaginationOpts
31
+ };
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-IR674PKY.js";
9
+ } from "./chunk-XHC5YRFY.js";
10
10
  import {
11
11
  isNativeBinaryInstall
12
12
  } from "./chunk-ECCWJHC6.js";
@@ -89,6 +89,25 @@ async function getConfigPrefix() {
89
89
  }
90
90
  return null;
91
91
  }
92
+ async function isPnpmHomeInstall(installPath) {
93
+ const pnpmHome = process.env.PNPM_HOME;
94
+ if (!pnpmHome) {
95
+ return false;
96
+ }
97
+ const candidates = [pnpmHome];
98
+ try {
99
+ candidates.push(await (0, import_fs_extra.realpath)(pnpmHome));
100
+ } catch (_) {
101
+ }
102
+ const entrypoint = process.argv[1];
103
+ for (const home of candidates) {
104
+ const prefix = home.endsWith(sep) ? home : home + sep;
105
+ if (entrypoint?.startsWith(prefix) || installPath.startsWith(prefix)) {
106
+ return true;
107
+ }
108
+ }
109
+ return false;
110
+ }
92
111
  function isGlobalByPath(installPath) {
93
112
  if (dirname(process.argv[0]) === dirname(process.argv[1])) {
94
113
  return true;
@@ -99,6 +118,9 @@ function isGlobalByPath(installPath) {
99
118
  if (installPath.includes(["", "pnpm", "global", ""].join(sep))) {
100
119
  return true;
101
120
  }
121
+ if (installPath.includes(["", "pnpm", "store", ""].join(sep)) && installPath.includes(sep + "links" + sep)) {
122
+ return true;
123
+ }
102
124
  if (installPath.includes(["", "fnm", "node-versions", ""].join(sep))) {
103
125
  return true;
104
126
  }
@@ -120,17 +142,29 @@ async function isGlobalByPrefix(installPath) {
120
142
  async function resolveInstall() {
121
143
  const pkg = isNativeBinaryInstall() ? nativePackageName : packageName;
122
144
  const installPath = await (0, import_fs_extra.realpath)(resolve(__dirname));
145
+ if (await isPnpmHomeInstall(installPath)) {
146
+ return { cliType: "pnpm", global: true };
147
+ }
123
148
  const globalCliType = await detectGlobalCliType(installPath, pkg);
124
149
  if (globalCliType) {
125
150
  return { cliType: globalCliType, global: true };
126
151
  }
127
- const entrypoint = await (0, import_fs_extra.realpath)(process.argv[1]);
128
- const { cliType, lockfilePath } = await scanParentDirs(
129
- dirname(dirname(entrypoint))
130
- );
152
+ let lockfileCliType;
153
+ try {
154
+ const entrypoint = await (0, import_fs_extra.realpath)(process.argv[1]);
155
+ const { cliType, lockfilePath } = await scanParentDirs(
156
+ dirname(dirname(entrypoint))
157
+ );
158
+ if (lockfilePath) {
159
+ lockfileCliType = cliType;
160
+ }
161
+ } catch (_) {
162
+ }
163
+ if (!lockfileCliType) {
164
+ return { cliType: "npm", global: true };
165
+ }
131
166
  return {
132
- // Global installs for npm do not have a lockfile
133
- cliType: lockfilePath ? cliType : "npm",
167
+ cliType: lockfileCliType,
134
168
  global: isGlobalByPath(installPath) || await isGlobalByPrefix(installPath)
135
169
  };
136
170
  }
@@ -154,8 +188,9 @@ async function getUpdateCommandInfo() {
154
188
  }
155
189
  const install2 = cliType2 === "yarn" ? "global add" : "i -g";
156
190
  const force = cliType2 === "npm" ? " --force" : "";
191
+ const allowBuild2 = pnpmAllowBuildFlag(cliType2, nativePackageName);
157
192
  return {
158
- command: `${cliType2} ${install2} ${pkgAndVersion}${force}`,
193
+ command: `${cliType2} ${install2} ${pkgAndVersion}${force}${allowBuild2}`,
159
194
  global: true
160
195
  };
161
196
  }
@@ -165,7 +200,14 @@ async function getUpdateCommandInfo() {
165
200
  if (global) {
166
201
  install = yarn ? "global add" : "i -g";
167
202
  }
168
- return { command: `${cliType} ${install} ${pkgAndVersion}`, global };
203
+ const allowBuild = global ? pnpmAllowBuildFlag(cliType, "esbuild") : "";
204
+ return {
205
+ command: `${cliType} ${install} ${pkgAndVersion}${allowBuild}`,
206
+ global
207
+ };
208
+ }
209
+ function pnpmAllowBuildFlag(cliType, pkg) {
210
+ return cliType === "pnpm" ? ` --allow-build=${pkg}` : "";
169
211
  }
170
212
  async function getUpdateCommand() {
171
213
  return (await getUpdateCommandInfo()).command;