vercel 58.9.1 → 58.9.2
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-NIBAFBPP.js → add-DDUZR2RD.js} +7 -7
- package/dist/chunks/{add-PJLLOYOB.js → add-LVQP3SR2.js} +2 -2
- package/dist/chunks/{add-5NFS6DS7.js → add-XZ2HRB22.js} +2 -2
- package/dist/chunks/{build-MF4TD2RD.js → build-L3WNBFT6.js} +2 -2
- package/dist/chunks/{chunk-V3W6GV3A.js → chunk-2Z66EK7E.js} +1 -1
- package/dist/chunks/{chunk-VBAIEFLF.js → chunk-3T3AIIEO.js} +2 -2
- package/dist/chunks/{chunk-4RXXF7V7.js → chunk-446IAD7O.js} +1 -1
- package/dist/chunks/{chunk-SHXS3ZJD.js → chunk-5LPWBMQG.js} +1 -1
- package/dist/chunks/{chunk-NFIGIDOY.js → chunk-6YFPNNA5.js} +1 -1
- package/dist/chunks/{chunk-DGDUIC5A.js → chunk-74ZES62J.js} +1 -1
- package/dist/chunks/{chunk-YRV4A73W.js → chunk-77FZZ73F.js} +4 -4
- package/dist/chunks/{chunk-VX6VORWT.js → chunk-BW7BH66H.js} +1 -1
- package/dist/chunks/{chunk-LIPSDQMJ.js → chunk-CMS7PTFB.js} +1 -1
- package/dist/chunks/{chunk-U6FXU4WS.js → chunk-DBMBKXZO.js} +1 -1
- package/dist/chunks/{chunk-6BEMCJFX.js → chunk-DGVJNQI3.js} +49 -62
- package/dist/chunks/{chunk-MAQ6U5X2.js → chunk-DSJHGENE.js} +1 -1
- package/dist/chunks/{chunk-VNNVJGKE.js → chunk-DZAP2FIC.js} +1 -1
- package/dist/chunks/{chunk-6LBPHFMP.js → chunk-EPAVMBXG.js} +2 -2
- package/dist/chunks/{chunk-4IFEBYTL.js → chunk-J23MTK5H.js} +2 -2
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-JKQWQA2T.js} +17 -0
- package/dist/chunks/{chunk-4XO6B3JD.js → chunk-KIGRD7TV.js} +1 -1
- package/dist/chunks/{chunk-GCSUBTKN.js → chunk-QCDSQERI.js} +3 -3
- package/dist/chunks/{chunk-24TPLHEI.js → chunk-QXXH6L46.js} +2 -2
- package/dist/chunks/{chunk-L7LKHLFB.js → chunk-R7FRJJSO.js} +2 -2
- package/dist/chunks/{chunk-BEKBCDTM.js → chunk-S6CMPUF4.js} +1 -1
- package/dist/chunks/{chunk-N6ZAAUNN.js → chunk-YXFLKPDC.js} +7 -5
- package/dist/chunks/{chunk-DJPFR2DG.js → chunk-Z7LH63PK.js} +1 -1
- package/dist/chunks/{chunk-W24ZG3GV.js → chunk-Z7RSIWNT.js} +1 -1
- package/dist/chunks/{clear-M3QWP3HM.js → clear-QD7QNE2X.js} +2 -2
- package/dist/chunks/{compile-vercel-config-6DMGPMCK.js → compile-vercel-config-G46NO752.js} +1 -1
- package/dist/chunks/{config-5D4R6677.js → config-MRWCWMFM.js} +2 -2
- package/dist/chunks/{delete-CJG3FHU7.js → delete-IJDA6IJT.js} +2 -2
- package/dist/chunks/{delete-ZWUWQT5H.js → delete-THAK6PDA.js} +2 -2
- package/dist/chunks/{disable-CJKTITTQ.js → disable-XJLSQWDP.js} +2 -2
- package/dist/chunks/{discard-ABXIPZHK.js → discard-MDTDXLPM.js} +2 -2
- package/dist/chunks/{edit-VJ43TKOX.js → edit-TBUQIBCG.js} +2 -2
- package/dist/chunks/{edit-VNVPLLF7.js → edit-XWMGSV5O.js} +3 -3
- package/dist/chunks/{enable-L7ERJOO5.js → enable-D4ZEFA7B.js} +2 -2
- package/dist/chunks/{export-BDAKZGOD.js → export-35THNYMQ.js} +2 -2
- package/dist/chunks/{image-MGZR4VEH.js → image-ONVF2WQF.js} +3 -3
- package/dist/chunks/{import-builders-RBYAQIPN.js → import-builders-4PL2UTKQ.js} +2 -2
- package/dist/chunks/{inspect-IO5JFCCX.js → inspect-22HFUKUL.js} +2 -2
- package/dist/chunks/{inspect-KQBV3ALQ.js → inspect-JPKI7TUF.js} +2 -2
- package/dist/chunks/{inspect-E6IHZHQI.js → inspect-K5URFDTI.js} +2 -2
- package/dist/chunks/{inspect-XDKWDIUB.js → inspect-P2MVWGGX.js} +2 -2
- package/dist/chunks/{inspect-3V6PPUA3.js → inspect-UKWD7EKB.js} +3 -3
- package/dist/chunks/{list-FTWJF5YO.js → list-2GKTKNSP.js} +2 -2
- package/dist/chunks/{list-RQB5Q7IJ.js → list-QOKS7OXY.js} +3 -3
- package/dist/chunks/{list-S2ZEK7DX.js → list-RTALDLVZ.js} +1 -1
- package/dist/chunks/{login-AVIFCN4G.js → login-VTT2OSLJ.js} +2 -2
- package/dist/chunks/{ls-BKZZIR53.js → ls-3XZ54CAA.js} +3 -3
- package/dist/chunks/{ls-FI4MV46I.js → ls-4VTPS4H3.js} +2 -2
- package/dist/chunks/{ls-44QDBZEW.js → ls-5FYZ5VEP.js} +2 -2
- package/dist/chunks/{ls-ZG43UJTR.js → ls-6M25LDJ3.js} +2 -2
- package/dist/chunks/{ls-JI2KIY4O.js → ls-DPQN66HC.js} +2 -2
- package/dist/chunks/{open-FGSEFGJL.js → open-LSQVBKRQ.js} +2 -2
- package/dist/chunks/{permissions-BDINZ7RC.js → permissions-KHCRKKCJ.js} +4 -4
- package/dist/chunks/{publish-7FXAFWWN.js → publish-OQZQOC3A.js} +2 -2
- package/dist/chunks/{push-3P3NKZEG.js → push-O22DZTSK.js} +2 -2
- package/dist/chunks/{query-7MQN4S3S.js → query-X2SX26DL.js} +1 -1
- package/dist/chunks/{reorder-42YNZL7R.js → reorder-E53PSWXQ.js} +2 -2
- package/dist/chunks/{reply-36KQN23N.js → reply-NQD2F6SH.js} +2 -2
- package/dist/chunks/{resolve-ESN7P6O3.js → resolve-6ZPARPEF.js} +2 -2
- package/dist/chunks/{restore-RCNRC3YJ.js → restore-UJYDYOZO.js} +2 -2
- package/dist/chunks/{rm-MMYOJPW4.js → rm-5T3LQY2T.js} +3 -3
- package/dist/chunks/{rm-ODFQSS2C.js → rm-A6S57TZX.js} +2 -2
- package/dist/chunks/{rm-R77FI255.js → rm-BYF6J53M.js} +2 -2
- package/dist/chunks/{rm-E2WEJZPW.js → rm-TCPTNK5O.js} +2 -2
- package/dist/chunks/{rule-inspect-FDBIBPKM.js → rule-inspect-Q7G2H534.js} +3 -3
- package/dist/chunks/{rules-3GSC27DA.js → rules-5EI4AZ2N.js} +6 -6
- package/dist/chunks/{schema-QDU3FPNC.js → schema-CFEL4DGE.js} +1 -1
- package/dist/chunks/{tags-WZBKHB6D.js → tags-GWQZQY3Q.js} +2 -2
- package/dist/chunks/{update-KNN7C6KN.js → update-SHTZVWMD.js} +7 -7
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +10 -10
- package/dist/commands/dev/index.js +57 -34
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +6 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +52 -51
- package/dist/index.js +9 -9
- package/dist/version.mjs +1 -1
- package/package.json +38 -38
|
@@ -9,10 +9,11 @@ import {
|
|
|
9
9
|
} from "../../chunks/chunk-2HSQ7YUK.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateCommand
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-DZAP2FIC.js";
|
|
13
13
|
import {
|
|
14
|
+
getGlobalPathConfig,
|
|
14
15
|
highlight
|
|
15
|
-
} from "../../chunks/chunk-
|
|
16
|
+
} from "../../chunks/chunk-JKQWQA2T.js";
|
|
16
17
|
import {
|
|
17
18
|
getSubcommand
|
|
18
19
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
@@ -24,24 +25,24 @@ import {
|
|
|
24
25
|
getStaticServiceSchedules,
|
|
25
26
|
require_mime_types,
|
|
26
27
|
staticFiles
|
|
27
|
-
} from "../../chunks/chunk-
|
|
28
|
+
} from "../../chunks/chunk-KIGRD7TV.js";
|
|
28
29
|
import {
|
|
29
30
|
importBuilders,
|
|
30
31
|
require_npa
|
|
31
|
-
} from "../../chunks/chunk-
|
|
32
|
+
} from "../../chunks/chunk-BW7BH66H.js";
|
|
32
33
|
import "../../chunks/chunk-IB5L4LKZ.js";
|
|
33
34
|
import {
|
|
34
35
|
pickOverrides
|
|
35
|
-
} from "../../chunks/chunk-
|
|
36
|
+
} from "../../chunks/chunk-S6CMPUF4.js";
|
|
36
37
|
import "../../chunks/chunk-R6IGDGX3.js";
|
|
37
38
|
import {
|
|
38
39
|
displayDetectedServices,
|
|
39
40
|
readConfig,
|
|
40
41
|
setupAndLink
|
|
41
|
-
} from "../../chunks/chunk-
|
|
42
|
+
} from "../../chunks/chunk-R7FRJJSO.js";
|
|
42
43
|
import {
|
|
43
44
|
getLocalPathConfig
|
|
44
|
-
} from "../../chunks/chunk-
|
|
45
|
+
} from "../../chunks/chunk-Z7RSIWNT.js";
|
|
45
46
|
import {
|
|
46
47
|
help
|
|
47
48
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -72,7 +73,7 @@ import {
|
|
|
72
73
|
resolveProjectCwd,
|
|
73
74
|
tryDetectServices,
|
|
74
75
|
validateConfig
|
|
75
|
-
} from "../../chunks/chunk-
|
|
76
|
+
} from "../../chunks/chunk-J23MTK5H.js";
|
|
76
77
|
import {
|
|
77
78
|
TelemetryClient
|
|
78
79
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
@@ -102,7 +103,9 @@ import {
|
|
|
102
103
|
packageName,
|
|
103
104
|
require_bytes
|
|
104
105
|
} from "../../chunks/chunk-SOFC4MLS.js";
|
|
105
|
-
import
|
|
106
|
+
import {
|
|
107
|
+
pkg_default
|
|
108
|
+
} from "../../chunks/chunk-P4QNYOFB.js";
|
|
106
109
|
import {
|
|
107
110
|
Headers,
|
|
108
111
|
directFetch
|
|
@@ -15437,7 +15440,7 @@ var require_content_disposition = __commonJS({
|
|
|
15437
15440
|
"use strict";
|
|
15438
15441
|
module2.exports = contentDisposition;
|
|
15439
15442
|
module2.exports.parse = parse2;
|
|
15440
|
-
var
|
|
15443
|
+
var basename3 = __require("path").basename;
|
|
15441
15444
|
var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
|
|
15442
15445
|
var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
|
|
15443
15446
|
var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
|
|
@@ -15472,9 +15475,9 @@ var require_content_disposition = __commonJS({
|
|
|
15472
15475
|
if (typeof fallback === "string" && NON_LATIN1_REGEXP.test(fallback)) {
|
|
15473
15476
|
throw new TypeError("fallback must be ISO-8859-1 string");
|
|
15474
15477
|
}
|
|
15475
|
-
var name =
|
|
15478
|
+
var name = basename3(filename);
|
|
15476
15479
|
var isQuotedString = TEXT_REGEXP.test(name);
|
|
15477
|
-
var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name) :
|
|
15480
|
+
var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name) : basename3(fallback);
|
|
15478
15481
|
var hasFallback = typeof fallbackName === "string" && fallbackName !== name;
|
|
15479
15482
|
if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) {
|
|
15480
15483
|
params["filename*"] = name;
|
|
@@ -16757,7 +16760,7 @@ import path6 from "path";
|
|
|
16757
16760
|
var import_chalk3 = __toESM(require_source(), 1);
|
|
16758
16761
|
var import_ms6 = __toESM(require_ms(), 1);
|
|
16759
16762
|
var import_fs_extra2 = __toESM(require_lib(), 1);
|
|
16760
|
-
import { resolve, join as
|
|
16763
|
+
import { resolve, join as join5 } from "path";
|
|
16761
16764
|
|
|
16762
16765
|
// src/util/dev/server.ts
|
|
16763
16766
|
var import_fs_extra = __toESM(require_lib(), 1);
|
|
@@ -16779,7 +16782,7 @@ var import_get_port2 = __toESM(require_get_port(), 1);
|
|
|
16779
16782
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
|
|
16780
16783
|
import { randomBytes as randomBytes2 } from "crypto";
|
|
16781
16784
|
import { watch } from "chokidar";
|
|
16782
|
-
import path5, { isAbsolute, basename, dirname as dirname2, extname, join as
|
|
16785
|
+
import path5, { isAbsolute, basename as basename2, dirname as dirname2, extname, join as join3 } from "path";
|
|
16783
16786
|
|
|
16784
16787
|
// src/util/dev/port-utils.ts
|
|
16785
16788
|
var import_is_port_reachable = __toESM(require_is_port_reachable(), 1);
|
|
@@ -18173,19 +18176,39 @@ import {
|
|
|
18173
18176
|
|
|
18174
18177
|
// src/util/dev/next-dev-websocket-shim-injection.ts
|
|
18175
18178
|
import path2 from "path";
|
|
18179
|
+
|
|
18180
|
+
// src/util/runtime-assets.ts
|
|
18181
|
+
import { copyFileSync, mkdirSync } from "fs";
|
|
18182
|
+
import { basename, join as join2 } from "path";
|
|
18183
|
+
function getRuntimeAssetsDir(version = pkg_default.version, globalRoot = getGlobalPathConfig()) {
|
|
18184
|
+
return join2(globalRoot, "runtime", version);
|
|
18185
|
+
}
|
|
18186
|
+
function ensureRuntimeAssetOnDisk(sourcePath, options = {}) {
|
|
18187
|
+
const destDir = getRuntimeAssetsDir(
|
|
18188
|
+
options.version ?? pkg_default.version,
|
|
18189
|
+
options.globalRoot ?? getGlobalPathConfig()
|
|
18190
|
+
);
|
|
18191
|
+
const destPath = join2(destDir, basename(sourcePath));
|
|
18192
|
+
mkdirSync(destDir, { recursive: true });
|
|
18193
|
+
copyFileSync(sourcePath, destPath);
|
|
18194
|
+
return destPath;
|
|
18195
|
+
}
|
|
18196
|
+
|
|
18197
|
+
// src/util/dev/next-dev-websocket-shim-injection.ts
|
|
18176
18198
|
var NEXT_DEV_WEBSOCKET_SHIM = path2.join(
|
|
18177
18199
|
__dirname,
|
|
18178
18200
|
"next-dev-websocket-shim-preload.cjs"
|
|
18179
18201
|
);
|
|
18180
|
-
function injectNextDevWebSocketShimIfNeeded(env, command, projectSettings) {
|
|
18202
|
+
function injectNextDevWebSocketShimIfNeeded(env, command, projectSettings, runtimeOptions) {
|
|
18181
18203
|
if (!shouldInjectNextDevWebSocketShim(command, projectSettings)) {
|
|
18182
18204
|
return void 0;
|
|
18183
18205
|
}
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18206
|
+
const shimPath = ensureRuntimeAssetOnDisk(
|
|
18207
|
+
NEXT_DEV_WEBSOCKET_SHIM,
|
|
18208
|
+
runtimeOptions
|
|
18187
18209
|
);
|
|
18188
|
-
|
|
18210
|
+
env.NODE_OPTIONS = prependNodeRequireOption(env.NODE_OPTIONS, shimPath);
|
|
18211
|
+
return shimPath;
|
|
18189
18212
|
}
|
|
18190
18213
|
function shouldInjectNextDevWebSocketShim(command, projectSettings) {
|
|
18191
18214
|
return projectSettings?.framework === "nextjs" || /(?:^|\s)(?:next|next\.js)(?:\s+dev)?(?:\s+-|\s*$|$)/.test(command);
|
|
@@ -20488,7 +20511,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20488
20511
|
if (value !== void 0)
|
|
20489
20512
|
res.setHeader(name, value);
|
|
20490
20513
|
}
|
|
20491
|
-
req.url = `/${
|
|
20514
|
+
req.url = `/${basename2(asset.fsPath)}`;
|
|
20492
20515
|
return serveStaticFile(req, res, dirname2(asset.fsPath), {
|
|
20493
20516
|
headers: [
|
|
20494
20517
|
{
|
|
@@ -20629,7 +20652,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20629
20652
|
this.stopping = false;
|
|
20630
20653
|
this.buildMatches = /* @__PURE__ */ new Map();
|
|
20631
20654
|
this.inProgressBuilds = /* @__PURE__ */ new Map();
|
|
20632
|
-
this.devCacheDir =
|
|
20655
|
+
this.devCacheDir = join3(getVercelDirectory(cwd), "cache");
|
|
20633
20656
|
this.vercelConfigWarning = false;
|
|
20634
20657
|
this.getVercelConfigPromise = null;
|
|
20635
20658
|
this.blockingBuildsPromise = null;
|
|
@@ -20926,7 +20949,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20926
20949
|
);
|
|
20927
20950
|
}
|
|
20928
20951
|
async getLocalEnv(fileName, base) {
|
|
20929
|
-
const filePath =
|
|
20952
|
+
const filePath = join3(this.cwd, fileName);
|
|
20930
20953
|
let env = {};
|
|
20931
20954
|
try {
|
|
20932
20955
|
const dotenv = await import_fs_extra.default.readFile(filePath, "utf8");
|
|
@@ -20980,7 +21003,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20980
21003
|
return void 0;
|
|
20981
21004
|
}
|
|
20982
21005
|
async _getVercelConfig() {
|
|
20983
|
-
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-
|
|
21006
|
+
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-G46NO752.js");
|
|
20984
21007
|
await compileVercelConfig(this.cwd);
|
|
20985
21008
|
const configPath = getLocalPathConfig(this.cwd);
|
|
20986
21009
|
const [
|
|
@@ -21073,7 +21096,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
21073
21096
|
vercelConfig.routes = routes;
|
|
21074
21097
|
} else if (hasResolvedServices && vercelConfig.proxy) {
|
|
21075
21098
|
const { entrypoint } = vercelConfig.proxy;
|
|
21076
|
-
if (!await import_fs_extra.default.pathExists(
|
|
21099
|
+
if (!await import_fs_extra.default.pathExists(join3(this.cwd, entrypoint))) {
|
|
21077
21100
|
output_manager_default.error(
|
|
21078
21101
|
`The proxy entrypoint \`${entrypoint}\` does not exist. Set \`proxy.entrypoint\` to an existing \`.js\` or \`.ts\` file.`
|
|
21079
21102
|
);
|
|
@@ -21168,7 +21191,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
21168
21191
|
abs = filePath;
|
|
21169
21192
|
} else {
|
|
21170
21193
|
rel = filePath;
|
|
21171
|
-
abs =
|
|
21194
|
+
abs = join3(this.cwd, filePath);
|
|
21172
21195
|
}
|
|
21173
21196
|
output_manager_default.debug(`Reading \`${rel}\` file`);
|
|
21174
21197
|
try {
|
|
@@ -21883,7 +21906,7 @@ ${error_code}
|
|
|
21883
21906
|
}
|
|
21884
21907
|
const dirs = /* @__PURE__ */ new Set();
|
|
21885
21908
|
const files = Array.from(this.buildMatches.keys()).filter((p) => {
|
|
21886
|
-
const base =
|
|
21909
|
+
const base = basename2(p);
|
|
21887
21910
|
if (base === "now.json" || base === "vercel.json" || base === "vercel.toml" || base === ".nowignore" || base === ".vercelignore" || !p.startsWith(prefix)) {
|
|
21888
21911
|
return false;
|
|
21889
21912
|
}
|
|
@@ -21897,7 +21920,7 @@ ${error_code}
|
|
|
21897
21920
|
}
|
|
21898
21921
|
return true;
|
|
21899
21922
|
}).map((p) => {
|
|
21900
|
-
let base =
|
|
21923
|
+
let base = basename2(p);
|
|
21901
21924
|
let ext = "";
|
|
21902
21925
|
let type = "file";
|
|
21903
21926
|
let href;
|
|
@@ -22204,7 +22227,7 @@ function dirnameWithoutDot(path7) {
|
|
|
22204
22227
|
}
|
|
22205
22228
|
function isIndex(path7) {
|
|
22206
22229
|
const ext = extname(path7);
|
|
22207
|
-
const name =
|
|
22230
|
+
const name = basename2(path7, ext);
|
|
22208
22231
|
return name === "index";
|
|
22209
22232
|
}
|
|
22210
22233
|
function minimatches(files, pattern) {
|
|
@@ -22340,7 +22363,7 @@ function millisToSecs(millis) {
|
|
|
22340
22363
|
}
|
|
22341
22364
|
|
|
22342
22365
|
// src/util/dev/dev-lock.ts
|
|
22343
|
-
import { join as
|
|
22366
|
+
import { join as join4 } from "path";
|
|
22344
22367
|
import { mkdir, open, unlink, readFile } from "fs/promises";
|
|
22345
22368
|
import { unlinkSync as unlinkSync2, constants } from "fs";
|
|
22346
22369
|
var DEV_LOCK_FILE = "dev.lock";
|
|
@@ -22377,8 +22400,8 @@ async function tryReadLockFile(lockPath) {
|
|
|
22377
22400
|
}
|
|
22378
22401
|
}
|
|
22379
22402
|
async function acquireDevLock(projectRoot, port) {
|
|
22380
|
-
const vercelDir =
|
|
22381
|
-
const lockPath =
|
|
22403
|
+
const vercelDir = join4(projectRoot, VERCEL_DIR);
|
|
22404
|
+
const lockPath = join4(vercelDir, DEV_LOCK_FILE);
|
|
22382
22405
|
await mkdir(vercelDir, { recursive: true });
|
|
22383
22406
|
const lockData = {
|
|
22384
22407
|
pid: process.pid,
|
|
@@ -22426,7 +22449,7 @@ async function acquireDevLock(projectRoot, port) {
|
|
|
22426
22449
|
};
|
|
22427
22450
|
}
|
|
22428
22451
|
function releaseDevLock(projectRoot) {
|
|
22429
|
-
const lockPath =
|
|
22452
|
+
const lockPath = join4(projectRoot, VERCEL_DIR, DEV_LOCK_FILE);
|
|
22430
22453
|
try {
|
|
22431
22454
|
unlinkSync2(lockPath);
|
|
22432
22455
|
} catch (err) {
|
|
@@ -22524,7 +22547,7 @@ To link your project, run ${getCommandName("dev")} without \`-L\` or \`--local\`
|
|
|
22524
22547
|
projectId = project.id;
|
|
22525
22548
|
orgId = org.id;
|
|
22526
22549
|
if (project.rootDirectory) {
|
|
22527
|
-
cwd =
|
|
22550
|
+
cwd = join5(cwd, project.rootDirectory);
|
|
22528
22551
|
}
|
|
22529
22552
|
envValues = (await pullEnvRecords(client, project.id, "vercel-cli:dev")).env;
|
|
22530
22553
|
}
|
|
@@ -22642,7 +22665,7 @@ To link your project, run ${getCommandName("dev")} without \`-L\` or \`--local\`
|
|
|
22642
22665
|
process.on("SIGINT", async () => await cleanup("SIGINT"));
|
|
22643
22666
|
process.on("SIGHUP", async () => await cleanup("SIGHUP"));
|
|
22644
22667
|
if (!devServer.devCommand) {
|
|
22645
|
-
const outputDir =
|
|
22668
|
+
const outputDir = join5(cwd, OUTPUT_DIR);
|
|
22646
22669
|
if (await import_fs_extra2.default.pathExists(outputDir)) {
|
|
22647
22670
|
output_manager_default.log(`Removing ${OUTPUT_DIR}`);
|
|
22648
22671
|
await import_fs_extra2.default.remove(outputDir);
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
formatEnvironment,
|
|
26
26
|
validateLsArgs
|
|
27
|
-
} from "../../chunks/chunk-
|
|
27
|
+
} from "../../chunks/chunk-5LPWBMQG.js";
|
|
28
28
|
import {
|
|
29
29
|
validateJsonOutput
|
|
30
30
|
} from "../../chunks/chunk-KXDWXXJH.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
34
34
|
import {
|
|
35
35
|
getCommandAliases
|
|
36
|
-
} from "../../chunks/chunk-
|
|
36
|
+
} from "../../chunks/chunk-QXXH6L46.js";
|
|
37
37
|
import "../../chunks/chunk-ELA5VN3A.js";
|
|
38
38
|
import "../../chunks/chunk-B3JTF4CF.js";
|
|
39
39
|
import "../../chunks/chunk-A5KP5HAI.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
stamp_default
|
|
57
57
|
} from "../../chunks/chunk-64IF634X.js";
|
|
58
58
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
59
|
-
import "../../chunks/chunk-
|
|
59
|
+
import "../../chunks/chunk-2Z66EK7E.js";
|
|
60
60
|
import {
|
|
61
61
|
help
|
|
62
62
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
resolveProjectContext,
|
|
85
85
|
runSubcommand,
|
|
86
86
|
updateSubcommand
|
|
87
|
-
} from "../../chunks/chunk-
|
|
87
|
+
} from "../../chunks/chunk-J23MTK5H.js";
|
|
88
88
|
import {
|
|
89
89
|
TelemetryClient,
|
|
90
90
|
require_dist as require_dist2
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
addSubcommand7 as addSubcommand,
|
|
12
12
|
getCommandAliases,
|
|
13
13
|
linkCommand
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-QXXH6L46.js";
|
|
15
15
|
import "../../chunks/chunk-ELA5VN3A.js";
|
|
16
16
|
import "../../chunks/chunk-B3JTF4CF.js";
|
|
17
17
|
import "../../chunks/chunk-A5KP5HAI.js";
|
|
@@ -26,12 +26,12 @@ import "../../chunks/chunk-7QVJTI5H.js";
|
|
|
26
26
|
import "../../chunks/chunk-O5GNPPTU.js";
|
|
27
27
|
import {
|
|
28
28
|
ensureLink
|
|
29
|
-
} from "../../chunks/chunk-
|
|
30
|
-
import "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-3T3AIIEO.js";
|
|
30
|
+
import "../../chunks/chunk-R7FRJJSO.js";
|
|
31
31
|
import {
|
|
32
32
|
isPromptCanceledError
|
|
33
|
-
} from "../../chunks/chunk-
|
|
34
|
-
import "../../chunks/chunk-
|
|
33
|
+
} from "../../chunks/chunk-Z7RSIWNT.js";
|
|
34
|
+
import "../../chunks/chunk-2Z66EK7E.js";
|
|
35
35
|
import {
|
|
36
36
|
help
|
|
37
37
|
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
getScope,
|
|
44
44
|
pull,
|
|
45
45
|
resolveProjectCwd
|
|
46
|
-
} from "../../chunks/chunk-
|
|
46
|
+
} from "../../chunks/chunk-J23MTK5H.js";
|
|
47
47
|
import {
|
|
48
48
|
TelemetryClient
|
|
49
49
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
formatEnvironment,
|
|
19
19
|
validateLsArgs
|
|
20
|
-
} from "../../chunks/chunk-
|
|
20
|
+
} from "../../chunks/chunk-5LPWBMQG.js";
|
|
21
21
|
import {
|
|
22
22
|
validateJsonOutput
|
|
23
23
|
} from "../../chunks/chunk-KXDWXXJH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getScope,
|
|
42
42
|
parseTarget,
|
|
43
43
|
toHost
|
|
44
|
-
} from "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-J23MTK5H.js";
|
|
45
45
|
import {
|
|
46
46
|
TelemetryClient
|
|
47
47
|
} from "../../chunks/chunk-ECCWJHC6.js";
|