vercel 54.21.1 → 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.
- package/dist/chunks/{add-UMB55BRR.js → add-BQGGX36J.js} +4 -4
- package/dist/chunks/{add-NKDLTZ3B.js → add-YRFK663I.js} +4 -4
- package/dist/chunks/{chunk-GAJ2ESDD.js → chunk-2XTV2FM7.js} +100 -36
- package/dist/chunks/{chunk-3EMRC44D.js → chunk-5OT26JZN.js} +32 -0
- package/dist/chunks/{chunk-MV65GD4L.js → chunk-6CRRXESK.js} +1 -1
- package/dist/chunks/chunk-7PZWVZN6.js +105 -0
- package/dist/chunks/{chunk-MLY3KGVY.js → chunk-A5QK4X3Z.js} +4 -4
- package/dist/chunks/{chunk-DKE73NGN.js → chunk-AA3E7OLF.js} +29 -2
- package/dist/chunks/{chunk-H3KWN2KA.js → chunk-AW6V5LOC.js} +2 -2
- package/dist/chunks/{chunk-I3HGCZ4E.js → chunk-CMJMYVQM.js} +1 -0
- package/dist/chunks/{chunk-AUYY7RD3.js → chunk-D43MOSMZ.js} +388 -11
- package/dist/chunks/{chunk-XCL7I6W5.js → chunk-EJV2KFOF.js} +2 -2
- package/dist/chunks/{chunk-TRQJQXKD.js → chunk-EUARKVCA.js} +82 -19
- package/dist/chunks/{chunk-TLKTTWDA.js → chunk-GVZKC6PS.js} +1 -1
- package/dist/chunks/{chunk-4UZF3U4N.js → chunk-HA7C7SDO.js} +2 -0
- package/dist/chunks/{chunk-ADTCIFMD.js → chunk-HOYOJUQZ.js} +69 -16
- package/dist/chunks/{chunk-43I5EAPY.js → chunk-IIUE7CDZ.js} +1 -1
- package/dist/chunks/{chunk-RO5JIUOI.js → chunk-LHY5EFII.js} +1 -1
- package/dist/chunks/{chunk-2ZXLLEEZ.js → chunk-MGUQN3V3.js} +2 -2
- package/dist/chunks/{chunk-HMFUXSD7.js → chunk-OCEM4YAQ.js} +1 -1
- package/dist/chunks/{chunk-QMZO4CEP.js → chunk-OKWMOW2F.js} +351 -401
- package/dist/chunks/{chunk-XMJAKLQQ.js → chunk-SENGDDFO.js} +1 -1
- package/dist/chunks/{chunk-OVE2GAHC.js → chunk-VTA3KZUX.js} +1 -1
- package/dist/chunks/chunk-WGGABYO5.js +31 -0
- package/dist/chunks/{chunk-KNSDQCVQ.js → chunk-X36ADWA5.js} +51 -9
- package/dist/chunks/{chunk-I4NRKN2Z.js → chunk-XHC5YRFY.js} +448 -271
- package/dist/chunks/{chunk-IMTOXXTF.js → chunk-ZQEZYHPJ.js} +6 -4
- package/dist/chunks/{compile-vercel-config-OKONVGZI.js → compile-vercel-config-3RYUGKGU.js} +1 -1
- package/dist/chunks/{delete-L7TN5GNZ.js → delete-UQKVMHVV.js} +2 -2
- package/dist/chunks/{disable-7NVU4H2N.js → disable-GUK4VHQY.js} +2 -2
- package/dist/chunks/{discard-SJ2TDPS2.js → discard-DTI36R2T.js} +2 -2
- package/dist/chunks/{edit-SW4MF4Q3.js → edit-ED4LM54G.js} +3 -3
- package/dist/chunks/{enable-FOKEO6J2.js → enable-RAWDG7GZ.js} +2 -2
- package/dist/chunks/{exec-UKMIYIF6.js → exec-G4AUF3KG.js} +4 -90
- package/dist/chunks/{export-3DSHT2FD.js → export-U6OBSYVP.js} +2 -2
- package/dist/chunks/{image-T6I7BZSC.js → image-LIJI6QJY.js} +3 -3
- package/dist/chunks/{inspect-2MY25CMN.js → inspect-25D5G5FX.js} +8 -8
- package/dist/chunks/{inspect-EP24WN4I.js → inspect-3SEYQNWT.js} +8 -8
- package/dist/chunks/{inspect-RV444SBC.js → inspect-7LGTAPH3.js} +3 -3
- package/dist/chunks/{inspect-DJ7OGHBK.js → inspect-IQD2ULLP.js} +7 -7
- package/dist/chunks/{list-CCG2NVLL.js → list-2IJHE2AC.js} +3 -3
- package/dist/chunks/{list-OMJ7EDKA.js → list-I25HBKWF.js} +2 -2
- package/dist/chunks/login-N4DIZZWE.js +247 -0
- package/dist/chunks/{ls-5KN5FKAQ.js → ls-2VXZPNMR.js} +7 -7
- package/dist/chunks/{ls-VXZGEJJD.js → ls-HN3SUOPA.js} +4 -4
- package/dist/chunks/{ls-VCTHIVI7.js → ls-S7YPR3OS.js} +7 -7
- package/dist/chunks/{ls-33Z3R2KY.js → ls-TFOKQKY3.js} +7 -7
- package/dist/chunks/{publish-RZ2DIYRU.js → publish-ZTGB4XE2.js} +2 -2
- package/dist/chunks/{query-2MIBB7C5.js → query-2UK5BV4B.js} +2 -2
- package/dist/chunks/{reorder-FEZIPHNW.js → reorder-FM755TJK.js} +2 -2
- package/dist/chunks/{restore-JHH6CW2S.js → restore-NXQJMPMT.js} +2 -2
- package/dist/chunks/{rm-EKPVQYGH.js → rm-III6VASE.js} +4 -4
- package/dist/chunks/{rm-ULQHII4K.js → rm-MPC5DPOS.js} +4 -4
- package/dist/chunks/{rm-3KAXICHP.js → rm-XJMPAJNP.js} +3 -3
- package/dist/chunks/{rule-inspect-FOZOCOUO.js → rule-inspect-BJGXMAO5.js} +4 -4
- package/dist/chunks/{rules-RJD4S7JA.js → rules-FSNWMWJH.js} +8 -8
- package/dist/chunks/{schema-CDXFJU72.js → schema-NR6DGYCB.js} +2 -2
- package/dist/chunks/{tags-BLBAPEWV.js → tags-RVHMONZN.js} +2 -2
- package/dist/chunks/{update-2NW6NKG6.js → update-55OM2454.js} +4 -4
- package/dist/commands/build/index.js +25 -9
- package/dist/commands/deploy/index.js +21 -43
- package/dist/commands/dev/index.js +200 -57
- package/dist/commands/env/index.js +6 -6
- package/dist/commands/link/index.js +30 -13
- package/dist/commands/list/index.js +25 -10
- package/dist/commands-bulk.js +3883 -2129
- package/dist/index.js +12 -12
- package/dist/version.mjs +1 -1
- package/package.json +23 -23
- package/dist/chunks/chunk-Y4JJYHUG.js +0 -16
|
@@ -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-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|