vercel 54.21.1 → 56.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 (74) hide show
  1. package/dist/chunks/{add-UMB55BRR.js → add-MD247HM7.js} +6 -6
  2. package/dist/chunks/{add-NKDLTZ3B.js → add-YN76XNHI.js} +6 -6
  3. package/dist/chunks/{chunk-MLY3KGVY.js → chunk-2BZVY6SF.js} +4 -4
  4. package/dist/chunks/{chunk-TLKTTWDA.js → chunk-36OUS2KE.js} +1 -1
  5. package/dist/chunks/{chunk-43I5EAPY.js → chunk-3JOLICSO.js} +1 -1
  6. package/dist/chunks/{chunk-3EMRC44D.js → chunk-5OT26JZN.js} +32 -0
  7. package/dist/chunks/{chunk-TRQJQXKD.js → chunk-75HDPY6N.js} +82 -19
  8. package/dist/chunks/chunk-7PZWVZN6.js +105 -0
  9. package/dist/chunks/{chunk-DKE73NGN.js → chunk-C6E2RJS7.js} +29 -2
  10. package/dist/chunks/{chunk-2QBF3ZL3.js → chunk-CB3I3QIT.js} +3 -4
  11. package/dist/chunks/{chunk-I3HGCZ4E.js → chunk-CMJMYVQM.js} +1 -0
  12. package/dist/chunks/{chunk-IMTOXXTF.js → chunk-DO3V6PZD.js} +6 -4
  13. package/dist/chunks/{chunk-QKR7GNAK.js → chunk-DREO3DFB.js} +6 -6
  14. package/dist/chunks/{chunk-GAJ2ESDD.js → chunk-FN36GZDS.js} +100 -36
  15. package/dist/chunks/{chunk-4UZF3U4N.js → chunk-HA7C7SDO.js} +2 -0
  16. package/dist/chunks/{chunk-QH7WYDEP.js → chunk-IC4YEIGW.js} +7 -0
  17. package/dist/chunks/{chunk-H3KWN2KA.js → chunk-JHZG2MPW.js} +4 -4
  18. package/dist/chunks/{chunk-QMZO4CEP.js → chunk-KODCUW77.js} +353 -403
  19. package/dist/chunks/{chunk-RO5JIUOI.js → chunk-KSJ4FNUG.js} +3 -3
  20. package/dist/chunks/{chunk-KNSDQCVQ.js → chunk-MBH4DFF7.js} +51 -9
  21. package/dist/chunks/{chunk-MV65GD4L.js → chunk-N4VWB5RV.js} +1 -1
  22. package/dist/chunks/{chunk-AUYY7RD3.js → chunk-NZ73KKYG.js} +550 -191
  23. package/dist/chunks/{chunk-ADTCIFMD.js → chunk-ORKY33ZK.js} +69 -16
  24. package/dist/chunks/{chunk-XMJAKLQQ.js → chunk-T7EIXPC5.js} +1 -1
  25. package/dist/chunks/{chunk-I4NRKN2Z.js → chunk-THMFJODG.js} +480 -277
  26. package/dist/chunks/{chunk-2ZXLLEEZ.js → chunk-TNDFVAZV.js} +4 -4
  27. package/dist/chunks/{chunk-OVE2GAHC.js → chunk-VPDJOK2C.js} +3 -3
  28. package/dist/chunks/{chunk-HMFUXSD7.js → chunk-VSD5BID5.js} +1 -1
  29. package/dist/chunks/{chunk-ZZIAWRCX.js → chunk-W346YNDN.js} +18 -0
  30. package/dist/chunks/chunk-WGGABYO5.js +31 -0
  31. package/dist/chunks/{chunk-XCL7I6W5.js → chunk-ZHDXN5V3.js} +3 -3
  32. package/dist/chunks/{compile-vercel-config-OKONVGZI.js → compile-vercel-config-65QWHKPO.js} +2 -2
  33. package/dist/chunks/{delete-L7TN5GNZ.js → delete-NPEJGNTV.js} +5 -5
  34. package/dist/chunks/{disable-7NVU4H2N.js → disable-RH3MH7PH.js} +5 -5
  35. package/dist/chunks/{discard-SJ2TDPS2.js → discard-IJBFO24S.js} +5 -5
  36. package/dist/chunks/{edit-SW4MF4Q3.js → edit-GMLOKGHO.js} +6 -6
  37. package/dist/chunks/{enable-FOKEO6J2.js → enable-QCTL7ISO.js} +5 -5
  38. package/dist/chunks/{exec-UKMIYIF6.js → exec-G4AUF3KG.js} +4 -90
  39. package/dist/chunks/{export-3DSHT2FD.js → export-6ERWU54A.js} +9 -8
  40. package/dist/chunks/{image-T6I7BZSC.js → image-XUMTOUQS.js} +5 -5
  41. package/dist/chunks/{inspect-RV444SBC.js → inspect-7UPFOAJO.js} +5 -5
  42. package/dist/chunks/{inspect-EP24WN4I.js → inspect-F6LEST4Y.js} +10 -10
  43. package/dist/chunks/{inspect-2MY25CMN.js → inspect-OKOUOOWW.js} +10 -10
  44. package/dist/chunks/{inspect-DJ7OGHBK.js → inspect-ZS4U24NA.js} +9 -9
  45. package/dist/chunks/{list-CCG2NVLL.js → list-BTMO3CXU.js} +5 -5
  46. package/dist/chunks/{list-OMJ7EDKA.js → list-ZK7Q3UHB.js} +3 -3
  47. package/dist/chunks/login-POFRYQZ6.js +247 -0
  48. package/dist/chunks/{ls-VXZGEJJD.js → ls-D5Z4IWMU.js} +6 -6
  49. package/dist/chunks/{ls-VCTHIVI7.js → ls-EXRMNZUT.js} +9 -9
  50. package/dist/chunks/{ls-33Z3R2KY.js → ls-JGNNPYUA.js} +9 -9
  51. package/dist/chunks/{ls-5KN5FKAQ.js → ls-Z2TCQW5W.js} +9 -9
  52. package/dist/chunks/{publish-RZ2DIYRU.js → publish-ED2XVYSE.js} +5 -5
  53. package/dist/chunks/{query-2MIBB7C5.js → query-6XMBJTPX.js} +3 -3
  54. package/dist/chunks/{reorder-FEZIPHNW.js → reorder-7B6HZCOZ.js} +5 -5
  55. package/dist/chunks/{restore-JHH6CW2S.js → restore-47ZDRYQT.js} +5 -5
  56. package/dist/chunks/{rm-EKPVQYGH.js → rm-4IY6QGHF.js} +6 -6
  57. package/dist/chunks/{rm-3KAXICHP.js → rm-AA7WYBZ5.js} +5 -5
  58. package/dist/chunks/{rm-ULQHII4K.js → rm-NGTPTPZK.js} +6 -6
  59. package/dist/chunks/{rule-inspect-FOZOCOUO.js → rule-inspect-FNX6P4LZ.js} +6 -6
  60. package/dist/chunks/{rules-RJD4S7JA.js → rules-MMCCBGQJ.js} +10 -10
  61. package/dist/chunks/{schema-CDXFJU72.js → schema-JSK7S7HL.js} +3 -3
  62. package/dist/chunks/{tags-BLBAPEWV.js → tags-KNCSBTIH.js} +4 -4
  63. package/dist/chunks/{update-2NW6NKG6.js → update-JEFLJ3TH.js} +6 -6
  64. package/dist/commands/build/index.js +47 -16
  65. package/dist/commands/deploy/index.js +24 -46
  66. package/dist/commands/dev/index.js +202 -59
  67. package/dist/commands/env/index.js +10 -20
  68. package/dist/commands/link/index.js +33 -16
  69. package/dist/commands/list/index.js +26 -11
  70. package/dist/commands-bulk.js +13722 -10599
  71. package/dist/index.js +14 -24
  72. package/dist/version.mjs +1 -1
  73. package/package.json +24 -23
  74. 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
  resolveAlertsScope
9
- } from "./chunk-H3KWN2KA.js";
9
+ } from "./chunk-JHZG2MPW.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) {
@@ -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-I4NRKN2Z.js";
9
+ } from "./chunk-THMFJODG.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;
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-I4NRKN2Z.js";
11
+ } from "./chunk-THMFJODG.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";