vercel 53.1.1 → 53.3.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-UAZIKU22.js → add-PGPQCMJK.js} +9 -9
- package/dist/chunks/{chunk-5B27ZNJB.js → chunk-25WI74GM.js} +7 -7
- package/dist/chunks/{chunk-C7FXVPAA.js → chunk-2TNGZL25.js} +2 -2
- package/dist/chunks/{chunk-T2DVW5BM.js → chunk-3GJFG6GX.js} +4 -4
- package/dist/chunks/{chunk-4Q5VS23S.js → chunk-3NSIZGHP.js} +3 -3
- package/dist/chunks/{chunk-QIHIANBF.js → chunk-3XU5UGVN.js} +1 -0
- package/dist/chunks/{chunk-NFAQ5Q3Z.js → chunk-3YDXZRSZ.js} +2 -2
- package/dist/chunks/{chunk-KFFW6MSL.js → chunk-4L73BR7G.js} +11 -12
- package/dist/chunks/{chunk-HMM7V4AU.js → chunk-4LDQIDKG.js} +2 -2
- package/dist/chunks/{chunk-4Z7KJQGN.js → chunk-4OEA5ILS.js} +0 -1
- package/dist/chunks/{chunk-WMD7Y6HT.js → chunk-4VJ3GTBX.js} +1 -1
- package/dist/chunks/{chunk-KOCX7HWE.js → chunk-7EJTBI6M.js} +11 -11
- package/dist/chunks/{chunk-VQSAZO3U.js → chunk-7Z5XFBB4.js} +140 -86
- package/dist/chunks/{chunk-5GMV7WTU.js → chunk-AAPG3P4D.js} +9 -11
- package/dist/chunks/{chunk-WS4HI35O.js → chunk-AORK3I3E.js} +1 -1
- package/dist/chunks/{chunk-IABMY4Q3.js → chunk-AXQNAI65.js} +1 -1
- package/dist/chunks/{chunk-XZ7CVBQ4.js → chunk-EBEBY45K.js} +11 -1
- package/dist/chunks/{chunk-LN5ZMLBU.js → chunk-GCKUEAUE.js} +2 -2
- package/dist/chunks/{chunk-JNOMOD7R.js → chunk-GQLARSTH.js} +1 -1
- package/dist/chunks/{chunk-JDKASMB2.js → chunk-H57DZL5B.js} +3 -3
- package/dist/chunks/{chunk-NCUOSZ6X.js → chunk-HAJ2XRTQ.js} +2 -2
- package/dist/chunks/{chunk-AES77UB7.js → chunk-HJVSVCAZ.js} +59 -14
- package/dist/chunks/{chunk-3LRN4Q7G.js → chunk-IS56OO2J.js} +3 -3
- package/dist/chunks/{chunk-SPXTKMOV.js → chunk-JJ36CB7A.js} +722 -938
- package/dist/chunks/{chunk-P3H4MP5H.js → chunk-JZLADLMF.js} +2 -2
- package/dist/chunks/{chunk-ABDTA3V2.js → chunk-KSIISCB2.js} +1 -1
- package/dist/chunks/{chunk-VS4O4MKY.js → chunk-MUBKPS2Z.js} +1 -1
- package/dist/chunks/{chunk-DFUTSURK.js → chunk-NF7HK5MP.js} +2 -2
- package/dist/chunks/{chunk-77JGNI4Z.js → chunk-NIOGCTVR.js} +2 -2
- package/dist/chunks/{chunk-5EDL2IVB.js → chunk-ONYQGA2O.js} +2 -2
- package/dist/chunks/{chunk-EYQEF55O.js → chunk-PR72OE3G.js} +4 -3
- package/dist/chunks/{chunk-IEKDY4FP.js → chunk-QGLS47RE.js} +1 -1
- package/dist/chunks/{chunk-BAAZFRLH.js → chunk-QV34LTI7.js} +420 -108
- package/dist/chunks/{chunk-YIK5Y7MI.js → chunk-RI23R2QO.js} +4 -4
- package/dist/chunks/{chunk-LDFOVKJS.js → chunk-RYUPBGRO.js} +34 -45
- package/dist/chunks/{chunk-3P3YBOCQ.js → chunk-SOSCFYOT.js} +2 -2
- package/dist/chunks/{chunk-JPVQD2PJ.js → chunk-TR6DYQV6.js} +1 -1
- package/dist/chunks/{chunk-JCLLQ23G.js → chunk-WOWCXMTU.js} +1 -1
- package/dist/chunks/{chunk-MSJX3VKI.js → chunk-X7KU44KR.js} +1 -1
- package/dist/chunks/{chunk-GDOCMDCB.js → chunk-XYYGNWMQ.js} +4 -4
- package/dist/chunks/{compile-vercel-config-BUURMPDD.js → compile-vercel-config-H4BUE5BZ.js} +5 -5
- package/dist/chunks/{delete-GBLJYO3T.js → delete-HVWVDBQF.js} +7 -7
- package/dist/chunks/{disable-QFE5TGWG.js → disable-CMBQPZ7L.js} +7 -7
- package/dist/chunks/{discard-IPPO7M2N.js → discard-ZDNWUYLY.js} +7 -7
- package/dist/chunks/{edit-KQD3MEZA.js → edit-YJYM3EKS.js} +9 -9
- package/dist/chunks/{enable-JBL4DMGJ.js → enable-ITE7U5C4.js} +7 -7
- package/dist/chunks/{export-KLWZUAYD.js → export-VVN33IBK.js} +7 -7
- package/dist/chunks/{inspect-TWW2XBDE.js → inspect-I7ILS3E2.js} +9 -9
- package/dist/chunks/{list-WJGLZ5ES.js → list-6PZO3UIZ.js} +7 -7
- package/dist/chunks/{list-UM77B7WK.js → list-BWIEHOTA.js} +10 -10
- package/dist/chunks/{ls-WVHDFPT3.js → ls-LZZFID76.js} +9 -9
- package/dist/chunks/{publish-45SAIZE4.js → publish-NULVZ7RB.js} +7 -7
- package/dist/chunks/{query-VH2TS6IS.js → query-BGI3AVJA.js} +9 -9
- package/dist/chunks/{reorder-NYENR2XY.js → reorder-G66QSKTR.js} +7 -7
- package/dist/chunks/{restore-H2VIG7KZ.js → restore-LHDVXFOH.js} +7 -7
- package/dist/chunks/{rm-RQEP4KMK.js → rm-DTAOTWXD.js} +9 -9
- package/dist/chunks/{routes-KDWN24QA.js → routes-2YVMQEPC.js} +2 -2
- package/dist/chunks/{rule-inspect-GR3RMO2J.js → rule-inspect-AOITFBTB.js} +9 -9
- package/dist/chunks/{rules-EOBQZE3T.js → rules-IW3XGCNA.js} +8 -8
- package/dist/chunks/{schema-OOGMY2SS.js → schema-2VCQ2MAA.js} +10 -10
- package/dist/chunks/{types-FAFL42RV.js → types-7VDI75PV.js} +4 -4
- package/dist/chunks/{update-VLOWX7UQ.js → update-L3DZ5STE.js} +9 -9
- package/dist/commands/build/index.js +21 -26
- package/dist/commands/deploy/index.js +87 -34
- package/dist/commands/dev/index.js +15 -15
- package/dist/commands/env/index.js +19 -19
- package/dist/commands/link/index.js +26 -22
- package/dist/commands/list/index.js +11 -11
- package/dist/commands-bulk.js +397 -214
- package/dist/help.js +1 -1
- package/dist/index.js +299 -49
- package/dist/version.mjs +1 -1
- package/package.json +27 -30
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
TelemetryClient,
|
|
9
9
|
require_dist as require_dist2,
|
|
10
10
|
require_graceful_fs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4OEA5ILS.js";
|
|
12
12
|
import {
|
|
13
13
|
buildCommandWithYes,
|
|
14
14
|
getPreservedArgsForEnvPull,
|
|
15
15
|
outputActionRequired,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AXQNAI65.js";
|
|
18
18
|
import {
|
|
19
19
|
require_ms,
|
|
20
20
|
stamp_default
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
forceOption,
|
|
24
24
|
formatOption,
|
|
25
|
-
getArgs,
|
|
26
25
|
getFlagsSpecification,
|
|
27
26
|
parseArguments,
|
|
28
27
|
printError,
|
|
29
28
|
require_string_width,
|
|
30
29
|
require_strip_ansi,
|
|
31
30
|
yesOption
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GQLARSTH.js";
|
|
33
32
|
import {
|
|
34
33
|
APIError,
|
|
35
34
|
CantParseJSONFile,
|
|
36
35
|
ConflictingConfigFiles,
|
|
36
|
+
DeprecatedNowJson,
|
|
37
37
|
InvalidToken,
|
|
38
38
|
MissingUser,
|
|
39
39
|
ProjectNotFound,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isAPIError,
|
|
44
44
|
packageName,
|
|
45
45
|
require_lib
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EBEBY45K.js";
|
|
47
47
|
import {
|
|
48
48
|
emoji,
|
|
49
49
|
eraseLines,
|
|
@@ -97,18 +97,18 @@ var require_main = __commonJS({
|
|
|
97
97
|
return obj;
|
|
98
98
|
}
|
|
99
99
|
function config(options) {
|
|
100
|
-
var
|
|
100
|
+
var path = ".env";
|
|
101
101
|
var encoding = "utf8";
|
|
102
102
|
if (options) {
|
|
103
103
|
if (options.path) {
|
|
104
|
-
|
|
104
|
+
path = options.path;
|
|
105
105
|
}
|
|
106
106
|
if (options.encoding) {
|
|
107
107
|
encoding = options.encoding;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
|
-
var parsedObj = parse3(fs5.readFileSync(
|
|
111
|
+
var parsedObj = parse3(fs5.readFileSync(path, { encoding }));
|
|
112
112
|
Object.keys(parsedObj).forEach(function(key) {
|
|
113
113
|
process.env[key] = process.env[key] || parsedObj[key];
|
|
114
114
|
});
|
|
@@ -961,8 +961,8 @@ var require_uri_all = __commonJS({
|
|
|
961
961
|
wsComponents.secure = void 0;
|
|
962
962
|
}
|
|
963
963
|
if (wsComponents.resourceName) {
|
|
964
|
-
var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
|
965
|
-
wsComponents.path =
|
|
964
|
+
var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
|
|
965
|
+
wsComponents.path = path && path !== "/" ? path : void 0;
|
|
966
966
|
wsComponents.query = query;
|
|
967
967
|
wsComponents.resourceName = void 0;
|
|
968
968
|
}
|
|
@@ -1364,12 +1364,12 @@ var require_util = __commonJS({
|
|
|
1364
1364
|
return "'" + escapeQuotes(str) + "'";
|
|
1365
1365
|
}
|
|
1366
1366
|
function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
|
|
1367
|
-
var
|
|
1368
|
-
return joinPaths(currentPath,
|
|
1367
|
+
var path = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
|
|
1368
|
+
return joinPaths(currentPath, path);
|
|
1369
1369
|
}
|
|
1370
1370
|
function getPath(currentPath, prop, jsonPointers) {
|
|
1371
|
-
var
|
|
1372
|
-
return joinPaths(currentPath,
|
|
1371
|
+
var path = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
|
|
1372
|
+
return joinPaths(currentPath, path);
|
|
1373
1373
|
}
|
|
1374
1374
|
var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
|
|
1375
1375
|
var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
@@ -6636,10 +6636,10 @@ var require_fs = __commonJS({
|
|
|
6636
6636
|
var require_utils = __commonJS({
|
|
6637
6637
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
6638
6638
|
"use strict";
|
|
6639
|
-
var
|
|
6639
|
+
var path = __require("path");
|
|
6640
6640
|
module.exports.checkPath = function checkPath(pth) {
|
|
6641
6641
|
if (process.platform === "win32") {
|
|
6642
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
6642
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
|
|
6643
6643
|
if (pathHasInvalidWinCharacters) {
|
|
6644
6644
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
6645
6645
|
error.code = "EINVAL";
|
|
@@ -6703,8 +6703,8 @@ var require_utimes = __commonJS({
|
|
|
6703
6703
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module) {
|
|
6704
6704
|
"use strict";
|
|
6705
6705
|
var fs5 = require_graceful_fs();
|
|
6706
|
-
function utimesMillis(
|
|
6707
|
-
fs5.open(
|
|
6706
|
+
function utimesMillis(path, atime, mtime, callback) {
|
|
6707
|
+
fs5.open(path, "r+", (err, fd) => {
|
|
6708
6708
|
if (err)
|
|
6709
6709
|
return callback(err);
|
|
6710
6710
|
fs5.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -6715,8 +6715,8 @@ var require_utimes = __commonJS({
|
|
|
6715
6715
|
});
|
|
6716
6716
|
});
|
|
6717
6717
|
}
|
|
6718
|
-
function utimesMillisSync(
|
|
6719
|
-
const fd = fs5.openSync(
|
|
6718
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
6719
|
+
const fd = fs5.openSync(path, "r+");
|
|
6720
6720
|
fs5.futimesSync(fd, atime, mtime);
|
|
6721
6721
|
return fs5.closeSync(fd);
|
|
6722
6722
|
}
|
|
@@ -6732,7 +6732,7 @@ var require_stat = __commonJS({
|
|
|
6732
6732
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
6733
6733
|
"use strict";
|
|
6734
6734
|
var fs5 = require_fs();
|
|
6735
|
-
var
|
|
6735
|
+
var path = __require("path");
|
|
6736
6736
|
var util = __require("util");
|
|
6737
6737
|
function getStats(src, dest, opts) {
|
|
6738
6738
|
const statFunc = opts.dereference ? (file) => fs5.stat(file, { bigint: true }) : (file) => fs5.lstat(file, { bigint: true });
|
|
@@ -6765,8 +6765,8 @@ var require_stat = __commonJS({
|
|
|
6765
6765
|
const { srcStat, destStat } = stats;
|
|
6766
6766
|
if (destStat) {
|
|
6767
6767
|
if (areIdentical(srcStat, destStat)) {
|
|
6768
|
-
const srcBaseName =
|
|
6769
|
-
const destBaseName =
|
|
6768
|
+
const srcBaseName = path.basename(src);
|
|
6769
|
+
const destBaseName = path.basename(dest);
|
|
6770
6770
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
6771
6771
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
6772
6772
|
}
|
|
@@ -6789,8 +6789,8 @@ var require_stat = __commonJS({
|
|
|
6789
6789
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
6790
6790
|
if (destStat) {
|
|
6791
6791
|
if (areIdentical(srcStat, destStat)) {
|
|
6792
|
-
const srcBaseName =
|
|
6793
|
-
const destBaseName =
|
|
6792
|
+
const srcBaseName = path.basename(src);
|
|
6793
|
+
const destBaseName = path.basename(dest);
|
|
6794
6794
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
6795
6795
|
return { srcStat, destStat, isChangingCase: true };
|
|
6796
6796
|
}
|
|
@@ -6809,9 +6809,9 @@ var require_stat = __commonJS({
|
|
|
6809
6809
|
return { srcStat, destStat };
|
|
6810
6810
|
}
|
|
6811
6811
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
6812
|
-
const srcParent =
|
|
6813
|
-
const destParent =
|
|
6814
|
-
if (destParent === srcParent || destParent ===
|
|
6812
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
6813
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
6814
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
6815
6815
|
return cb();
|
|
6816
6816
|
fs5.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
6817
6817
|
if (err) {
|
|
@@ -6826,9 +6826,9 @@ var require_stat = __commonJS({
|
|
|
6826
6826
|
});
|
|
6827
6827
|
}
|
|
6828
6828
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
6829
|
-
const srcParent =
|
|
6830
|
-
const destParent =
|
|
6831
|
-
if (destParent === srcParent || destParent ===
|
|
6829
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
6830
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
6831
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
6832
6832
|
return;
|
|
6833
6833
|
let destStat;
|
|
6834
6834
|
try {
|
|
@@ -6847,8 +6847,8 @@ var require_stat = __commonJS({
|
|
|
6847
6847
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
6848
6848
|
}
|
|
6849
6849
|
function isSrcSubdir(src, dest) {
|
|
6850
|
-
const srcArr =
|
|
6851
|
-
const destArr =
|
|
6850
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
6851
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
6852
6852
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
6853
6853
|
}
|
|
6854
6854
|
function errMsg(src, dest, funcName) {
|
|
@@ -6870,7 +6870,7 @@ var require_copy_sync = __commonJS({
|
|
|
6870
6870
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module) {
|
|
6871
6871
|
"use strict";
|
|
6872
6872
|
var fs5 = require_graceful_fs();
|
|
6873
|
-
var
|
|
6873
|
+
var path = __require("path");
|
|
6874
6874
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
6875
6875
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
6876
6876
|
var stat2 = require_stat();
|
|
@@ -6893,7 +6893,7 @@ var require_copy_sync = __commonJS({
|
|
|
6893
6893
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
6894
6894
|
if (opts.filter && !opts.filter(src, dest))
|
|
6895
6895
|
return;
|
|
6896
|
-
const destParent =
|
|
6896
|
+
const destParent = path.dirname(dest);
|
|
6897
6897
|
if (!fs5.existsSync(destParent))
|
|
6898
6898
|
mkdirsSync(destParent);
|
|
6899
6899
|
return getStats(destStat, src, dest, opts);
|
|
@@ -6969,15 +6969,15 @@ var require_copy_sync = __commonJS({
|
|
|
6969
6969
|
fs5.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
6970
6970
|
}
|
|
6971
6971
|
function copyDirItem(item, src, dest, opts) {
|
|
6972
|
-
const srcItem =
|
|
6973
|
-
const destItem =
|
|
6972
|
+
const srcItem = path.join(src, item);
|
|
6973
|
+
const destItem = path.join(dest, item);
|
|
6974
6974
|
const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
6975
6975
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
6976
6976
|
}
|
|
6977
6977
|
function onLink(destStat, src, dest, opts) {
|
|
6978
6978
|
let resolvedSrc = fs5.readlinkSync(src);
|
|
6979
6979
|
if (opts.dereference) {
|
|
6980
|
-
resolvedSrc =
|
|
6980
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
6981
6981
|
}
|
|
6982
6982
|
if (!destStat) {
|
|
6983
6983
|
return fs5.symlinkSync(resolvedSrc, dest);
|
|
@@ -6991,7 +6991,7 @@ var require_copy_sync = __commonJS({
|
|
|
6991
6991
|
throw err;
|
|
6992
6992
|
}
|
|
6993
6993
|
if (opts.dereference) {
|
|
6994
|
-
resolvedDest =
|
|
6994
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
6995
6995
|
}
|
|
6996
6996
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
6997
6997
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -7026,8 +7026,8 @@ var require_path_exists = __commonJS({
|
|
|
7026
7026
|
"use strict";
|
|
7027
7027
|
var u = require_universalify().fromPromise;
|
|
7028
7028
|
var fs5 = require_fs();
|
|
7029
|
-
function pathExists2(
|
|
7030
|
-
return fs5.access(
|
|
7029
|
+
function pathExists2(path) {
|
|
7030
|
+
return fs5.access(path).then(() => true).catch(() => false);
|
|
7031
7031
|
}
|
|
7032
7032
|
module.exports = {
|
|
7033
7033
|
pathExists: u(pathExists2),
|
|
@@ -7041,7 +7041,7 @@ var require_copy = __commonJS({
|
|
|
7041
7041
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
7042
7042
|
"use strict";
|
|
7043
7043
|
var fs5 = require_graceful_fs();
|
|
7044
|
-
var
|
|
7044
|
+
var path = __require("path");
|
|
7045
7045
|
var mkdirs = require_mkdirs().mkdirs;
|
|
7046
7046
|
var pathExists2 = require_path_exists().pathExists;
|
|
7047
7047
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -7077,7 +7077,7 @@ var require_copy = __commonJS({
|
|
|
7077
7077
|
});
|
|
7078
7078
|
}
|
|
7079
7079
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
7080
|
-
const destParent =
|
|
7080
|
+
const destParent = path.dirname(dest);
|
|
7081
7081
|
pathExists2(destParent, (err, dirExists) => {
|
|
7082
7082
|
if (err)
|
|
7083
7083
|
return cb(err);
|
|
@@ -7209,8 +7209,8 @@ var require_copy = __commonJS({
|
|
|
7209
7209
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
7210
7210
|
}
|
|
7211
7211
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
7212
|
-
const srcItem =
|
|
7213
|
-
const destItem =
|
|
7212
|
+
const srcItem = path.join(src, item);
|
|
7213
|
+
const destItem = path.join(dest, item);
|
|
7214
7214
|
stat2.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
7215
7215
|
if (err)
|
|
7216
7216
|
return cb(err);
|
|
@@ -7227,7 +7227,7 @@ var require_copy = __commonJS({
|
|
|
7227
7227
|
if (err)
|
|
7228
7228
|
return cb(err);
|
|
7229
7229
|
if (opts.dereference) {
|
|
7230
|
-
resolvedSrc =
|
|
7230
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
7231
7231
|
}
|
|
7232
7232
|
if (!destStat) {
|
|
7233
7233
|
return fs5.symlink(resolvedSrc, dest, cb);
|
|
@@ -7239,7 +7239,7 @@ var require_copy = __commonJS({
|
|
|
7239
7239
|
return cb(err2);
|
|
7240
7240
|
}
|
|
7241
7241
|
if (opts.dereference) {
|
|
7242
|
-
resolvedDest =
|
|
7242
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
7243
7243
|
}
|
|
7244
7244
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
7245
7245
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -7279,7 +7279,7 @@ var require_rimraf = __commonJS({
|
|
|
7279
7279
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module) {
|
|
7280
7280
|
"use strict";
|
|
7281
7281
|
var fs5 = require_graceful_fs();
|
|
7282
|
-
var
|
|
7282
|
+
var path = __require("path");
|
|
7283
7283
|
var assert = __require("assert");
|
|
7284
7284
|
var isWindows = process.platform === "win32";
|
|
7285
7285
|
function defaults(options) {
|
|
@@ -7427,7 +7427,7 @@ var require_rimraf = __commonJS({
|
|
|
7427
7427
|
if (n === 0)
|
|
7428
7428
|
return options.rmdir(p, cb);
|
|
7429
7429
|
files.forEach((f) => {
|
|
7430
|
-
rimraf(
|
|
7430
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
7431
7431
|
if (errState) {
|
|
7432
7432
|
return;
|
|
7433
7433
|
}
|
|
@@ -7493,7 +7493,7 @@ var require_rimraf = __commonJS({
|
|
|
7493
7493
|
function rmkidsSync(p, options) {
|
|
7494
7494
|
assert(p);
|
|
7495
7495
|
assert(options);
|
|
7496
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
7496
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
7497
7497
|
if (isWindows) {
|
|
7498
7498
|
const startTime = Date.now();
|
|
7499
7499
|
do {
|
|
@@ -7520,15 +7520,15 @@ var require_remove = __commonJS({
|
|
|
7520
7520
|
var fs5 = require_graceful_fs();
|
|
7521
7521
|
var u = require_universalify().fromCallback;
|
|
7522
7522
|
var rimraf = require_rimraf();
|
|
7523
|
-
function remove(
|
|
7523
|
+
function remove(path, callback) {
|
|
7524
7524
|
if (fs5.rm)
|
|
7525
|
-
return fs5.rm(
|
|
7526
|
-
rimraf(
|
|
7525
|
+
return fs5.rm(path, { recursive: true, force: true }, callback);
|
|
7526
|
+
rimraf(path, callback);
|
|
7527
7527
|
}
|
|
7528
|
-
function removeSync(
|
|
7528
|
+
function removeSync(path) {
|
|
7529
7529
|
if (fs5.rmSync)
|
|
7530
|
-
return fs5.rmSync(
|
|
7531
|
-
rimraf.sync(
|
|
7530
|
+
return fs5.rmSync(path, { recursive: true, force: true });
|
|
7531
|
+
rimraf.sync(path);
|
|
7532
7532
|
}
|
|
7533
7533
|
module.exports = {
|
|
7534
7534
|
remove: u(remove),
|
|
@@ -7543,7 +7543,7 @@ var require_empty = __commonJS({
|
|
|
7543
7543
|
"use strict";
|
|
7544
7544
|
var u = require_universalify().fromPromise;
|
|
7545
7545
|
var fs5 = require_fs();
|
|
7546
|
-
var
|
|
7546
|
+
var path = __require("path");
|
|
7547
7547
|
var mkdir2 = require_mkdirs();
|
|
7548
7548
|
var remove = require_remove();
|
|
7549
7549
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -7553,7 +7553,7 @@ var require_empty = __commonJS({
|
|
|
7553
7553
|
} catch {
|
|
7554
7554
|
return mkdir2.mkdirs(dir);
|
|
7555
7555
|
}
|
|
7556
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
7556
|
+
return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
|
|
7557
7557
|
});
|
|
7558
7558
|
function emptyDirSync(dir) {
|
|
7559
7559
|
let items;
|
|
@@ -7563,7 +7563,7 @@ var require_empty = __commonJS({
|
|
|
7563
7563
|
return mkdir2.mkdirsSync(dir);
|
|
7564
7564
|
}
|
|
7565
7565
|
items.forEach((item) => {
|
|
7566
|
-
item =
|
|
7566
|
+
item = path.join(dir, item);
|
|
7567
7567
|
remove.removeSync(item);
|
|
7568
7568
|
});
|
|
7569
7569
|
}
|
|
@@ -7581,7 +7581,7 @@ var require_file = __commonJS({
|
|
|
7581
7581
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
7582
7582
|
"use strict";
|
|
7583
7583
|
var u = require_universalify().fromCallback;
|
|
7584
|
-
var
|
|
7584
|
+
var path = __require("path");
|
|
7585
7585
|
var fs5 = require_graceful_fs();
|
|
7586
7586
|
var mkdir2 = require_mkdirs();
|
|
7587
7587
|
function createFile(file, callback) {
|
|
@@ -7595,7 +7595,7 @@ var require_file = __commonJS({
|
|
|
7595
7595
|
fs5.stat(file, (err, stats) => {
|
|
7596
7596
|
if (!err && stats.isFile())
|
|
7597
7597
|
return callback();
|
|
7598
|
-
const dir =
|
|
7598
|
+
const dir = path.dirname(file);
|
|
7599
7599
|
fs5.stat(dir, (err2, stats2) => {
|
|
7600
7600
|
if (err2) {
|
|
7601
7601
|
if (err2.code === "ENOENT") {
|
|
@@ -7626,7 +7626,7 @@ var require_file = __commonJS({
|
|
|
7626
7626
|
}
|
|
7627
7627
|
if (stats && stats.isFile())
|
|
7628
7628
|
return;
|
|
7629
|
-
const dir =
|
|
7629
|
+
const dir = path.dirname(file);
|
|
7630
7630
|
try {
|
|
7631
7631
|
if (!fs5.statSync(dir).isDirectory()) {
|
|
7632
7632
|
fs5.readdirSync(dir);
|
|
@@ -7651,7 +7651,7 @@ var require_link = __commonJS({
|
|
|
7651
7651
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
7652
7652
|
"use strict";
|
|
7653
7653
|
var u = require_universalify().fromCallback;
|
|
7654
|
-
var
|
|
7654
|
+
var path = __require("path");
|
|
7655
7655
|
var fs5 = require_graceful_fs();
|
|
7656
7656
|
var mkdir2 = require_mkdirs();
|
|
7657
7657
|
var pathExists2 = require_path_exists().pathExists;
|
|
@@ -7672,7 +7672,7 @@ var require_link = __commonJS({
|
|
|
7672
7672
|
}
|
|
7673
7673
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
7674
7674
|
return callback(null);
|
|
7675
|
-
const dir =
|
|
7675
|
+
const dir = path.dirname(dstpath);
|
|
7676
7676
|
pathExists2(dir, (err2, dirExists) => {
|
|
7677
7677
|
if (err2)
|
|
7678
7678
|
return callback(err2);
|
|
@@ -7701,7 +7701,7 @@ var require_link = __commonJS({
|
|
|
7701
7701
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
7702
7702
|
throw err;
|
|
7703
7703
|
}
|
|
7704
|
-
const dir =
|
|
7704
|
+
const dir = path.dirname(dstpath);
|
|
7705
7705
|
const dirExists = fs5.existsSync(dir);
|
|
7706
7706
|
if (dirExists)
|
|
7707
7707
|
return fs5.linkSync(srcpath, dstpath);
|
|
@@ -7719,11 +7719,11 @@ var require_link = __commonJS({
|
|
|
7719
7719
|
var require_symlink_paths = __commonJS({
|
|
7720
7720
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
7721
7721
|
"use strict";
|
|
7722
|
-
var
|
|
7722
|
+
var path = __require("path");
|
|
7723
7723
|
var fs5 = require_graceful_fs();
|
|
7724
7724
|
var pathExists2 = require_path_exists().pathExists;
|
|
7725
7725
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
7726
|
-
if (
|
|
7726
|
+
if (path.isAbsolute(srcpath)) {
|
|
7727
7727
|
return fs5.lstat(srcpath, (err) => {
|
|
7728
7728
|
if (err) {
|
|
7729
7729
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -7735,8 +7735,8 @@ var require_symlink_paths = __commonJS({
|
|
|
7735
7735
|
});
|
|
7736
7736
|
});
|
|
7737
7737
|
} else {
|
|
7738
|
-
const dstdir =
|
|
7739
|
-
const relativeToDst =
|
|
7738
|
+
const dstdir = path.dirname(dstpath);
|
|
7739
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
7740
7740
|
return pathExists2(relativeToDst, (err, exists) => {
|
|
7741
7741
|
if (err)
|
|
7742
7742
|
return callback(err);
|
|
@@ -7753,7 +7753,7 @@ var require_symlink_paths = __commonJS({
|
|
|
7753
7753
|
}
|
|
7754
7754
|
return callback(null, {
|
|
7755
7755
|
toCwd: srcpath,
|
|
7756
|
-
toDst:
|
|
7756
|
+
toDst: path.relative(dstdir, srcpath)
|
|
7757
7757
|
});
|
|
7758
7758
|
});
|
|
7759
7759
|
}
|
|
@@ -7762,7 +7762,7 @@ var require_symlink_paths = __commonJS({
|
|
|
7762
7762
|
}
|
|
7763
7763
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
7764
7764
|
let exists;
|
|
7765
|
-
if (
|
|
7765
|
+
if (path.isAbsolute(srcpath)) {
|
|
7766
7766
|
exists = fs5.existsSync(srcpath);
|
|
7767
7767
|
if (!exists)
|
|
7768
7768
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -7771,8 +7771,8 @@ var require_symlink_paths = __commonJS({
|
|
|
7771
7771
|
toDst: srcpath
|
|
7772
7772
|
};
|
|
7773
7773
|
} else {
|
|
7774
|
-
const dstdir =
|
|
7775
|
-
const relativeToDst =
|
|
7774
|
+
const dstdir = path.dirname(dstpath);
|
|
7775
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
7776
7776
|
exists = fs5.existsSync(relativeToDst);
|
|
7777
7777
|
if (exists) {
|
|
7778
7778
|
return {
|
|
@@ -7785,7 +7785,7 @@ var require_symlink_paths = __commonJS({
|
|
|
7785
7785
|
throw new Error("relative srcpath does not exist");
|
|
7786
7786
|
return {
|
|
7787
7787
|
toCwd: srcpath,
|
|
7788
|
-
toDst:
|
|
7788
|
+
toDst: path.relative(dstdir, srcpath)
|
|
7789
7789
|
};
|
|
7790
7790
|
}
|
|
7791
7791
|
}
|
|
@@ -7837,7 +7837,7 @@ var require_symlink = __commonJS({
|
|
|
7837
7837
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
7838
7838
|
"use strict";
|
|
7839
7839
|
var u = require_universalify().fromCallback;
|
|
7840
|
-
var
|
|
7840
|
+
var path = __require("path");
|
|
7841
7841
|
var fs5 = require_fs();
|
|
7842
7842
|
var _mkdirs = require_mkdirs();
|
|
7843
7843
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -7875,7 +7875,7 @@ var require_symlink = __commonJS({
|
|
|
7875
7875
|
symlinkType(relative2.toCwd, type, (err2, type2) => {
|
|
7876
7876
|
if (err2)
|
|
7877
7877
|
return callback(err2);
|
|
7878
|
-
const dir =
|
|
7878
|
+
const dir = path.dirname(dstpath);
|
|
7879
7879
|
pathExists2(dir, (err3, dirExists) => {
|
|
7880
7880
|
if (err3)
|
|
7881
7881
|
return callback(err3);
|
|
@@ -7905,7 +7905,7 @@ var require_symlink = __commonJS({
|
|
|
7905
7905
|
const relative2 = symlinkPathsSync(srcpath, dstpath);
|
|
7906
7906
|
srcpath = relative2.toDst;
|
|
7907
7907
|
type = symlinkTypeSync(relative2.toCwd, type);
|
|
7908
|
-
const dir =
|
|
7908
|
+
const dir = path.dirname(dstpath);
|
|
7909
7909
|
const exists = fs5.existsSync(dir);
|
|
7910
7910
|
if (exists)
|
|
7911
7911
|
return fs5.symlinkSync(srcpath, dstpath, type);
|
|
@@ -8057,7 +8057,7 @@ var require_output = __commonJS({
|
|
|
8057
8057
|
"use strict";
|
|
8058
8058
|
var u = require_universalify().fromCallback;
|
|
8059
8059
|
var fs5 = require_graceful_fs();
|
|
8060
|
-
var
|
|
8060
|
+
var path = __require("path");
|
|
8061
8061
|
var mkdir2 = require_mkdirs();
|
|
8062
8062
|
var pathExists2 = require_path_exists().pathExists;
|
|
8063
8063
|
function outputFile2(file, data, encoding, callback) {
|
|
@@ -8065,7 +8065,7 @@ var require_output = __commonJS({
|
|
|
8065
8065
|
callback = encoding;
|
|
8066
8066
|
encoding = "utf8";
|
|
8067
8067
|
}
|
|
8068
|
-
const dir =
|
|
8068
|
+
const dir = path.dirname(file);
|
|
8069
8069
|
pathExists2(dir, (err, itDoes) => {
|
|
8070
8070
|
if (err)
|
|
8071
8071
|
return callback(err);
|
|
@@ -8079,7 +8079,7 @@ var require_output = __commonJS({
|
|
|
8079
8079
|
});
|
|
8080
8080
|
}
|
|
8081
8081
|
function outputFileSync(file, ...args) {
|
|
8082
|
-
const dir =
|
|
8082
|
+
const dir = path.dirname(file);
|
|
8083
8083
|
if (fs5.existsSync(dir)) {
|
|
8084
8084
|
return fs5.writeFileSync(file, ...args);
|
|
8085
8085
|
}
|
|
@@ -8144,7 +8144,7 @@ var require_move_sync = __commonJS({
|
|
|
8144
8144
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module) {
|
|
8145
8145
|
"use strict";
|
|
8146
8146
|
var fs5 = require_graceful_fs();
|
|
8147
|
-
var
|
|
8147
|
+
var path = __require("path");
|
|
8148
8148
|
var copySync = require_copy_sync2().copySync;
|
|
8149
8149
|
var removeSync = require_remove().removeSync;
|
|
8150
8150
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -8155,12 +8155,12 @@ var require_move_sync = __commonJS({
|
|
|
8155
8155
|
const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
|
|
8156
8156
|
stat2.checkParentPathsSync(src, srcStat, dest, "move");
|
|
8157
8157
|
if (!isParentRoot(dest))
|
|
8158
|
-
mkdirpSync(
|
|
8158
|
+
mkdirpSync(path.dirname(dest));
|
|
8159
8159
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
8160
8160
|
}
|
|
8161
8161
|
function isParentRoot(dest) {
|
|
8162
|
-
const parent =
|
|
8163
|
-
const parsedPath =
|
|
8162
|
+
const parent = path.dirname(dest);
|
|
8163
|
+
const parsedPath = path.parse(parent);
|
|
8164
8164
|
return parsedPath.root === parent;
|
|
8165
8165
|
}
|
|
8166
8166
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -8210,7 +8210,7 @@ var require_move = __commonJS({
|
|
|
8210
8210
|
"../../node_modules/.pnpm/fs-extra@10.0.0/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
8211
8211
|
"use strict";
|
|
8212
8212
|
var fs5 = require_graceful_fs();
|
|
8213
|
-
var
|
|
8213
|
+
var path = __require("path");
|
|
8214
8214
|
var copy = require_copy2().copy;
|
|
8215
8215
|
var remove = require_remove().remove;
|
|
8216
8216
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -8231,7 +8231,7 @@ var require_move = __commonJS({
|
|
|
8231
8231
|
return cb(err2);
|
|
8232
8232
|
if (isParentRoot(dest))
|
|
8233
8233
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
8234
|
-
mkdirp(
|
|
8234
|
+
mkdirp(path.dirname(dest), (err3) => {
|
|
8235
8235
|
if (err3)
|
|
8236
8236
|
return cb(err3);
|
|
8237
8237
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -8240,8 +8240,8 @@ var require_move = __commonJS({
|
|
|
8240
8240
|
});
|
|
8241
8241
|
}
|
|
8242
8242
|
function isParentRoot(dest) {
|
|
8243
|
-
const parent =
|
|
8244
|
-
const parsedPath =
|
|
8243
|
+
const parent = path.dirname(dest);
|
|
8244
|
+
const parsedPath = path.parse(parent);
|
|
8245
8245
|
return parsedPath.root === parent;
|
|
8246
8246
|
}
|
|
8247
8247
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -8320,272 +8320,6 @@ var require_lib2 = __commonJS({
|
|
|
8320
8320
|
}
|
|
8321
8321
|
});
|
|
8322
8322
|
|
|
8323
|
-
// ../../node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js
|
|
8324
|
-
var require_lib3 = __commonJS({
|
|
8325
|
-
"../../node_modules/.pnpm/os-paths@4.4.0/node_modules/os-paths/src/lib/index.js"(exports, module) {
|
|
8326
|
-
"use strict";
|
|
8327
|
-
var os2 = __require("os");
|
|
8328
|
-
var paths = __require("path");
|
|
8329
|
-
var isWinOS = /^win/i.test(process.platform);
|
|
8330
|
-
function normalize_path(path2) {
|
|
8331
|
-
return paths.normalize(paths.join(path2, "."));
|
|
8332
|
-
}
|
|
8333
|
-
var base = () => {
|
|
8334
|
-
const { env } = process;
|
|
8335
|
-
const object = {};
|
|
8336
|
-
object.home = () => normalize_path(os2.homedir ? os2.homedir() : env.HOME);
|
|
8337
|
-
object.temp = () => normalize_path(os2.tmpdir ? os2.tmpdir() : env.TMPDIR || env.TEMP || env.TMP);
|
|
8338
|
-
return object;
|
|
8339
|
-
};
|
|
8340
|
-
var windows = () => {
|
|
8341
|
-
const { env } = process;
|
|
8342
|
-
const object = {};
|
|
8343
|
-
object.home = () => normalize_path(
|
|
8344
|
-
os2.homedir ? os2.homedir() : env.USERPROFILE || paths.join(env.HOMEDRIVE, env.HOMEPATH) || env.HOME
|
|
8345
|
-
);
|
|
8346
|
-
object.temp = () => normalize_path(
|
|
8347
|
-
os2.tmpdir ? os2.tmpdir() : env.TEMP || env.TMP || paths.join(env.LOCALAPPDATA || env.SystemRoot || env.windir, "Temp")
|
|
8348
|
-
);
|
|
8349
|
-
return object;
|
|
8350
|
-
};
|
|
8351
|
-
var _OSPaths = class __OSPaths {
|
|
8352
|
-
constructor() {
|
|
8353
|
-
const OSPaths = function() {
|
|
8354
|
-
return new __OSPaths();
|
|
8355
|
-
};
|
|
8356
|
-
this._fn = OSPaths;
|
|
8357
|
-
const extension = isWinOS ? windows() : base();
|
|
8358
|
-
Object.keys(extension).forEach((key) => {
|
|
8359
|
-
this._fn[key] = extension[key];
|
|
8360
|
-
});
|
|
8361
|
-
return this._fn;
|
|
8362
|
-
}
|
|
8363
|
-
};
|
|
8364
|
-
module.exports = new _OSPaths();
|
|
8365
|
-
}
|
|
8366
|
-
});
|
|
8367
|
-
|
|
8368
|
-
// ../../node_modules/.pnpm/xdg-portable@7.3.0/node_modules/xdg-portable/src/lib/index.js
|
|
8369
|
-
var require_lib4 = __commonJS({
|
|
8370
|
-
"../../node_modules/.pnpm/xdg-portable@7.3.0/node_modules/xdg-portable/src/lib/index.js"(exports, module) {
|
|
8371
|
-
"use strict";
|
|
8372
|
-
var path2 = __require("path");
|
|
8373
|
-
var osPaths = require_lib3();
|
|
8374
|
-
var linux = () => {
|
|
8375
|
-
const object = {};
|
|
8376
|
-
object.cache = () => process.env.XDG_CACHE_HOME || path2.join(osPaths.home() || osPaths.temp(), ".cache");
|
|
8377
|
-
object.config = () => process.env.XDG_CONFIG_HOME || path2.join(osPaths.home() || osPaths.temp(), ".config");
|
|
8378
|
-
object.data = () => process.env.XDG_DATA_HOME || path2.join(osPaths.home() || osPaths.temp(), ".local", "share");
|
|
8379
|
-
object.runtime = () => process.env.XDG_RUNTIME_DIR || void 0;
|
|
8380
|
-
object.state = () => process.env.XDG_STATE_HOME || path2.join(osPaths.home() || osPaths.temp(), ".local", "state");
|
|
8381
|
-
return object;
|
|
8382
|
-
};
|
|
8383
|
-
var macos = () => {
|
|
8384
|
-
const object = {};
|
|
8385
|
-
object.cache = () => process.env.XDG_CACHE_HOME || path2.join(path2.join(osPaths.home() || osPaths.temp(), "Library"), "Caches");
|
|
8386
|
-
object.config = () => process.env.XDG_CONFIG_HOME || path2.join(path2.join(osPaths.home() || osPaths.temp(), "Library"), "Preferences");
|
|
8387
|
-
object.data = () => process.env.XDG_DATA_HOME || path2.join(path2.join(osPaths.home() || osPaths.temp(), "Library"), "Application Support");
|
|
8388
|
-
object.runtime = () => process.env.XDG_RUNTIME_DIR || void 0;
|
|
8389
|
-
object.state = () => process.env.XDG_STATE_HOME || path2.join(path2.join(osPaths.home() || osPaths.temp(), "Library"), "State");
|
|
8390
|
-
return object;
|
|
8391
|
-
};
|
|
8392
|
-
var windows = () => {
|
|
8393
|
-
const object = {};
|
|
8394
|
-
object.cache = () => {
|
|
8395
|
-
const localAppData = process.env.LOCALAPPDATA || path2.join(osPaths.home() || osPaths.temp(), "AppData", "Local");
|
|
8396
|
-
return process.env.XDG_CACHE_HOME || path2.join(localAppData, "xdg.cache");
|
|
8397
|
-
};
|
|
8398
|
-
object.config = () => {
|
|
8399
|
-
const appData = process.env.APPDATA || path2.join(osPaths.home() || osPaths.temp(), "AppData", "Roaming");
|
|
8400
|
-
return process.env.XDG_CONFIG_HOME || path2.join(appData, "xdg.config");
|
|
8401
|
-
};
|
|
8402
|
-
object.data = () => {
|
|
8403
|
-
const appData = process.env.APPDATA || path2.join(osPaths.home() || osPaths.temp(), "AppData", "Roaming");
|
|
8404
|
-
return process.env.XDG_DATA_HOME || path2.join(appData, "xdg.data");
|
|
8405
|
-
};
|
|
8406
|
-
object.runtime = () => process.env.XDG_RUNTIME_DIR || void 0;
|
|
8407
|
-
object.state = () => {
|
|
8408
|
-
const localAppData = process.env.LOCALAPPDATA || path2.join(osPaths.home() || osPaths.temp(), "AppData", "Local");
|
|
8409
|
-
return process.env.XDG_STATE_HOME || path2.join(localAppData, "xdg.state");
|
|
8410
|
-
};
|
|
8411
|
-
return object;
|
|
8412
|
-
};
|
|
8413
|
-
var _XDGPortable = () => {
|
|
8414
|
-
const XDGPortable = function() {
|
|
8415
|
-
return _XDGPortable();
|
|
8416
|
-
};
|
|
8417
|
-
let extension = {};
|
|
8418
|
-
if (/^darwin$/i.test(process.platform)) {
|
|
8419
|
-
extension = macos();
|
|
8420
|
-
} else if (/^win/i.test(process.platform)) {
|
|
8421
|
-
extension = windows();
|
|
8422
|
-
} else {
|
|
8423
|
-
extension = linux();
|
|
8424
|
-
}
|
|
8425
|
-
extension.configDirs = () => {
|
|
8426
|
-
const dirs = [];
|
|
8427
|
-
dirs.push(extension.config());
|
|
8428
|
-
if (process.env.XDG_CONFIG_DIRS) {
|
|
8429
|
-
dirs.push(...process.env.XDG_CONFIG_DIRS.split(path2.delimiter));
|
|
8430
|
-
}
|
|
8431
|
-
return dirs;
|
|
8432
|
-
};
|
|
8433
|
-
extension.dataDirs = () => {
|
|
8434
|
-
const dirs = [];
|
|
8435
|
-
dirs.push(extension.data());
|
|
8436
|
-
if (process.env.XDG_DATA_DIRS) {
|
|
8437
|
-
dirs.push(...process.env.XDG_DATA_DIRS.split(path2.delimiter));
|
|
8438
|
-
}
|
|
8439
|
-
return dirs;
|
|
8440
|
-
};
|
|
8441
|
-
Object.keys(extension).forEach((key) => {
|
|
8442
|
-
XDGPortable[key] = extension[key];
|
|
8443
|
-
});
|
|
8444
|
-
return XDGPortable;
|
|
8445
|
-
};
|
|
8446
|
-
module.exports = _XDGPortable();
|
|
8447
|
-
}
|
|
8448
|
-
});
|
|
8449
|
-
|
|
8450
|
-
// ../../node_modules/.pnpm/xdg-app-paths@5.1.0/node_modules/xdg-app-paths/index.js
|
|
8451
|
-
var require_xdg_app_paths = __commonJS({
|
|
8452
|
-
"../../node_modules/.pnpm/xdg-app-paths@5.1.0/node_modules/xdg-app-paths/index.js"(exports, module) {
|
|
8453
|
-
"use strict";
|
|
8454
|
-
var path2 = __require("path");
|
|
8455
|
-
var os2 = __require("os");
|
|
8456
|
-
var xdg = require_lib4();
|
|
8457
|
-
var isWinOS = /^win/i.test(process.platform);
|
|
8458
|
-
function _normalizeOptions(options, isolated) {
|
|
8459
|
-
options = options || {};
|
|
8460
|
-
if (typeof options !== "object") {
|
|
8461
|
-
options = { isolated: options };
|
|
8462
|
-
}
|
|
8463
|
-
options.isolated = options.isolated === void 0 || options.isolated === null ? isolated : options.isolated;
|
|
8464
|
-
if (typeof options.isolated !== "boolean") {
|
|
8465
|
-
throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof options.isolated}`);
|
|
8466
|
-
}
|
|
8467
|
-
return options;
|
|
8468
|
-
}
|
|
8469
|
-
var base = (name, isolated) => {
|
|
8470
|
-
const object = {};
|
|
8471
|
-
object.cache = (options = { isolated: null }) => {
|
|
8472
|
-
options = _normalizeOptions(options, isolated);
|
|
8473
|
-
return path2.join(xdg.cache(), options.isolated ? name : "");
|
|
8474
|
-
};
|
|
8475
|
-
object.config = (options = { isolated: null }) => {
|
|
8476
|
-
options = _normalizeOptions(options, isolated);
|
|
8477
|
-
return path2.join(xdg.config(), options.isolated ? name : "");
|
|
8478
|
-
};
|
|
8479
|
-
object.data = (options = { isolated: null }) => {
|
|
8480
|
-
options = _normalizeOptions(options, isolated);
|
|
8481
|
-
return path2.join(xdg.data(), options.isolated ? name : "");
|
|
8482
|
-
};
|
|
8483
|
-
object.runtime = (options = { isolated: null }) => {
|
|
8484
|
-
options = _normalizeOptions(options, isolated);
|
|
8485
|
-
return xdg.runtime() ? path2.join(xdg.runtime(), options.isolated ? name : "") : void 0;
|
|
8486
|
-
};
|
|
8487
|
-
object.state = (options = { isolated: null }) => {
|
|
8488
|
-
options = _normalizeOptions(options, isolated);
|
|
8489
|
-
return path2.join(xdg.state(), options.isolated ? name : "");
|
|
8490
|
-
};
|
|
8491
|
-
object.configDirs = (options = { isolated: null }) => {
|
|
8492
|
-
options = _normalizeOptions(options, isolated);
|
|
8493
|
-
return xdg.configDirs().map((s) => path2.join(s, options.isolated ? name : ""));
|
|
8494
|
-
};
|
|
8495
|
-
object.dataDirs = (options = { isolated: null }) => {
|
|
8496
|
-
options = _normalizeOptions(options, isolated);
|
|
8497
|
-
return xdg.dataDirs().map((s) => path2.join(s, options.isolated ? name : ""));
|
|
8498
|
-
};
|
|
8499
|
-
return object;
|
|
8500
|
-
};
|
|
8501
|
-
var windows = (name, isolated) => {
|
|
8502
|
-
const { env } = process;
|
|
8503
|
-
const homedir4 = os2.homedir();
|
|
8504
|
-
const tmpdir = os2.tmpdir();
|
|
8505
|
-
const appData = env.APPDATA || path2.join(homedir4 || tmpdir, "AppData", "Roaming");
|
|
8506
|
-
const localAppData = env.LOCALAPPDATA || path2.join(homedir4 || tmpdir, "AppData", "Local");
|
|
8507
|
-
const object = {};
|
|
8508
|
-
object.cache = (options = { isolated: null }) => {
|
|
8509
|
-
options = _normalizeOptions(options, isolated);
|
|
8510
|
-
return !options.isolated || env.XDG_CACHE_HOME ? path2.join(xdg.cache(), options.isolated ? name : "") : path2.join(localAppData, options.isolated ? name : "", "Cache");
|
|
8511
|
-
};
|
|
8512
|
-
object.config = (options = { isolated: null }) => {
|
|
8513
|
-
options = _normalizeOptions(options, isolated);
|
|
8514
|
-
const config = !options.isolated || env.XDG_CONFIG_HOME ? path2.join(xdg.config(), options.isolated ? name : "") : path2.join(appData, options.isolated ? name : "", "Config");
|
|
8515
|
-
return config;
|
|
8516
|
-
};
|
|
8517
|
-
object.data = (options = { isolated: null }) => {
|
|
8518
|
-
options = _normalizeOptions(options, isolated);
|
|
8519
|
-
const data = !options.isolated || env.XDG_DATA_HOME ? path2.join(xdg.data(), options.isolated ? name : "") : path2.join(appData, options.isolated ? name : "", "Data");
|
|
8520
|
-
return data;
|
|
8521
|
-
};
|
|
8522
|
-
object.runtime = (options = { isolated: null }) => {
|
|
8523
|
-
options = _normalizeOptions(options, isolated);
|
|
8524
|
-
return xdg.runtime() ? path2.join(xdg.runtime(), options.isolated ? name : "") : void 0;
|
|
8525
|
-
};
|
|
8526
|
-
object.state = (options = { isolated: null }) => {
|
|
8527
|
-
options = _normalizeOptions(options, isolated);
|
|
8528
|
-
return !options.isolated || env.XDG_STATE_HOME ? path2.join(xdg.state(), options.isolated ? name : "") : path2.join(localAppData, options.isolated ? name : "", "State");
|
|
8529
|
-
};
|
|
8530
|
-
object.configDirs = (options = { isolated: null }) => {
|
|
8531
|
-
options = _normalizeOptions(options, isolated);
|
|
8532
|
-
const dirs = [object.config(options)];
|
|
8533
|
-
if (env.XDG_CONFIG_DIRS) {
|
|
8534
|
-
dirs.push(...env.XDG_CONFIG_DIRS.split(path2.delimiter).map((s) => path2.join(s, options.isolated ? name : "")));
|
|
8535
|
-
}
|
|
8536
|
-
return dirs;
|
|
8537
|
-
};
|
|
8538
|
-
object.dataDirs = (options = { isolated: null }) => {
|
|
8539
|
-
options = _normalizeOptions(options, isolated);
|
|
8540
|
-
const dirs = [object.data(options)];
|
|
8541
|
-
if (env.XDG_DATA_DIRS) {
|
|
8542
|
-
dirs.push(...env.XDG_DATA_DIRS.split(path2.delimiter).map((s) => path2.join(s, options.isolated ? name : "")));
|
|
8543
|
-
}
|
|
8544
|
-
return dirs;
|
|
8545
|
-
};
|
|
8546
|
-
return object;
|
|
8547
|
-
};
|
|
8548
|
-
var _XDGAppPaths = class __XDGAppPaths {
|
|
8549
|
-
constructor(options = { name: null, suffix: null, isolated: true }) {
|
|
8550
|
-
const XDGAppPaths2 = function(options2 = { name: null, suffix: null, isolated: true }) {
|
|
8551
|
-
return new __XDGAppPaths(options2);
|
|
8552
|
-
};
|
|
8553
|
-
this._fn = XDGAppPaths2;
|
|
8554
|
-
options = options || {};
|
|
8555
|
-
if (typeof options !== "object") {
|
|
8556
|
-
options = { name: options };
|
|
8557
|
-
}
|
|
8558
|
-
let name = options.name || "";
|
|
8559
|
-
if (typeof name !== "string") {
|
|
8560
|
-
throw new TypeError(`Expected string for "name" argument, got ${typeof name}`);
|
|
8561
|
-
}
|
|
8562
|
-
const suffix = options.suffix || "";
|
|
8563
|
-
if (typeof suffix !== "string") {
|
|
8564
|
-
throw new TypeError(`Expected string for "suffix" argument, got ${typeof suffix}`);
|
|
8565
|
-
}
|
|
8566
|
-
const isolated = options.isolated === void 0 || options.isolated === null ? true : options.isolated;
|
|
8567
|
-
if (typeof isolated !== "boolean") {
|
|
8568
|
-
throw new TypeError(`Expected boolean for "isolated" argument, got ${typeof isolated}`);
|
|
8569
|
-
}
|
|
8570
|
-
if (!name) {
|
|
8571
|
-
name = path2.parse(process.pkg ? process.execPath : __require.main ? __require.main.filename : process.argv[0]).name;
|
|
8572
|
-
}
|
|
8573
|
-
if (suffix) {
|
|
8574
|
-
name += suffix;
|
|
8575
|
-
}
|
|
8576
|
-
this._fn.$name = () => name;
|
|
8577
|
-
this._fn.$isolated = () => isolated;
|
|
8578
|
-
const extension = isWinOS ? windows(name, isolated) : base(name, isolated);
|
|
8579
|
-
Object.keys(extension).forEach((key) => {
|
|
8580
|
-
this._fn[key] = extension[key];
|
|
8581
|
-
});
|
|
8582
|
-
return this._fn;
|
|
8583
|
-
}
|
|
8584
|
-
};
|
|
8585
|
-
module.exports = new _XDGAppPaths();
|
|
8586
|
-
}
|
|
8587
|
-
});
|
|
8588
|
-
|
|
8589
8323
|
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
8590
8324
|
var require_util2 = __commonJS({
|
|
8591
8325
|
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
|
|
@@ -9094,7 +8828,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
9094
8828
|
});
|
|
9095
8829
|
|
|
9096
8830
|
// ../../node_modules/.pnpm/mute-stream@1.0.0/node_modules/mute-stream/lib/index.js
|
|
9097
|
-
var
|
|
8831
|
+
var require_lib3 = __commonJS({
|
|
9098
8832
|
"../../node_modules/.pnpm/mute-stream@1.0.0/node_modules/mute-stream/lib/index.js"(exports, module) {
|
|
9099
8833
|
var Stream = __require("stream");
|
|
9100
8834
|
var _isTTY, _destSrc, destSrc_fn, _proxy, proxy_fn;
|
|
@@ -14076,7 +13810,7 @@ var require_frameworks = __commonJS({
|
|
|
14076
13810
|
frameworks: () => frameworks
|
|
14077
13811
|
});
|
|
14078
13812
|
module.exports = __toCommonJS2(frameworks_exports);
|
|
14079
|
-
var
|
|
13813
|
+
var import_path11 = __require("path");
|
|
14080
13814
|
var import_fs4 = __require("fs");
|
|
14081
13815
|
var import_read_config_file = require_read_config_file();
|
|
14082
13816
|
__reExport(frameworks_exports, require_types(), module.exports);
|
|
@@ -14127,7 +13861,7 @@ var require_frameworks = __commonJS({
|
|
|
14127
13861
|
demo: "https://nextjs-template.vercel.app",
|
|
14128
13862
|
logo: "https://api-frameworks.vercel.sh/framework-logos/next.svg",
|
|
14129
13863
|
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/next-dark.svg",
|
|
14130
|
-
screenshot: "https://
|
|
13864
|
+
screenshot: "https://py8fhxnkzwtsqdo9.public.blob.vercel-storage.com/front/import/nextjs.png",
|
|
14131
13865
|
tagline: "Next.js makes you productive with React instantly \u2014 whether you want to build static or dynamic sites.",
|
|
14132
13866
|
description: "A Next.js app and a Serverless Function API.",
|
|
14133
13867
|
website: "https://nextjs.org",
|
|
@@ -14203,7 +13937,7 @@ var require_frameworks = __commonJS({
|
|
|
14203
13937
|
getOutputDirName: async () => "public",
|
|
14204
13938
|
defaultRoutes: async (dirPrefix) => {
|
|
14205
13939
|
try {
|
|
14206
|
-
const nowRoutesPath = (0,
|
|
13940
|
+
const nowRoutesPath = (0, import_path11.join)(
|
|
14207
13941
|
dirPrefix,
|
|
14208
13942
|
"public",
|
|
14209
13943
|
"__now_routes_g4t5bY.json"
|
|
@@ -14491,10 +14225,10 @@ var require_frameworks = __commonJS({
|
|
|
14491
14225
|
getOutputDirName: async (dirPrefix) => {
|
|
14492
14226
|
const base = "build";
|
|
14493
14227
|
try {
|
|
14494
|
-
const location = (0,
|
|
14228
|
+
const location = (0, import_path11.join)(dirPrefix, base);
|
|
14495
14229
|
const content = await readdir(location, { withFileTypes: true });
|
|
14496
14230
|
if (content.length === 1 && content[0].isDirectory()) {
|
|
14497
|
-
return (0,
|
|
14231
|
+
return (0, import_path11.join)(base, content[0].name);
|
|
14498
14232
|
}
|
|
14499
14233
|
} catch (error) {
|
|
14500
14234
|
console.error(`Error detecting output directory: `, error);
|
|
@@ -14572,10 +14306,10 @@ var require_frameworks = __commonJS({
|
|
|
14572
14306
|
getOutputDirName: async (dirPrefix) => {
|
|
14573
14307
|
const base = "build";
|
|
14574
14308
|
try {
|
|
14575
|
-
const location = (0,
|
|
14309
|
+
const location = (0, import_path11.join)(dirPrefix, base);
|
|
14576
14310
|
const content = await readdir(location, { withFileTypes: true });
|
|
14577
14311
|
if (content.length === 1 && content[0].isDirectory()) {
|
|
14578
|
-
return (0,
|
|
14312
|
+
return (0, import_path11.join)(base, content[0].name);
|
|
14579
14313
|
}
|
|
14580
14314
|
} catch (error) {
|
|
14581
14315
|
console.error(`Error detecting output directory: `, error);
|
|
@@ -14736,7 +14470,7 @@ var require_frameworks = __commonJS({
|
|
|
14736
14470
|
}
|
|
14737
14471
|
},
|
|
14738
14472
|
dependency: "@dojo/cli",
|
|
14739
|
-
getOutputDirName: async () => (0,
|
|
14473
|
+
getOutputDirName: async () => (0, import_path11.join)("output", "dist"),
|
|
14740
14474
|
defaultRoutes: [
|
|
14741
14475
|
{
|
|
14742
14476
|
handle: "filesystem"
|
|
@@ -14971,11 +14705,11 @@ var require_frameworks = __commonJS({
|
|
|
14971
14705
|
getOutputDirName: async (dirPrefix) => {
|
|
14972
14706
|
const base = "dist";
|
|
14973
14707
|
try {
|
|
14974
|
-
const location = (0,
|
|
14708
|
+
const location = (0, import_path11.join)(dirPrefix, base);
|
|
14975
14709
|
const content = await readdir(location, { withFileTypes: true });
|
|
14976
14710
|
if (content.length === 1 && content[0].isDirectory()) {
|
|
14977
|
-
const potentialOutDir = (0,
|
|
14978
|
-
const potentialOutDirWithBrowser = (0,
|
|
14711
|
+
const potentialOutDir = (0, import_path11.join)(base, content[0].name);
|
|
14712
|
+
const potentialOutDirWithBrowser = (0, import_path11.join)(potentialOutDir, "browser");
|
|
14979
14713
|
return (0, import_fs4.existsSync)(potentialOutDirWithBrowser) ? potentialOutDirWithBrowser : potentialOutDir;
|
|
14980
14714
|
}
|
|
14981
14715
|
} catch (error) {
|
|
@@ -15028,10 +14762,10 @@ var require_frameworks = __commonJS({
|
|
|
15028
14762
|
getOutputDirName: async (dirPrefix) => {
|
|
15029
14763
|
const base = "build";
|
|
15030
14764
|
try {
|
|
15031
|
-
const location = (0,
|
|
14765
|
+
const location = (0, import_path11.join)(dirPrefix, base);
|
|
15032
14766
|
const content = await readdir(location);
|
|
15033
14767
|
const paths = content.filter((item) => !item.includes("."));
|
|
15034
|
-
return (0,
|
|
14768
|
+
return (0, import_path11.join)(base, paths[0]);
|
|
15035
14769
|
} catch (error) {
|
|
15036
14770
|
console.error(`Error detecting output directory: `, error);
|
|
15037
14771
|
}
|
|
@@ -15099,7 +14833,7 @@ var require_frameworks = __commonJS({
|
|
|
15099
14833
|
slug: "sveltekit",
|
|
15100
14834
|
demo: "https://sveltekit-template.vercel.app",
|
|
15101
14835
|
logo: "https://api-frameworks.vercel.sh/framework-logos/svelte.svg",
|
|
15102
|
-
screenshot: "https://
|
|
14836
|
+
screenshot: "https://py8fhxnkzwtsqdo9.public.blob.vercel-storage.com/front/import/sveltekit.png",
|
|
15103
14837
|
tagline: "SvelteKit is a framework for building web applications of all sizes.",
|
|
15104
14838
|
description: "A SvelteKit legacy app optimized Edge-first.",
|
|
15105
14839
|
website: "https://kit.svelte.dev",
|
|
@@ -15137,7 +14871,7 @@ var require_frameworks = __commonJS({
|
|
|
15137
14871
|
slug: "sveltekit-1",
|
|
15138
14872
|
demo: "https://sveltekit-1-template.vercel.app",
|
|
15139
14873
|
logo: "https://api-frameworks.vercel.sh/framework-logos/svelte.svg",
|
|
15140
|
-
screenshot: "https://
|
|
14874
|
+
screenshot: "https://py8fhxnkzwtsqdo9.public.blob.vercel-storage.com/front/import/sveltekit.png",
|
|
15141
14875
|
tagline: "SvelteKit is a framework for building web applications of all sizes.",
|
|
15142
14876
|
description: "A SvelteKit app optimized Edge-first.",
|
|
15143
14877
|
website: "https://kit.svelte.dev",
|
|
@@ -15510,7 +15244,7 @@ var require_frameworks = __commonJS({
|
|
|
15510
15244
|
slug: "nuxtjs",
|
|
15511
15245
|
demo: "https://nuxtjs-template.vercel.app",
|
|
15512
15246
|
logo: "https://api-frameworks.vercel.sh/framework-logos/nuxt.svg",
|
|
15513
|
-
screenshot: "https://
|
|
15247
|
+
screenshot: "https://py8fhxnkzwtsqdo9.public.blob.vercel-storage.com/front/import/nuxtjs.png",
|
|
15514
15248
|
tagline: "Nuxt is the open source framework that makes full-stack development with Vue.js intuitive.",
|
|
15515
15249
|
description: "A Nuxt app, bootstrapped with create-nuxt-app.",
|
|
15516
15250
|
website: "https://nuxt.com",
|
|
@@ -15649,7 +15383,7 @@ var require_frameworks = __commonJS({
|
|
|
15649
15383
|
getOutputDirName: async (dirPrefix) => {
|
|
15650
15384
|
const config = await (0, import_read_config_file.readConfigFile)(
|
|
15651
15385
|
["config.json", "config.yaml", "config.toml"].map((fileName) => {
|
|
15652
|
-
return (0,
|
|
15386
|
+
return (0, import_path11.join)(dirPrefix, fileName);
|
|
15653
15387
|
})
|
|
15654
15388
|
);
|
|
15655
15389
|
return config && config.publishDir || "public";
|
|
@@ -15690,7 +15424,7 @@ var require_frameworks = __commonJS({
|
|
|
15690
15424
|
},
|
|
15691
15425
|
getOutputDirName: async (dirPrefix) => {
|
|
15692
15426
|
const config = await (0, import_read_config_file.readConfigFile)(
|
|
15693
|
-
(0,
|
|
15427
|
+
(0, import_path11.join)(dirPrefix, "_config.yml")
|
|
15694
15428
|
);
|
|
15695
15429
|
return config && config.destination || "_site";
|
|
15696
15430
|
},
|
|
@@ -18496,7 +18230,7 @@ var require_minimatch = __commonJS({
|
|
|
18496
18230
|
"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module) {
|
|
18497
18231
|
module.exports = minimatch;
|
|
18498
18232
|
minimatch.Minimatch = Minimatch;
|
|
18499
|
-
var
|
|
18233
|
+
var path = function() {
|
|
18500
18234
|
try {
|
|
18501
18235
|
return __require("path");
|
|
18502
18236
|
} catch (e) {
|
|
@@ -18504,7 +18238,7 @@ var require_minimatch = __commonJS({
|
|
|
18504
18238
|
}() || {
|
|
18505
18239
|
sep: "/"
|
|
18506
18240
|
};
|
|
18507
|
-
minimatch.sep =
|
|
18241
|
+
minimatch.sep = path.sep;
|
|
18508
18242
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
18509
18243
|
var expand = require_brace_expansion();
|
|
18510
18244
|
var plTypes = {
|
|
@@ -18595,8 +18329,8 @@ var require_minimatch = __commonJS({
|
|
|
18595
18329
|
if (!options)
|
|
18596
18330
|
options = {};
|
|
18597
18331
|
pattern = pattern.trim();
|
|
18598
|
-
if (!options.allowWindowsEscape &&
|
|
18599
|
-
pattern = pattern.split(
|
|
18332
|
+
if (!options.allowWindowsEscape && path.sep !== "/") {
|
|
18333
|
+
pattern = pattern.split(path.sep).join("/");
|
|
18600
18334
|
}
|
|
18601
18335
|
this.options = options;
|
|
18602
18336
|
this.set = [];
|
|
@@ -18973,8 +18707,8 @@ var require_minimatch = __commonJS({
|
|
|
18973
18707
|
if (f === "/" && partial)
|
|
18974
18708
|
return true;
|
|
18975
18709
|
var options = this.options;
|
|
18976
|
-
if (
|
|
18977
|
-
f = f.split(
|
|
18710
|
+
if (path.sep !== "/") {
|
|
18711
|
+
f = f.split(path.sep).join("/");
|
|
18978
18712
|
}
|
|
18979
18713
|
f = f.split(slashSplit);
|
|
18980
18714
|
this.debug(this.pattern, "split", f);
|
|
@@ -20368,7 +20102,7 @@ var require_dist3 = __commonJS({
|
|
|
20368
20102
|
var result = [];
|
|
20369
20103
|
var key = 0;
|
|
20370
20104
|
var i = 0;
|
|
20371
|
-
var
|
|
20105
|
+
var path = "";
|
|
20372
20106
|
var tryConsume = function(type) {
|
|
20373
20107
|
if (i < tokens.length && tokens[i].type === type)
|
|
20374
20108
|
return tokens[i++].value;
|
|
@@ -20395,12 +20129,12 @@ var require_dist3 = __commonJS({
|
|
|
20395
20129
|
if (name || pattern) {
|
|
20396
20130
|
var prefix = char || "";
|
|
20397
20131
|
if (prefixes.indexOf(prefix) === -1) {
|
|
20398
|
-
|
|
20132
|
+
path += prefix;
|
|
20399
20133
|
prefix = "";
|
|
20400
20134
|
}
|
|
20401
|
-
if (
|
|
20402
|
-
result.push(
|
|
20403
|
-
|
|
20135
|
+
if (path) {
|
|
20136
|
+
result.push(path);
|
|
20137
|
+
path = "";
|
|
20404
20138
|
}
|
|
20405
20139
|
result.push({
|
|
20406
20140
|
name: name || key++,
|
|
@@ -20413,12 +20147,12 @@ var require_dist3 = __commonJS({
|
|
|
20413
20147
|
}
|
|
20414
20148
|
var value = char || tryConsume("ESCAPED_CHAR");
|
|
20415
20149
|
if (value) {
|
|
20416
|
-
|
|
20150
|
+
path += value;
|
|
20417
20151
|
continue;
|
|
20418
20152
|
}
|
|
20419
|
-
if (
|
|
20420
|
-
result.push(
|
|
20421
|
-
|
|
20153
|
+
if (path) {
|
|
20154
|
+
result.push(path);
|
|
20155
|
+
path = "";
|
|
20422
20156
|
}
|
|
20423
20157
|
var open = tryConsume("OPEN");
|
|
20424
20158
|
if (open) {
|
|
@@ -20459,11 +20193,11 @@ var require_dist3 = __commonJS({
|
|
|
20459
20193
|
}
|
|
20460
20194
|
});
|
|
20461
20195
|
return function(data) {
|
|
20462
|
-
var
|
|
20196
|
+
var path = "";
|
|
20463
20197
|
for (var i = 0; i < tokens.length; i++) {
|
|
20464
20198
|
var token = tokens[i];
|
|
20465
20199
|
if (typeof token === "string") {
|
|
20466
|
-
|
|
20200
|
+
path += token;
|
|
20467
20201
|
continue;
|
|
20468
20202
|
}
|
|
20469
20203
|
var value = data ? data[token.name] : void 0;
|
|
@@ -20483,7 +20217,7 @@ var require_dist3 = __commonJS({
|
|
|
20483
20217
|
if (validate2 && !matches[i].test(segment)) {
|
|
20484
20218
|
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
|
|
20485
20219
|
}
|
|
20486
|
-
|
|
20220
|
+
path += token.prefix + segment + token.suffix;
|
|
20487
20221
|
}
|
|
20488
20222
|
continue;
|
|
20489
20223
|
}
|
|
@@ -20492,7 +20226,7 @@ var require_dist3 = __commonJS({
|
|
|
20492
20226
|
if (validate2 && !matches[i].test(segment)) {
|
|
20493
20227
|
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
|
|
20494
20228
|
}
|
|
20495
|
-
|
|
20229
|
+
path += token.prefix + segment + token.suffix;
|
|
20496
20230
|
continue;
|
|
20497
20231
|
}
|
|
20498
20232
|
if (optional)
|
|
@@ -20500,7 +20234,7 @@ var require_dist3 = __commonJS({
|
|
|
20500
20234
|
var typeOfMessage = repeat2 ? "an array" : "a string";
|
|
20501
20235
|
throw new TypeError('Expected "' + token.name + '" to be ' + typeOfMessage);
|
|
20502
20236
|
}
|
|
20503
|
-
return
|
|
20237
|
+
return path;
|
|
20504
20238
|
};
|
|
20505
20239
|
}
|
|
20506
20240
|
exports.tokensToFunction = tokensToFunction;
|
|
@@ -20521,7 +20255,7 @@ var require_dist3 = __commonJS({
|
|
|
20521
20255
|
var m = re.exec(pathname);
|
|
20522
20256
|
if (!m)
|
|
20523
20257
|
return false;
|
|
20524
|
-
var
|
|
20258
|
+
var path = m[0], index = m.index;
|
|
20525
20259
|
var params = /* @__PURE__ */ Object.create(null);
|
|
20526
20260
|
var _loop_1 = function(i2) {
|
|
20527
20261
|
if (m[i2] === void 0)
|
|
@@ -20538,7 +20272,7 @@ var require_dist3 = __commonJS({
|
|
|
20538
20272
|
for (var i = 1; i < m.length; i++) {
|
|
20539
20273
|
_loop_1(i);
|
|
20540
20274
|
}
|
|
20541
|
-
return { path
|
|
20275
|
+
return { path, index, params };
|
|
20542
20276
|
};
|
|
20543
20277
|
}
|
|
20544
20278
|
exports.regexpToFunction = regexpToFunction;
|
|
@@ -20548,10 +20282,10 @@ var require_dist3 = __commonJS({
|
|
|
20548
20282
|
function flags(options) {
|
|
20549
20283
|
return options && options.sensitive ? "" : "i";
|
|
20550
20284
|
}
|
|
20551
|
-
function regexpToRegexp(
|
|
20285
|
+
function regexpToRegexp(path, keys) {
|
|
20552
20286
|
if (!keys)
|
|
20553
|
-
return
|
|
20554
|
-
var groups =
|
|
20287
|
+
return path;
|
|
20288
|
+
var groups = path.source.match(/\((?!\?)/g);
|
|
20555
20289
|
if (groups) {
|
|
20556
20290
|
for (var i = 0; i < groups.length; i++) {
|
|
20557
20291
|
keys.push({
|
|
@@ -20563,16 +20297,16 @@ var require_dist3 = __commonJS({
|
|
|
20563
20297
|
});
|
|
20564
20298
|
}
|
|
20565
20299
|
}
|
|
20566
|
-
return
|
|
20300
|
+
return path;
|
|
20567
20301
|
}
|
|
20568
20302
|
function arrayToRegexp(paths, keys, options) {
|
|
20569
|
-
var parts = paths.map(function(
|
|
20570
|
-
return pathToRegexp(
|
|
20303
|
+
var parts = paths.map(function(path) {
|
|
20304
|
+
return pathToRegexp(path, keys, options).source;
|
|
20571
20305
|
});
|
|
20572
20306
|
return new RegExp("(?:" + parts.join("|") + ")", flags(options));
|
|
20573
20307
|
}
|
|
20574
|
-
function stringToRegexp(
|
|
20575
|
-
return tokensToRegexp(parse3(
|
|
20308
|
+
function stringToRegexp(path, keys, options) {
|
|
20309
|
+
return tokensToRegexp(parse3(path, options), keys, options);
|
|
20576
20310
|
}
|
|
20577
20311
|
function tokensToRegexp(tokens, keys, options) {
|
|
20578
20312
|
if (options === void 0) {
|
|
@@ -20629,12 +20363,12 @@ var require_dist3 = __commonJS({
|
|
|
20629
20363
|
return new RegExp(route, flags(options));
|
|
20630
20364
|
}
|
|
20631
20365
|
exports.tokensToRegexp = tokensToRegexp;
|
|
20632
|
-
function pathToRegexp(
|
|
20633
|
-
if (
|
|
20634
|
-
return regexpToRegexp(
|
|
20635
|
-
if (Array.isArray(
|
|
20636
|
-
return arrayToRegexp(
|
|
20637
|
-
return stringToRegexp(
|
|
20366
|
+
function pathToRegexp(path, keys, options) {
|
|
20367
|
+
if (path instanceof RegExp)
|
|
20368
|
+
return regexpToRegexp(path, keys);
|
|
20369
|
+
if (Array.isArray(path))
|
|
20370
|
+
return arrayToRegexp(path, keys, options);
|
|
20371
|
+
return stringToRegexp(path, keys, options);
|
|
20638
20372
|
}
|
|
20639
20373
|
exports.pathToRegexp = pathToRegexp;
|
|
20640
20374
|
}
|
|
@@ -20738,7 +20472,7 @@ var require_dist4 = __commonJS({
|
|
|
20738
20472
|
var result = [];
|
|
20739
20473
|
var key = 0;
|
|
20740
20474
|
var i = 0;
|
|
20741
|
-
var
|
|
20475
|
+
var path = "";
|
|
20742
20476
|
var tryConsume = function(type) {
|
|
20743
20477
|
if (i < tokens.length && tokens[i].type === type)
|
|
20744
20478
|
return tokens[i++].value;
|
|
@@ -20783,12 +20517,12 @@ var require_dist4 = __commonJS({
|
|
|
20783
20517
|
if (name || pattern) {
|
|
20784
20518
|
var prefix = char || "";
|
|
20785
20519
|
if (prefixes.indexOf(prefix) === -1) {
|
|
20786
|
-
|
|
20520
|
+
path += prefix;
|
|
20787
20521
|
prefix = "";
|
|
20788
20522
|
}
|
|
20789
|
-
if (
|
|
20790
|
-
result.push(
|
|
20791
|
-
|
|
20523
|
+
if (path) {
|
|
20524
|
+
result.push(path);
|
|
20525
|
+
path = "";
|
|
20792
20526
|
}
|
|
20793
20527
|
result.push({
|
|
20794
20528
|
name: name || key++,
|
|
@@ -20801,12 +20535,12 @@ var require_dist4 = __commonJS({
|
|
|
20801
20535
|
}
|
|
20802
20536
|
var value = char || tryConsume("ESCAPED_CHAR");
|
|
20803
20537
|
if (value) {
|
|
20804
|
-
|
|
20538
|
+
path += value;
|
|
20805
20539
|
continue;
|
|
20806
20540
|
}
|
|
20807
|
-
if (
|
|
20808
|
-
result.push(
|
|
20809
|
-
|
|
20541
|
+
if (path) {
|
|
20542
|
+
result.push(path);
|
|
20543
|
+
path = "";
|
|
20810
20544
|
}
|
|
20811
20545
|
var open = tryConsume("OPEN");
|
|
20812
20546
|
if (open) {
|
|
@@ -20847,11 +20581,11 @@ var require_dist4 = __commonJS({
|
|
|
20847
20581
|
}
|
|
20848
20582
|
});
|
|
20849
20583
|
return function(data) {
|
|
20850
|
-
var
|
|
20584
|
+
var path = "";
|
|
20851
20585
|
for (var i = 0; i < tokens.length; i++) {
|
|
20852
20586
|
var token = tokens[i];
|
|
20853
20587
|
if (typeof token === "string") {
|
|
20854
|
-
|
|
20588
|
+
path += token;
|
|
20855
20589
|
continue;
|
|
20856
20590
|
}
|
|
20857
20591
|
var value = data ? data[token.name] : void 0;
|
|
@@ -20871,7 +20605,7 @@ var require_dist4 = __commonJS({
|
|
|
20871
20605
|
if (validate2 && !matches[i].test(segment)) {
|
|
20872
20606
|
throw new TypeError('Expected all "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
|
|
20873
20607
|
}
|
|
20874
|
-
|
|
20608
|
+
path += token.prefix + segment + token.suffix;
|
|
20875
20609
|
}
|
|
20876
20610
|
continue;
|
|
20877
20611
|
}
|
|
@@ -20880,7 +20614,7 @@ var require_dist4 = __commonJS({
|
|
|
20880
20614
|
if (validate2 && !matches[i].test(segment)) {
|
|
20881
20615
|
throw new TypeError('Expected "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
|
|
20882
20616
|
}
|
|
20883
|
-
|
|
20617
|
+
path += token.prefix + segment + token.suffix;
|
|
20884
20618
|
continue;
|
|
20885
20619
|
}
|
|
20886
20620
|
if (optional)
|
|
@@ -20888,7 +20622,7 @@ var require_dist4 = __commonJS({
|
|
|
20888
20622
|
var typeOfMessage = repeat2 ? "an array" : "a string";
|
|
20889
20623
|
throw new TypeError('Expected "'.concat(token.name, '" to be ').concat(typeOfMessage));
|
|
20890
20624
|
}
|
|
20891
|
-
return
|
|
20625
|
+
return path;
|
|
20892
20626
|
};
|
|
20893
20627
|
}
|
|
20894
20628
|
exports.tokensToFunction = tokensToFunction;
|
|
@@ -20909,7 +20643,7 @@ var require_dist4 = __commonJS({
|
|
|
20909
20643
|
var m = re.exec(pathname);
|
|
20910
20644
|
if (!m)
|
|
20911
20645
|
return false;
|
|
20912
|
-
var
|
|
20646
|
+
var path = m[0], index = m.index;
|
|
20913
20647
|
var params = /* @__PURE__ */ Object.create(null);
|
|
20914
20648
|
var _loop_1 = function(i2) {
|
|
20915
20649
|
if (m[i2] === void 0)
|
|
@@ -20926,7 +20660,7 @@ var require_dist4 = __commonJS({
|
|
|
20926
20660
|
for (var i = 1; i < m.length; i++) {
|
|
20927
20661
|
_loop_1(i);
|
|
20928
20662
|
}
|
|
20929
|
-
return { path
|
|
20663
|
+
return { path, index, params };
|
|
20930
20664
|
};
|
|
20931
20665
|
}
|
|
20932
20666
|
exports.regexpToFunction = regexpToFunction;
|
|
@@ -20936,12 +20670,12 @@ var require_dist4 = __commonJS({
|
|
|
20936
20670
|
function flags(options) {
|
|
20937
20671
|
return options && options.sensitive ? "" : "i";
|
|
20938
20672
|
}
|
|
20939
|
-
function regexpToRegexp(
|
|
20673
|
+
function regexpToRegexp(path, keys) {
|
|
20940
20674
|
if (!keys)
|
|
20941
|
-
return
|
|
20675
|
+
return path;
|
|
20942
20676
|
var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
20943
20677
|
var index = 0;
|
|
20944
|
-
var execResult = groupsRegex.exec(
|
|
20678
|
+
var execResult = groupsRegex.exec(path.source);
|
|
20945
20679
|
while (execResult) {
|
|
20946
20680
|
keys.push({
|
|
20947
20681
|
// Use parenthesized substring match if available, index otherwise
|
|
@@ -20951,18 +20685,18 @@ var require_dist4 = __commonJS({
|
|
|
20951
20685
|
modifier: "",
|
|
20952
20686
|
pattern: ""
|
|
20953
20687
|
});
|
|
20954
|
-
execResult = groupsRegex.exec(
|
|
20688
|
+
execResult = groupsRegex.exec(path.source);
|
|
20955
20689
|
}
|
|
20956
|
-
return
|
|
20690
|
+
return path;
|
|
20957
20691
|
}
|
|
20958
20692
|
function arrayToRegexp(paths, keys, options) {
|
|
20959
|
-
var parts = paths.map(function(
|
|
20960
|
-
return pathToRegexp(
|
|
20693
|
+
var parts = paths.map(function(path) {
|
|
20694
|
+
return pathToRegexp(path, keys, options).source;
|
|
20961
20695
|
});
|
|
20962
20696
|
return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
|
|
20963
20697
|
}
|
|
20964
|
-
function stringToRegexp(
|
|
20965
|
-
return tokensToRegexp(parse3(
|
|
20698
|
+
function stringToRegexp(path, keys, options) {
|
|
20699
|
+
return tokensToRegexp(parse3(path, options), keys, options);
|
|
20966
20700
|
}
|
|
20967
20701
|
function tokensToRegexp(tokens, keys, options) {
|
|
20968
20702
|
if (options === void 0) {
|
|
@@ -21019,12 +20753,12 @@ var require_dist4 = __commonJS({
|
|
|
21019
20753
|
return new RegExp(route, flags(options));
|
|
21020
20754
|
}
|
|
21021
20755
|
exports.tokensToRegexp = tokensToRegexp;
|
|
21022
|
-
function pathToRegexp(
|
|
21023
|
-
if (
|
|
21024
|
-
return regexpToRegexp(
|
|
21025
|
-
if (Array.isArray(
|
|
21026
|
-
return arrayToRegexp(
|
|
21027
|
-
return stringToRegexp(
|
|
20756
|
+
function pathToRegexp(path, keys, options) {
|
|
20757
|
+
if (path instanceof RegExp)
|
|
20758
|
+
return regexpToRegexp(path, keys);
|
|
20759
|
+
if (Array.isArray(path))
|
|
20760
|
+
return arrayToRegexp(path, keys, options);
|
|
20761
|
+
return stringToRegexp(path, keys, options);
|
|
21028
20762
|
}
|
|
21029
20763
|
exports.pathToRegexp = pathToRegexp;
|
|
21030
20764
|
}
|
|
@@ -21078,16 +20812,16 @@ var require_superstatic = __commonJS({
|
|
|
21078
20812
|
const rightSerialized = typeof right === "undefined" ? "undefined" : right.toString();
|
|
21079
20813
|
return leftSerialized === rightSerialized;
|
|
21080
20814
|
}
|
|
21081
|
-
function pathToRegexp(callerId,
|
|
20815
|
+
function pathToRegexp(callerId, path, keys, options) {
|
|
21082
20816
|
const newKeys = cloneKeys(keys);
|
|
21083
|
-
const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(
|
|
20817
|
+
const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(path, keys, options);
|
|
21084
20818
|
try {
|
|
21085
20819
|
const currentKeys = keys;
|
|
21086
|
-
const newRegExp = (0, import_path_to_regexp_updated.pathToRegexp)(
|
|
20820
|
+
const newRegExp = (0, import_path_to_regexp_updated.pathToRegexp)(path, newKeys, options);
|
|
21087
20821
|
const isDiffRegExp = currentRegExp.toString() !== newRegExp.toString();
|
|
21088
20822
|
if (process.env.FORCE_PATH_TO_REGEXP_LOG || isDiffRegExp) {
|
|
21089
20823
|
const message = JSON.stringify({
|
|
21090
|
-
path
|
|
20824
|
+
path,
|
|
21091
20825
|
currentRegExp: currentRegExp.toString(),
|
|
21092
20826
|
newRegExp: newRegExp.toString()
|
|
21093
20827
|
});
|
|
@@ -21105,7 +20839,7 @@ var require_superstatic = __commonJS({
|
|
|
21105
20839
|
} catch (err) {
|
|
21106
20840
|
const error = err;
|
|
21107
20841
|
const message = JSON.stringify({
|
|
21108
|
-
path
|
|
20842
|
+
path,
|
|
21109
20843
|
error: error.message
|
|
21110
20844
|
});
|
|
21111
20845
|
console.error(`[vc] PATH TO REGEXP ERROR @ #${callerId}: ${message}`);
|
|
@@ -21588,8 +21322,8 @@ var require_merge2 = __commonJS({
|
|
|
21588
21322
|
const builderHandleMap = /* @__PURE__ */ new Map();
|
|
21589
21323
|
const builderRoutes = getBuilderRoutesMapping(builds);
|
|
21590
21324
|
const sortedPaths = Object.keys(builderRoutes).sort();
|
|
21591
|
-
sortedPaths.forEach((
|
|
21592
|
-
const br = builderRoutes[
|
|
21325
|
+
sortedPaths.forEach((path) => {
|
|
21326
|
+
const br = builderRoutes[path];
|
|
21593
21327
|
const sortedBuilders = Object.keys(br).sort();
|
|
21594
21328
|
sortedBuilders.forEach((use) => {
|
|
21595
21329
|
let builderPrevHandle = null;
|
|
@@ -23099,7 +22833,7 @@ var require_detect_framework = __commonJS({
|
|
|
23099
22833
|
return;
|
|
23100
22834
|
}
|
|
23101
22835
|
const check2 = async ({
|
|
23102
|
-
path
|
|
22836
|
+
path,
|
|
23103
22837
|
matchContent,
|
|
23104
22838
|
matchPackage
|
|
23105
22839
|
}) => {
|
|
@@ -23108,31 +22842,31 @@ var require_detect_framework = __commonJS({
|
|
|
23108
22842
|
`Cannot specify "matchPackage" and "matchContent" in the same detector for "${framework.slug}"`
|
|
23109
22843
|
);
|
|
23110
22844
|
}
|
|
23111
|
-
if (matchPackage &&
|
|
22845
|
+
if (matchPackage && path) {
|
|
23112
22846
|
throw new Error(
|
|
23113
22847
|
`Cannot specify "matchPackage" and "path" in the same detector for "${framework.slug}" because "path" is assumed to be "package.json".`
|
|
23114
22848
|
);
|
|
23115
22849
|
}
|
|
23116
|
-
if (!
|
|
22850
|
+
if (!path && !matchPackage) {
|
|
23117
22851
|
throw new Error(
|
|
23118
22852
|
`Must specify either "path" or "matchPackage" in detector for "${framework.slug}".`
|
|
23119
22853
|
);
|
|
23120
22854
|
}
|
|
23121
|
-
if (!
|
|
23122
|
-
|
|
22855
|
+
if (!path) {
|
|
22856
|
+
path = "package.json";
|
|
23123
22857
|
}
|
|
23124
22858
|
if (matchPackage) {
|
|
23125
22859
|
matchContent = `"(dev)?(d|D)ependencies":\\s*{[^}]*"${matchPackage}":\\s*"(.+?)"[^}]*}`;
|
|
23126
22860
|
}
|
|
23127
|
-
if (await fs5.hasPath(
|
|
22861
|
+
if (await fs5.hasPath(path) === false) {
|
|
23128
22862
|
return;
|
|
23129
22863
|
}
|
|
23130
22864
|
if (matchContent) {
|
|
23131
|
-
if (await fs5.isFile(
|
|
22865
|
+
if (await fs5.isFile(path) === false) {
|
|
23132
22866
|
return;
|
|
23133
22867
|
}
|
|
23134
22868
|
const regex = new RegExp(matchContent, "m");
|
|
23135
|
-
const content = await fs5.readFile(
|
|
22869
|
+
const content = await fs5.readFile(path);
|
|
23136
22870
|
const match = content.toString().match(regex);
|
|
23137
22871
|
if (!match) {
|
|
23138
22872
|
return;
|
|
@@ -23319,7 +23053,7 @@ var require_resolve2 = __commonJS({
|
|
|
23319
23053
|
validateServiceEntrypoint: () => validateServiceEntrypoint
|
|
23320
23054
|
});
|
|
23321
23055
|
module.exports = __toCommonJS2(resolve_exports);
|
|
23322
|
-
var
|
|
23056
|
+
var import_path11 = __require("path");
|
|
23323
23057
|
var import_build_utils5 = __require("@vercel/build-utils");
|
|
23324
23058
|
var import_types = require_types3();
|
|
23325
23059
|
var import_utils4 = require_utils3();
|
|
@@ -23345,7 +23079,7 @@ var require_resolve2 = __commonJS({
|
|
|
23345
23079
|
if (!root) {
|
|
23346
23080
|
return { fs: fs5 };
|
|
23347
23081
|
}
|
|
23348
|
-
const normalizedRoot =
|
|
23082
|
+
const normalizedRoot = import_path11.posix.normalize(root);
|
|
23349
23083
|
if (!await fs5.hasPath(normalizedRoot)) {
|
|
23350
23084
|
return {
|
|
23351
23085
|
fs: fs5,
|
|
@@ -23369,7 +23103,7 @@ var require_resolve2 = __commonJS({
|
|
|
23369
23103
|
return { fs: fs5.chdir(normalizedRoot) };
|
|
23370
23104
|
}
|
|
23371
23105
|
function normalizeServiceEntrypoint(entrypoint) {
|
|
23372
|
-
const normalized =
|
|
23106
|
+
const normalized = import_path11.posix.normalize(entrypoint);
|
|
23373
23107
|
return normalized === "" ? "." : normalized;
|
|
23374
23108
|
}
|
|
23375
23109
|
async function resolveEntrypointPath({
|
|
@@ -23395,7 +23129,7 @@ var require_resolve2 = __commonJS({
|
|
|
23395
23129
|
};
|
|
23396
23130
|
}
|
|
23397
23131
|
function toWorkspaceRelativeEntrypoint(entrypoint, workspace) {
|
|
23398
|
-
const normalizedEntrypoint =
|
|
23132
|
+
const normalizedEntrypoint = import_path11.posix.normalize(entrypoint);
|
|
23399
23133
|
if (workspace === ".") {
|
|
23400
23134
|
return normalizedEntrypoint;
|
|
23401
23135
|
}
|
|
@@ -23403,7 +23137,7 @@ var require_resolve2 = __commonJS({
|
|
|
23403
23137
|
if (normalizedEntrypoint.startsWith(workspacePrefix)) {
|
|
23404
23138
|
return normalizedEntrypoint.slice(workspacePrefix.length);
|
|
23405
23139
|
}
|
|
23406
|
-
const relativeEntrypoint =
|
|
23140
|
+
const relativeEntrypoint = import_path11.posix.relative(
|
|
23407
23141
|
workspace,
|
|
23408
23142
|
normalizedEntrypoint
|
|
23409
23143
|
);
|
|
@@ -23424,14 +23158,14 @@ var require_resolve2 = __commonJS({
|
|
|
23424
23158
|
if (!manifests || manifests.length === 0) {
|
|
23425
23159
|
return void 0;
|
|
23426
23160
|
}
|
|
23427
|
-
let dir =
|
|
23161
|
+
let dir = import_path11.posix.dirname(import_path11.posix.normalize(entrypoint)) || ".";
|
|
23428
23162
|
if (dir === "") {
|
|
23429
23163
|
dir = ".";
|
|
23430
23164
|
}
|
|
23431
23165
|
let reachedRoot = false;
|
|
23432
23166
|
while (!reachedRoot) {
|
|
23433
23167
|
for (const manifest of manifests) {
|
|
23434
|
-
const manifestPath = dir === "." ? manifest :
|
|
23168
|
+
const manifestPath = dir === "." ? manifest : import_path11.posix.join(dir, manifest);
|
|
23435
23169
|
if (await (0, import_utils4.hasFile)(fs5, manifestPath)) {
|
|
23436
23170
|
return dir;
|
|
23437
23171
|
}
|
|
@@ -23439,7 +23173,7 @@ var require_resolve2 = __commonJS({
|
|
|
23439
23173
|
if (dir === "." || dir === "/") {
|
|
23440
23174
|
reachedRoot = true;
|
|
23441
23175
|
} else {
|
|
23442
|
-
const parent =
|
|
23176
|
+
const parent = import_path11.posix.dirname(dir);
|
|
23443
23177
|
if (!parent || parent === dir) {
|
|
23444
23178
|
reachedRoot = true;
|
|
23445
23179
|
} else {
|
|
@@ -23577,7 +23311,10 @@ var require_resolve2 = __commonJS({
|
|
|
23577
23311
|
}
|
|
23578
23312
|
const serviceType = config.type || "web";
|
|
23579
23313
|
const isJobService = serviceType === "job" || serviceType === "cron";
|
|
23580
|
-
const isScheduleJobService =
|
|
23314
|
+
const isScheduleJobService = (0, import_build_utils5.isScheduleTriggeredService)({
|
|
23315
|
+
type: serviceType,
|
|
23316
|
+
trigger: config.trigger
|
|
23317
|
+
});
|
|
23581
23318
|
const isQueueJobService = serviceType === "job" && config.trigger === "queue";
|
|
23582
23319
|
const isWorkflowService = serviceType === "job" && config.trigger === "workflow";
|
|
23583
23320
|
const isNonWebService = serviceType === "worker" || isJobService;
|
|
@@ -23661,7 +23398,7 @@ var require_resolve2 = __commonJS({
|
|
|
23661
23398
|
};
|
|
23662
23399
|
}
|
|
23663
23400
|
if (config.root !== void 0) {
|
|
23664
|
-
const normalizedRoot =
|
|
23401
|
+
const normalizedRoot = import_path11.posix.normalize(config.root);
|
|
23665
23402
|
if (normalizedRoot.startsWith("/")) {
|
|
23666
23403
|
return {
|
|
23667
23404
|
code: "INVALID_ROOT",
|
|
@@ -23809,9 +23546,9 @@ var require_resolve2 = __commonJS({
|
|
|
23809
23546
|
}
|
|
23810
23547
|
}
|
|
23811
23548
|
if (root) {
|
|
23812
|
-
const normalizedRoot =
|
|
23549
|
+
const normalizedRoot = import_path11.posix.normalize(root);
|
|
23813
23550
|
if (normalizedRoot !== ".") {
|
|
23814
|
-
workspace = workspace === "." ? normalizedRoot :
|
|
23551
|
+
workspace = workspace === "." ? normalizedRoot : import_path11.posix.join(normalizedRoot, workspace);
|
|
23815
23552
|
}
|
|
23816
23553
|
}
|
|
23817
23554
|
const topics = type === "worker" ? (0, import_build_utils5.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : void 0;
|
|
@@ -23822,7 +23559,8 @@ var require_resolve2 = __commonJS({
|
|
|
23822
23559
|
builderUse = config.builder;
|
|
23823
23560
|
builderSrc = resolvedEntrypointFile || frameworkDefinition?.useRuntime?.src || "package.json";
|
|
23824
23561
|
} else if (config.framework) {
|
|
23825
|
-
|
|
23562
|
+
const isCronService = (0, import_build_utils5.isScheduleTriggeredService)({ type, trigger });
|
|
23563
|
+
if ((0, import_build_utils22.isNodeBackendFramework)(config.framework) && (type === "web" || isCronService)) {
|
|
23826
23564
|
builderUse = "@vercel/backends";
|
|
23827
23565
|
} else {
|
|
23828
23566
|
builderUse = frameworkDefinition?.useRuntime?.use || "@vercel/static-build";
|
|
@@ -23835,7 +23573,8 @@ var require_resolve2 = __commonJS({
|
|
|
23835
23573
|
);
|
|
23836
23574
|
}
|
|
23837
23575
|
if (inferredRuntime === "node") {
|
|
23838
|
-
|
|
23576
|
+
const isCronService = (0, import_build_utils5.isScheduleTriggeredService)({ type, trigger });
|
|
23577
|
+
builderUse = type === "web" || isCronService ? "@vercel/backends" : "@vercel/node";
|
|
23839
23578
|
} else {
|
|
23840
23579
|
builderUse = (0, import_utils4.getBuilderForRuntime)(inferredRuntime);
|
|
23841
23580
|
}
|
|
@@ -23847,7 +23586,7 @@ var require_resolve2 = __commonJS({
|
|
|
23847
23586
|
const resolvedRoutePrefixSource = type === "web" && typeof routePrefix === "string" ? routePrefixWasConfigured ? routePrefixSource : "generated" : void 0;
|
|
23848
23587
|
const isRoot = workspace === ".";
|
|
23849
23588
|
if (!isRoot) {
|
|
23850
|
-
builderSrc =
|
|
23589
|
+
builderSrc = import_path11.posix.join(workspace, builderSrc);
|
|
23851
23590
|
}
|
|
23852
23591
|
const builderConfig = { zeroConfig: true };
|
|
23853
23592
|
if (builderUse === "@vercel/backends") {
|
|
@@ -23985,7 +23724,7 @@ var require_resolve2 = __commonJS({
|
|
|
23985
23724
|
entrypoint: resolvedEntrypoint.normalized,
|
|
23986
23725
|
runtime: inferredRuntime
|
|
23987
23726
|
});
|
|
23988
|
-
const workspace = inferredWorkspace ??
|
|
23727
|
+
const workspace = inferredWorkspace ?? import_path11.posix.dirname(resolvedEntrypoint.normalized);
|
|
23989
23728
|
const detection = await detectFrameworkFromWorkspace({
|
|
23990
23729
|
fs: serviceFs,
|
|
23991
23730
|
workspace,
|
|
@@ -24309,7 +24048,7 @@ var require_detect_railway = __commonJS({
|
|
|
24309
24048
|
detectRailwayServices: () => detectRailwayServices
|
|
24310
24049
|
});
|
|
24311
24050
|
module.exports = __toCommonJS2(detect_railway_exports);
|
|
24312
|
-
var
|
|
24051
|
+
var import_path11 = __require("path");
|
|
24313
24052
|
var import_smol_toml3 = __toESM2(__require("smol-toml"));
|
|
24314
24053
|
var import_frameworks2 = require_frameworks();
|
|
24315
24054
|
var import_detect_framework = require_detect_framework();
|
|
@@ -24451,7 +24190,7 @@ var require_detect_railway = __commonJS({
|
|
|
24451
24190
|
if (entry.type !== "dir" || SKIP_DIRS.has(entry.name)) {
|
|
24452
24191
|
continue;
|
|
24453
24192
|
}
|
|
24454
|
-
const childPath = dirPath === "." ? entry.name :
|
|
24193
|
+
const childPath = dirPath === "." ? entry.name : import_path11.posix.join(dirPath, entry.name);
|
|
24455
24194
|
const child = await findRailwayConfigs(fs5, childPath, depth + 1);
|
|
24456
24195
|
configs.push(...child.configs);
|
|
24457
24196
|
warnings.push(...child.warnings);
|
|
@@ -24461,7 +24200,7 @@ var require_detect_railway = __commonJS({
|
|
|
24461
24200
|
async function readRailwayConfigRaw(fs5, dirPath) {
|
|
24462
24201
|
const warnings = [];
|
|
24463
24202
|
for (const filename of [RAILWAY_JSON, RAILWAY_TOML]) {
|
|
24464
|
-
const filePath = dirPath === "." ? filename :
|
|
24203
|
+
const filePath = dirPath === "." ? filename : import_path11.posix.join(dirPath, filename);
|
|
24465
24204
|
try {
|
|
24466
24205
|
const exists = await fs5.isFile(filePath);
|
|
24467
24206
|
if (!exists)
|
|
@@ -24881,14 +24620,14 @@ var require_filesystem = __commonJS({
|
|
|
24881
24620
|
DetectorFilesystem: () => DetectorFilesystem2
|
|
24882
24621
|
});
|
|
24883
24622
|
module.exports = __toCommonJS2(filesystem_exports);
|
|
24884
|
-
var
|
|
24623
|
+
var import_path11 = __require("path");
|
|
24885
24624
|
var DetectorFilesystem2 = class {
|
|
24886
24625
|
constructor() {
|
|
24887
|
-
this.hasPath = async (
|
|
24888
|
-
let p = this.pathCache.get(
|
|
24626
|
+
this.hasPath = async (path) => {
|
|
24627
|
+
let p = this.pathCache.get(path);
|
|
24889
24628
|
if (!p) {
|
|
24890
|
-
p = this._hasPath(
|
|
24891
|
-
this.pathCache.set(
|
|
24629
|
+
p = this._hasPath(path);
|
|
24630
|
+
this.pathCache.set(path, p);
|
|
24892
24631
|
}
|
|
24893
24632
|
return p;
|
|
24894
24633
|
};
|
|
@@ -24925,13 +24664,13 @@ var require_filesystem = __commonJS({
|
|
|
24925
24664
|
}
|
|
24926
24665
|
if (options?.potentialFiles) {
|
|
24927
24666
|
const filesInReaddirDir = options.potentialFiles.filter(
|
|
24928
|
-
(
|
|
24667
|
+
(path) => (0, import_path11.basename)(path) === path
|
|
24929
24668
|
);
|
|
24930
24669
|
const filesThatDoNotExist = filesInReaddirDir.filter(
|
|
24931
|
-
(
|
|
24670
|
+
(path) => !directoryFiles.has(path)
|
|
24932
24671
|
);
|
|
24933
24672
|
for (const filePath of filesThatDoNotExist) {
|
|
24934
|
-
const fullFilePath = dirPath === "/" ? filePath :
|
|
24673
|
+
const fullFilePath = dirPath === "/" ? filePath : import_path11.posix.join(dirPath, filePath);
|
|
24935
24674
|
this.fileCache.set(fullFilePath, Promise.resolve(false));
|
|
24936
24675
|
this.pathCache.set(fullFilePath, Promise.resolve(false));
|
|
24937
24676
|
}
|
|
@@ -24992,7 +24731,7 @@ var require_local_file_system_detector = __commonJS({
|
|
|
24992
24731
|
});
|
|
24993
24732
|
module.exports = __toCommonJS2(local_file_system_detector_exports);
|
|
24994
24733
|
var import_promises4 = __toESM2(__require("fs/promises"));
|
|
24995
|
-
var
|
|
24734
|
+
var import_path11 = __require("path");
|
|
24996
24735
|
var import_filesystem = require_filesystem();
|
|
24997
24736
|
var import_error_utils5 = require_dist();
|
|
24998
24737
|
var LocalFileSystemDetector4 = class _LocalFileSystemDetector extends import_filesystem.DetectorFilesystem {
|
|
@@ -25033,7 +24772,7 @@ var require_local_file_system_detector = __commonJS({
|
|
|
25033
24772
|
}
|
|
25034
24773
|
result.push({
|
|
25035
24774
|
name: entry.name,
|
|
25036
|
-
path: (0,
|
|
24775
|
+
path: (0, import_path11.join)(this.getRelativeFilePath(dir), entry.name),
|
|
25037
24776
|
type
|
|
25038
24777
|
});
|
|
25039
24778
|
}
|
|
@@ -25043,10 +24782,10 @@ var require_local_file_system_detector = __commonJS({
|
|
|
25043
24782
|
return new _LocalFileSystemDetector(this.getFilePath(name));
|
|
25044
24783
|
}
|
|
25045
24784
|
getRelativeFilePath(name) {
|
|
25046
|
-
return name.startsWith(this.rootPath) ? (0,
|
|
24785
|
+
return name.startsWith(this.rootPath) ? (0, import_path11.relative)(this.rootPath, name) : name;
|
|
25047
24786
|
}
|
|
25048
24787
|
getFilePath(name) {
|
|
25049
|
-
return (0,
|
|
24788
|
+
return (0, import_path11.join)(this.rootPath, this.getRelativeFilePath(name));
|
|
25050
24789
|
}
|
|
25051
24790
|
};
|
|
25052
24791
|
}
|
|
@@ -25080,8 +24819,31 @@ var require_get_services_builders = __commonJS({
|
|
|
25080
24819
|
module.exports = __toCommonJS2(get_services_builders_exports);
|
|
25081
24820
|
var import_detect_services2 = require_detect_services();
|
|
25082
24821
|
var import_local_file_system_detector = require_local_file_system_detector();
|
|
24822
|
+
function isExperimentalServicesAutoDetectionEnabled() {
|
|
24823
|
+
const env = process.env.VERCEL_USE_EXPERIMENTAL_SERVICES;
|
|
24824
|
+
return env === "1" || env?.toLowerCase() === "true";
|
|
24825
|
+
}
|
|
25083
24826
|
async function getServicesBuilders2(options) {
|
|
25084
|
-
const { workPath } = options;
|
|
24827
|
+
const { workPath, configuredServices, projectFramework } = options;
|
|
24828
|
+
const hasServiceDefinitions = configuredServices != null && Object.keys(configuredServices).length > 0;
|
|
24829
|
+
if (projectFramework === "services" && !hasServiceDefinitions && !isExperimentalServicesAutoDetectionEnabled()) {
|
|
24830
|
+
return {
|
|
24831
|
+
builders: null,
|
|
24832
|
+
errors: [
|
|
24833
|
+
{
|
|
24834
|
+
code: "MISSING_EXPERIMENTAL_SERVICES",
|
|
24835
|
+
message: 'Project framework is set to "services", but no services are declared. Add `experimentalServices` to vercel.json with at least one service, or change the project framework setting.'
|
|
24836
|
+
}
|
|
24837
|
+
],
|
|
24838
|
+
warnings: [],
|
|
24839
|
+
hostRewriteRoutes: null,
|
|
24840
|
+
defaultRoutes: null,
|
|
24841
|
+
fallbackRoutes: null,
|
|
24842
|
+
redirectRoutes: null,
|
|
24843
|
+
rewriteRoutes: null,
|
|
24844
|
+
errorRoutes: null
|
|
24845
|
+
};
|
|
24846
|
+
}
|
|
25085
24847
|
if (!workPath) {
|
|
25086
24848
|
return {
|
|
25087
24849
|
builders: null,
|
|
@@ -25206,7 +24968,7 @@ var require_detect_builders = __commonJS({
|
|
|
25206
24968
|
module.exports = __toCommonJS2(detect_builders_exports);
|
|
25207
24969
|
var import_minimatch = __toESM2(require_minimatch());
|
|
25208
24970
|
var import_semver = require_semver();
|
|
25209
|
-
var
|
|
24971
|
+
var import_path11 = __require("path");
|
|
25210
24972
|
var import_frameworks2 = require_frameworks();
|
|
25211
24973
|
var import_is_official_runtime = require_is_official_runtime();
|
|
25212
24974
|
var import_build_utils5 = __require("@vercel/build-utils");
|
|
@@ -25236,7 +24998,7 @@ var require_detect_builders = __commonJS({
|
|
|
25236
24998
|
return new Set(
|
|
25237
24999
|
builders.filter(
|
|
25238
25000
|
(b) => Boolean(b.config && b.config.zeroConfig && b.src?.startsWith("api/"))
|
|
25239
|
-
).map((b) => (0,
|
|
25001
|
+
).map((b) => (0, import_path11.extname)(b.src)).filter(Boolean)
|
|
25240
25002
|
);
|
|
25241
25003
|
}
|
|
25242
25004
|
function detectApiDirectory2(builders) {
|
|
@@ -25263,7 +25025,9 @@ var require_detect_builders = __commonJS({
|
|
|
25263
25025
|
const hasServicesConfig = services != null && typeof services === "object";
|
|
25264
25026
|
if (hasServicesConfig || framework === "services") {
|
|
25265
25027
|
return (0, import_get_services_builders.getServicesBuilders)({
|
|
25266
|
-
workPath: options.workPath
|
|
25028
|
+
workPath: options.workPath,
|
|
25029
|
+
configuredServices: services,
|
|
25030
|
+
projectFramework: framework
|
|
25267
25031
|
});
|
|
25268
25032
|
}
|
|
25269
25033
|
const errors = [];
|
|
@@ -25482,7 +25246,7 @@ var require_detect_builders = __commonJS({
|
|
|
25482
25246
|
return null;
|
|
25483
25247
|
}
|
|
25484
25248
|
if (fileName.endsWith(".py") && options.workPath) {
|
|
25485
|
-
const fsPath = (0,
|
|
25249
|
+
const fsPath = (0, import_path11.join)(options.workPath, fileName);
|
|
25486
25250
|
const isEntrypoint = await (0, import_build_utils5.isPythonEntrypoint)({ fsPath });
|
|
25487
25251
|
if (!isEntrypoint) {
|
|
25488
25252
|
return null;
|
|
@@ -25490,7 +25254,7 @@ var require_detect_builders = __commonJS({
|
|
|
25490
25254
|
}
|
|
25491
25255
|
const nodeExtensions = [".js", ".mjs", ".ts", ".tsx"];
|
|
25492
25256
|
if (fileName.startsWith("api/") && process.env.VERCEL_NODE_FILTER_ENTRYPOINTS === "1" && nodeExtensions.some((ext) => fileName.endsWith(ext)) && options.workPath) {
|
|
25493
|
-
const fsPath = (0,
|
|
25257
|
+
const fsPath = (0, import_path11.join)(options.workPath, fileName);
|
|
25494
25258
|
const isEntrypoint = await (0, import_build_utils5.isNodeEntrypoint)({ fsPath });
|
|
25495
25259
|
if (!isEntrypoint) {
|
|
25496
25260
|
return null;
|
|
@@ -25628,8 +25392,8 @@ var require_detect_builders = __commonJS({
|
|
|
25628
25392
|
};
|
|
25629
25393
|
}
|
|
25630
25394
|
function validateFunctions({ functions = {} }) {
|
|
25631
|
-
for (const [
|
|
25632
|
-
if (
|
|
25395
|
+
for (const [path, func] of Object.entries(functions)) {
|
|
25396
|
+
if (path.length > 256) {
|
|
25633
25397
|
return {
|
|
25634
25398
|
code: "invalid_function_glob",
|
|
25635
25399
|
message: "Function globs must be less than 256 characters long."
|
|
@@ -25659,10 +25423,10 @@ var require_detect_builders = __commonJS({
|
|
|
25659
25423
|
message: "Functions must have a memory value between 128 and 10240"
|
|
25660
25424
|
};
|
|
25661
25425
|
}
|
|
25662
|
-
if (
|
|
25426
|
+
if (path.startsWith("/")) {
|
|
25663
25427
|
return {
|
|
25664
25428
|
code: "invalid_function_source",
|
|
25665
|
-
message: `The function path "${
|
|
25429
|
+
message: `The function path "${path}" is invalid. The path must be relative to your project root and therefore cannot start with a slash.`
|
|
25666
25430
|
};
|
|
25667
25431
|
}
|
|
25668
25432
|
if (func.runtime !== void 0) {
|
|
@@ -25779,14 +25543,14 @@ var require_detect_builders = __commonJS({
|
|
|
25779
25543
|
return null;
|
|
25780
25544
|
}
|
|
25781
25545
|
function getSegmentName(segment) {
|
|
25782
|
-
const { name } = (0,
|
|
25546
|
+
const { name } = (0, import_path11.parse)(segment);
|
|
25783
25547
|
if (name.startsWith("[") && name.endsWith("]")) {
|
|
25784
25548
|
return name.slice(1, -1);
|
|
25785
25549
|
}
|
|
25786
25550
|
return null;
|
|
25787
25551
|
}
|
|
25788
25552
|
function getAbsolutePath(unresolvedPath) {
|
|
25789
|
-
const { dir, name } = (0,
|
|
25553
|
+
const { dir, name } = (0, import_path11.parse)(unresolvedPath);
|
|
25790
25554
|
const parts = joinPath(dir, name).split("/");
|
|
25791
25555
|
return parts.map((part) => part.replace(/\[.*\]/, "1")).join("/");
|
|
25792
25556
|
}
|
|
@@ -25865,7 +25629,7 @@ var require_detect_builders = __commonJS({
|
|
|
25865
25629
|
isDynamic = true;
|
|
25866
25630
|
return `([^/]+)`;
|
|
25867
25631
|
} else if (isLast) {
|
|
25868
|
-
const { name: fileName2, ext: ext2 } = (0,
|
|
25632
|
+
const { name: fileName2, ext: ext2 } = (0, import_path11.parse)(segment);
|
|
25869
25633
|
const isIndex2 = fileName2 === "index";
|
|
25870
25634
|
const prefix = isIndex2 ? "/" : "";
|
|
25871
25635
|
const names = [
|
|
@@ -25877,7 +25641,7 @@ var require_detect_builders = __commonJS({
|
|
|
25877
25641
|
}
|
|
25878
25642
|
return segment;
|
|
25879
25643
|
});
|
|
25880
|
-
const { name: fileName, ext } = (0,
|
|
25644
|
+
const { name: fileName, ext } = (0, import_path11.parse)(filePath);
|
|
25881
25645
|
const isIndex = fileName === "index";
|
|
25882
25646
|
const queryString = `${query.length ? "?" : ""}${query.join("&")}`;
|
|
25883
25647
|
const src = isIndex ? `^/${srcParts.slice(0, -1).join("/")}${srcParts.slice(-1)[0]}$` : `^/${srcParts.join("/")}$`;
|
|
@@ -26194,11 +25958,9 @@ var require_detect_file_system_api = __commonJS({
|
|
|
26194
25958
|
var require_get_project_paths = __commonJS({
|
|
26195
25959
|
"../fs-detectors/dist/get-project-paths.js"(exports, module) {
|
|
26196
25960
|
"use strict";
|
|
26197
|
-
var __create = Object.create;
|
|
26198
25961
|
var __defProp = Object.defineProperty;
|
|
26199
25962
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
26200
25963
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
26201
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
26202
25964
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
26203
25965
|
var __export2 = (target, all) => {
|
|
26204
25966
|
for (var name in all)
|
|
@@ -26212,14 +25974,6 @@ var require_get_project_paths = __commonJS({
|
|
|
26212
25974
|
}
|
|
26213
25975
|
return to;
|
|
26214
25976
|
};
|
|
26215
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26216
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
26217
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26218
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26219
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26220
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26221
|
-
mod
|
|
26222
|
-
));
|
|
26223
25977
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26224
25978
|
var get_project_paths_exports = {};
|
|
26225
25979
|
__export2(get_project_paths_exports, {
|
|
@@ -26227,24 +25981,24 @@ var require_get_project_paths = __commonJS({
|
|
|
26227
25981
|
});
|
|
26228
25982
|
module.exports = __toCommonJS2(get_project_paths_exports);
|
|
26229
25983
|
var import_detect_framework = require_detect_framework();
|
|
26230
|
-
var import_frameworks2 =
|
|
25984
|
+
var import_frameworks2 = require_frameworks();
|
|
26231
25985
|
var MAX_DEPTH_TRAVERSE = 3;
|
|
26232
25986
|
var getProjectPaths2 = async ({
|
|
26233
25987
|
fs: fs5,
|
|
26234
|
-
path
|
|
25988
|
+
path,
|
|
26235
25989
|
skipPaths,
|
|
26236
25990
|
depth = MAX_DEPTH_TRAVERSE
|
|
26237
25991
|
}) => {
|
|
26238
25992
|
if (depth === 0)
|
|
26239
25993
|
return [];
|
|
26240
25994
|
const allPaths = [];
|
|
26241
|
-
const topPath =
|
|
26242
|
-
if (
|
|
25995
|
+
const topPath = path ?? "./";
|
|
25996
|
+
if (path && skipPaths?.includes(path)) {
|
|
26243
25997
|
return allPaths;
|
|
26244
25998
|
}
|
|
26245
25999
|
const framework = await (0, import_detect_framework.detectFramework)({
|
|
26246
26000
|
fs: fs5.chdir(topPath),
|
|
26247
|
-
frameworkList: import_frameworks2.
|
|
26001
|
+
frameworkList: import_frameworks2.frameworkList
|
|
26248
26002
|
});
|
|
26249
26003
|
if (framework !== null)
|
|
26250
26004
|
allPaths.push(topPath);
|
|
@@ -26254,10 +26008,10 @@ var require_get_project_paths = __commonJS({
|
|
|
26254
26008
|
(stat2) => stat2.type === "dir" && !skipPaths?.includes(stat2.path)
|
|
26255
26009
|
);
|
|
26256
26010
|
const paths = (await Promise.all(
|
|
26257
|
-
childDirectories.map(({ path:
|
|
26011
|
+
childDirectories.map(({ path: path2 }) => {
|
|
26258
26012
|
return getProjectPaths2({
|
|
26259
26013
|
fs: fs5,
|
|
26260
|
-
path:
|
|
26014
|
+
path: path2,
|
|
26261
26015
|
depth: depth - 1,
|
|
26262
26016
|
skipPaths
|
|
26263
26017
|
});
|
|
@@ -26415,11 +26169,11 @@ var require_get_workspaces = __commonJS({
|
|
|
26415
26169
|
getWorkspaces: () => getWorkspaces3
|
|
26416
26170
|
});
|
|
26417
26171
|
module.exports = __toCommonJS2(get_workspaces_exports);
|
|
26418
|
-
var
|
|
26172
|
+
var import_path11 = __toESM2(__require("path"));
|
|
26419
26173
|
var import_workspace_managers = require_workspace_managers();
|
|
26420
26174
|
var import_detect_framework = require_detect_framework();
|
|
26421
26175
|
var MAX_DEPTH_TRAVERSE = 3;
|
|
26422
|
-
var posixPath =
|
|
26176
|
+
var posixPath = import_path11.default.posix;
|
|
26423
26177
|
async function getWorkspaces3({
|
|
26424
26178
|
fs: fs5,
|
|
26425
26179
|
depth = MAX_DEPTH_TRAVERSE,
|
|
@@ -29763,8 +29517,8 @@ var require_minimatch2 = __commonJS({
|
|
|
29763
29517
|
return new Minimatch(pattern, options).match(p);
|
|
29764
29518
|
};
|
|
29765
29519
|
module.exports = minimatch;
|
|
29766
|
-
var
|
|
29767
|
-
minimatch.sep =
|
|
29520
|
+
var path = require_path();
|
|
29521
|
+
minimatch.sep = path.sep;
|
|
29768
29522
|
var GLOBSTAR = Symbol("globstar **");
|
|
29769
29523
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
29770
29524
|
var expand = require_brace_expansion2();
|
|
@@ -30257,8 +30011,8 @@ var require_minimatch2 = __commonJS({
|
|
|
30257
30011
|
if (f === "/" && partial)
|
|
30258
30012
|
return true;
|
|
30259
30013
|
const options = this.options;
|
|
30260
|
-
if (
|
|
30261
|
-
f = f.split(
|
|
30014
|
+
if (path.sep !== "/") {
|
|
30015
|
+
f = f.split(path.sep).join("/");
|
|
30262
30016
|
}
|
|
30263
30017
|
f = f.split(slashSplit);
|
|
30264
30018
|
this.debug(this.pattern, "split", f);
|
|
@@ -30356,7 +30110,7 @@ var require_common3 = __commonJS({
|
|
|
30356
30110
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
30357
30111
|
}
|
|
30358
30112
|
var fs5 = __require("fs");
|
|
30359
|
-
var
|
|
30113
|
+
var path = __require("path");
|
|
30360
30114
|
var minimatch = require_minimatch2();
|
|
30361
30115
|
var isAbsolute = __require("path").isAbsolute;
|
|
30362
30116
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -30419,13 +30173,13 @@ var require_common3 = __commonJS({
|
|
|
30419
30173
|
self2.changedCwd = false;
|
|
30420
30174
|
var cwd = process.cwd();
|
|
30421
30175
|
if (!ownProp(options, "cwd"))
|
|
30422
|
-
self2.cwd =
|
|
30176
|
+
self2.cwd = path.resolve(cwd);
|
|
30423
30177
|
else {
|
|
30424
|
-
self2.cwd =
|
|
30178
|
+
self2.cwd = path.resolve(options.cwd);
|
|
30425
30179
|
self2.changedCwd = self2.cwd !== cwd;
|
|
30426
30180
|
}
|
|
30427
|
-
self2.root = options.root ||
|
|
30428
|
-
self2.root =
|
|
30181
|
+
self2.root = options.root || path.resolve(self2.cwd, "/");
|
|
30182
|
+
self2.root = path.resolve(self2.root);
|
|
30429
30183
|
self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
30430
30184
|
self2.nomount = !!options.nomount;
|
|
30431
30185
|
if (process.platform === "win32") {
|
|
@@ -30508,30 +30262,30 @@ var require_common3 = __commonJS({
|
|
|
30508
30262
|
function makeAbs(self2, f) {
|
|
30509
30263
|
var abs = f;
|
|
30510
30264
|
if (f.charAt(0) === "/") {
|
|
30511
|
-
abs =
|
|
30265
|
+
abs = path.join(self2.root, f);
|
|
30512
30266
|
} else if (isAbsolute(f) || f === "") {
|
|
30513
30267
|
abs = f;
|
|
30514
30268
|
} else if (self2.changedCwd) {
|
|
30515
|
-
abs =
|
|
30269
|
+
abs = path.resolve(self2.cwd, f);
|
|
30516
30270
|
} else {
|
|
30517
|
-
abs =
|
|
30271
|
+
abs = path.resolve(f);
|
|
30518
30272
|
}
|
|
30519
30273
|
if (process.platform === "win32")
|
|
30520
30274
|
abs = abs.replace(/\\/g, "/");
|
|
30521
30275
|
return abs;
|
|
30522
30276
|
}
|
|
30523
|
-
function isIgnored(self2,
|
|
30277
|
+
function isIgnored(self2, path2) {
|
|
30524
30278
|
if (!self2.ignore.length)
|
|
30525
30279
|
return false;
|
|
30526
30280
|
return self2.ignore.some(function(item) {
|
|
30527
|
-
return item.matcher.match(
|
|
30281
|
+
return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
|
|
30528
30282
|
});
|
|
30529
30283
|
}
|
|
30530
|
-
function childrenIgnored(self2,
|
|
30284
|
+
function childrenIgnored(self2, path2) {
|
|
30531
30285
|
if (!self2.ignore.length)
|
|
30532
30286
|
return false;
|
|
30533
30287
|
return self2.ignore.some(function(item) {
|
|
30534
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
30288
|
+
return !!(item.gmatcher && item.gmatcher.match(path2));
|
|
30535
30289
|
});
|
|
30536
30290
|
}
|
|
30537
30291
|
}
|
|
@@ -30547,7 +30301,7 @@ var require_sync = __commonJS({
|
|
|
30547
30301
|
var Minimatch = minimatch.Minimatch;
|
|
30548
30302
|
var Glob = require_glob().Glob;
|
|
30549
30303
|
var util = __require("util");
|
|
30550
|
-
var
|
|
30304
|
+
var path = __require("path");
|
|
30551
30305
|
var assert = __require("assert");
|
|
30552
30306
|
var isAbsolute = __require("path").isAbsolute;
|
|
30553
30307
|
var common2 = require_common3();
|
|
@@ -30675,7 +30429,7 @@ var require_sync = __commonJS({
|
|
|
30675
30429
|
e = prefix + e;
|
|
30676
30430
|
}
|
|
30677
30431
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
30678
|
-
e =
|
|
30432
|
+
e = path.join(this.root, e);
|
|
30679
30433
|
}
|
|
30680
30434
|
this._emitMatch(index, e);
|
|
30681
30435
|
}
|
|
@@ -30824,9 +30578,9 @@ var require_sync = __commonJS({
|
|
|
30824
30578
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
30825
30579
|
var trail = /[\/\\]$/.test(prefix);
|
|
30826
30580
|
if (prefix.charAt(0) === "/") {
|
|
30827
|
-
prefix =
|
|
30581
|
+
prefix = path.join(this.root, prefix);
|
|
30828
30582
|
} else {
|
|
30829
|
-
prefix =
|
|
30583
|
+
prefix = path.resolve(this.root, prefix);
|
|
30830
30584
|
if (trail)
|
|
30831
30585
|
prefix += "/";
|
|
30832
30586
|
}
|
|
@@ -31021,7 +30775,7 @@ var require_glob = __commonJS({
|
|
|
31021
30775
|
var Minimatch = minimatch.Minimatch;
|
|
31022
30776
|
var inherits = require_inherits();
|
|
31023
30777
|
var EE = __require("events").EventEmitter;
|
|
31024
|
-
var
|
|
30778
|
+
var path = __require("path");
|
|
31025
30779
|
var assert = __require("assert");
|
|
31026
30780
|
var isAbsolute = __require("path").isAbsolute;
|
|
31027
30781
|
var globSync = require_sync();
|
|
@@ -31304,7 +31058,7 @@ var require_glob = __commonJS({
|
|
|
31304
31058
|
e = prefix + e;
|
|
31305
31059
|
}
|
|
31306
31060
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
31307
|
-
e =
|
|
31061
|
+
e = path.join(this.root, e);
|
|
31308
31062
|
}
|
|
31309
31063
|
this._emitMatch(index, e);
|
|
31310
31064
|
}
|
|
@@ -31491,9 +31245,9 @@ var require_glob = __commonJS({
|
|
|
31491
31245
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
31492
31246
|
var trail = /[\/\\]$/.test(prefix);
|
|
31493
31247
|
if (prefix.charAt(0) === "/") {
|
|
31494
|
-
prefix =
|
|
31248
|
+
prefix = path.join(this.root, prefix);
|
|
31495
31249
|
} else {
|
|
31496
|
-
prefix =
|
|
31250
|
+
prefix = path.resolve(this.root, prefix);
|
|
31497
31251
|
if (trail)
|
|
31498
31252
|
prefix += "/";
|
|
31499
31253
|
}
|
|
@@ -32667,7 +32421,7 @@ var require_stringify = __commonJS({
|
|
|
32667
32421
|
});
|
|
32668
32422
|
|
|
32669
32423
|
// ../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/index.js
|
|
32670
|
-
var
|
|
32424
|
+
var require_lib4 = __commonJS({
|
|
32671
32425
|
"../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/index.js"(exports, module) {
|
|
32672
32426
|
var parse3 = require_parse();
|
|
32673
32427
|
var stringify = require_stringify();
|
|
@@ -32716,20 +32470,20 @@ var require_get_glob_fs = __commonJS({
|
|
|
32716
32470
|
});
|
|
32717
32471
|
module.exports = __toCommonJS2(get_glob_fs_exports);
|
|
32718
32472
|
var import_fs4 = __toESM2(__require("fs"));
|
|
32719
|
-
function removeWindowsPrefix(
|
|
32720
|
-
return
|
|
32473
|
+
function removeWindowsPrefix(path) {
|
|
32474
|
+
return path.replace(/^[a-zA-Z]:/, "");
|
|
32721
32475
|
}
|
|
32722
32476
|
function getGlobFs(_fs) {
|
|
32723
|
-
const readdir = (
|
|
32724
|
-
_fs.readdir(removeWindowsPrefix(String(
|
|
32477
|
+
const readdir = (path, callback) => {
|
|
32478
|
+
_fs.readdir(removeWindowsPrefix(String(path))).then(
|
|
32725
32479
|
(stats) => callback(
|
|
32726
32480
|
null,
|
|
32727
32481
|
stats.map((stat22) => stat22.name)
|
|
32728
32482
|
)
|
|
32729
32483
|
).catch((err) => callback(err, []));
|
|
32730
32484
|
};
|
|
32731
|
-
const stat2 = (
|
|
32732
|
-
_fs.isFile(removeWindowsPrefix(String(
|
|
32485
|
+
const stat2 = (path, callback) => {
|
|
32486
|
+
_fs.isFile(removeWindowsPrefix(String(path))).then((isPathAFile) => {
|
|
32733
32487
|
callback(null, {
|
|
32734
32488
|
ino: 0,
|
|
32735
32489
|
mode: 0,
|
|
@@ -32812,12 +32566,12 @@ var require_get_workspace_package_paths = __commonJS({
|
|
|
32812
32566
|
getWorkspacePackagePaths: () => getWorkspacePackagePaths3
|
|
32813
32567
|
});
|
|
32814
32568
|
module.exports = __toCommonJS2(get_workspace_package_paths_exports);
|
|
32815
|
-
var
|
|
32569
|
+
var import_path11 = __toESM2(__require("path"));
|
|
32816
32570
|
var import_js_yaml = __toESM2(require_js_yaml3());
|
|
32817
32571
|
var import_glob = __toESM2(require_glob());
|
|
32818
|
-
var import_json5 = __toESM2(
|
|
32572
|
+
var import_json5 = __toESM2(require_lib4());
|
|
32819
32573
|
var import_get_glob_fs = require_get_glob_fs();
|
|
32820
|
-
var posixPath =
|
|
32574
|
+
var posixPath = import_path11.default.posix;
|
|
32821
32575
|
async function getWorkspacePackagePaths3({
|
|
32822
32576
|
fs: fs5,
|
|
32823
32577
|
workspace
|
|
@@ -33184,11 +32938,11 @@ var require_get_monorepo_default_settings = __commonJS({
|
|
|
33184
32938
|
getMonorepoDefaultSettings: () => getMonorepoDefaultSettings
|
|
33185
32939
|
});
|
|
33186
32940
|
module.exports = __toCommonJS2(get_monorepo_default_settings_exports);
|
|
33187
|
-
var
|
|
32941
|
+
var import_path11 = __require("path");
|
|
33188
32942
|
var import_monorepo_managers = require_monorepo_managers();
|
|
33189
32943
|
var import_package_managers = require_package_managers();
|
|
33190
32944
|
var import_detect_framework = require_detect_framework();
|
|
33191
|
-
var import_json5 = __toESM2(
|
|
32945
|
+
var import_json5 = __toESM2(require_lib4());
|
|
33192
32946
|
var import_semver = __toESM2(require_semver());
|
|
33193
32947
|
var MissingBuildPipeline = class extends Error {
|
|
33194
32948
|
constructor(usesTasks) {
|
|
@@ -33288,8 +33042,8 @@ var require_get_monorepo_default_settings = __commonJS({
|
|
|
33288
33042
|
const nxJSON = import_json5.default.parse(nxJSONBuf.toString("utf-8"));
|
|
33289
33043
|
if (!nxJSON?.targetDefaults?.build) {
|
|
33290
33044
|
const [projectJSONBuf, packageJSONBuf] = await Promise.all([
|
|
33291
|
-
detectorFilesystem.readFile((0,
|
|
33292
|
-
detectorFilesystem.readFile((0,
|
|
33045
|
+
detectorFilesystem.readFile((0, import_path11.join)(projectPath, "project.json")).catch(() => null),
|
|
33046
|
+
detectorFilesystem.readFile((0, import_path11.join)(projectPath, "package.json")).catch(() => null)
|
|
33293
33047
|
]);
|
|
33294
33048
|
let hasBuildTarget = false;
|
|
33295
33049
|
if (projectJSONBuf) {
|
|
@@ -33644,9 +33398,9 @@ var require_fs3 = __commonJS({
|
|
|
33644
33398
|
var require_win32 = __commonJS({
|
|
33645
33399
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/win32.js"(exports, module) {
|
|
33646
33400
|
"use strict";
|
|
33647
|
-
var
|
|
33401
|
+
var path = __require("path");
|
|
33648
33402
|
function getRootPath(p) {
|
|
33649
|
-
p =
|
|
33403
|
+
p = path.normalize(path.resolve(p)).split(path.sep);
|
|
33650
33404
|
if (p.length > 0)
|
|
33651
33405
|
return p[0];
|
|
33652
33406
|
return null;
|
|
@@ -33669,7 +33423,7 @@ var require_mkdirs2 = __commonJS({
|
|
|
33669
33423
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports, module) {
|
|
33670
33424
|
"use strict";
|
|
33671
33425
|
var fs5 = require_graceful_fs();
|
|
33672
|
-
var
|
|
33426
|
+
var path = __require("path");
|
|
33673
33427
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
33674
33428
|
var o777 = parseInt("0777", 8);
|
|
33675
33429
|
function mkdirs(p, opts, callback, made) {
|
|
@@ -33693,7 +33447,7 @@ var require_mkdirs2 = __commonJS({
|
|
|
33693
33447
|
made = null;
|
|
33694
33448
|
callback = callback || function() {
|
|
33695
33449
|
};
|
|
33696
|
-
p =
|
|
33450
|
+
p = path.resolve(p);
|
|
33697
33451
|
xfs.mkdir(p, mode, (er) => {
|
|
33698
33452
|
if (!er) {
|
|
33699
33453
|
made = made || p;
|
|
@@ -33701,9 +33455,9 @@ var require_mkdirs2 = __commonJS({
|
|
|
33701
33455
|
}
|
|
33702
33456
|
switch (er.code) {
|
|
33703
33457
|
case "ENOENT":
|
|
33704
|
-
if (
|
|
33458
|
+
if (path.dirname(p) === p)
|
|
33705
33459
|
return callback(er);
|
|
33706
|
-
mkdirs(
|
|
33460
|
+
mkdirs(path.dirname(p), opts, (er2, made2) => {
|
|
33707
33461
|
if (er2)
|
|
33708
33462
|
callback(er2, made2);
|
|
33709
33463
|
else
|
|
@@ -33730,7 +33484,7 @@ var require_mkdirs_sync = __commonJS({
|
|
|
33730
33484
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports, module) {
|
|
33731
33485
|
"use strict";
|
|
33732
33486
|
var fs5 = require_graceful_fs();
|
|
33733
|
-
var
|
|
33487
|
+
var path = __require("path");
|
|
33734
33488
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
33735
33489
|
var o777 = parseInt("0777", 8);
|
|
33736
33490
|
function mkdirsSync(p, opts, made) {
|
|
@@ -33749,15 +33503,15 @@ var require_mkdirs_sync = __commonJS({
|
|
|
33749
33503
|
}
|
|
33750
33504
|
if (!made)
|
|
33751
33505
|
made = null;
|
|
33752
|
-
p =
|
|
33506
|
+
p = path.resolve(p);
|
|
33753
33507
|
try {
|
|
33754
33508
|
xfs.mkdirSync(p, mode);
|
|
33755
33509
|
made = made || p;
|
|
33756
33510
|
} catch (err0) {
|
|
33757
33511
|
if (err0.code === "ENOENT") {
|
|
33758
|
-
if (
|
|
33512
|
+
if (path.dirname(p) === p)
|
|
33759
33513
|
throw err0;
|
|
33760
|
-
made = mkdirsSync(
|
|
33514
|
+
made = mkdirsSync(path.dirname(p), opts, made);
|
|
33761
33515
|
mkdirsSync(p, opts, made);
|
|
33762
33516
|
} else {
|
|
33763
33517
|
let stat2;
|
|
@@ -33801,10 +33555,10 @@ var require_utimes2 = __commonJS({
|
|
|
33801
33555
|
"use strict";
|
|
33802
33556
|
var fs5 = require_graceful_fs();
|
|
33803
33557
|
var os2 = __require("os");
|
|
33804
|
-
var
|
|
33558
|
+
var path = __require("path");
|
|
33805
33559
|
function hasMillisResSync() {
|
|
33806
|
-
let tmpfile =
|
|
33807
|
-
tmpfile =
|
|
33560
|
+
let tmpfile = path.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
|
|
33561
|
+
tmpfile = path.join(os2.tmpdir(), tmpfile);
|
|
33808
33562
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
33809
33563
|
fs5.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
|
|
33810
33564
|
const fd = fs5.openSync(tmpfile, "r+");
|
|
@@ -33813,8 +33567,8 @@ var require_utimes2 = __commonJS({
|
|
|
33813
33567
|
return fs5.statSync(tmpfile).mtime > 1435410243e3;
|
|
33814
33568
|
}
|
|
33815
33569
|
function hasMillisRes(callback) {
|
|
33816
|
-
let tmpfile =
|
|
33817
|
-
tmpfile =
|
|
33570
|
+
let tmpfile = path.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
|
|
33571
|
+
tmpfile = path.join(os2.tmpdir(), tmpfile);
|
|
33818
33572
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
33819
33573
|
fs5.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
|
|
33820
33574
|
if (err)
|
|
@@ -33847,8 +33601,8 @@ var require_utimes2 = __commonJS({
|
|
|
33847
33601
|
throw new Error("fs-extra: timeRemoveMillis() unknown parameter type");
|
|
33848
33602
|
}
|
|
33849
33603
|
}
|
|
33850
|
-
function utimesMillis(
|
|
33851
|
-
fs5.open(
|
|
33604
|
+
function utimesMillis(path2, atime, mtime, callback) {
|
|
33605
|
+
fs5.open(path2, "r+", (err, fd) => {
|
|
33852
33606
|
if (err)
|
|
33853
33607
|
return callback(err);
|
|
33854
33608
|
fs5.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -33859,8 +33613,8 @@ var require_utimes2 = __commonJS({
|
|
|
33859
33613
|
});
|
|
33860
33614
|
});
|
|
33861
33615
|
}
|
|
33862
|
-
function utimesMillisSync(
|
|
33863
|
-
const fd = fs5.openSync(
|
|
33616
|
+
function utimesMillisSync(path2, atime, mtime) {
|
|
33617
|
+
const fd = fs5.openSync(path2, "r+");
|
|
33864
33618
|
fs5.futimesSync(fd, atime, mtime);
|
|
33865
33619
|
return fs5.closeSync(fd);
|
|
33866
33620
|
}
|
|
@@ -33879,7 +33633,7 @@ var require_stat2 = __commonJS({
|
|
|
33879
33633
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
33880
33634
|
"use strict";
|
|
33881
33635
|
var fs5 = __require("fs");
|
|
33882
|
-
var
|
|
33636
|
+
var path = __require("path");
|
|
33883
33637
|
var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
|
|
33884
33638
|
var NODE_VERSION_MINOR_WITH_BIGINT = 5;
|
|
33885
33639
|
var NODE_VERSION_PATCH_WITH_BIGINT = 0;
|
|
@@ -33975,9 +33729,9 @@ var require_stat2 = __commonJS({
|
|
|
33975
33729
|
return { srcStat, destStat };
|
|
33976
33730
|
}
|
|
33977
33731
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
33978
|
-
const srcParent =
|
|
33979
|
-
const destParent =
|
|
33980
|
-
if (destParent === srcParent || destParent ===
|
|
33732
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33733
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33734
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
33981
33735
|
return cb();
|
|
33982
33736
|
if (nodeSupportsBigInt()) {
|
|
33983
33737
|
fs5.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
@@ -34006,9 +33760,9 @@ var require_stat2 = __commonJS({
|
|
|
34006
33760
|
}
|
|
34007
33761
|
}
|
|
34008
33762
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
34009
|
-
const srcParent =
|
|
34010
|
-
const destParent =
|
|
34011
|
-
if (destParent === srcParent || destParent ===
|
|
33763
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33764
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33765
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
34012
33766
|
return;
|
|
34013
33767
|
let destStat;
|
|
34014
33768
|
try {
|
|
@@ -34028,8 +33782,8 @@ var require_stat2 = __commonJS({
|
|
|
34028
33782
|
return checkParentPathsSync(src, srcStat, destParent, funcName);
|
|
34029
33783
|
}
|
|
34030
33784
|
function isSrcSubdir(src, dest) {
|
|
34031
|
-
const srcArr =
|
|
34032
|
-
const destArr =
|
|
33785
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
33786
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
34033
33787
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
34034
33788
|
}
|
|
34035
33789
|
function errMsg(src, dest, funcName) {
|
|
@@ -34067,7 +33821,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34067
33821
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module) {
|
|
34068
33822
|
"use strict";
|
|
34069
33823
|
var fs5 = __require("fs");
|
|
34070
|
-
var
|
|
33824
|
+
var path = __require("path");
|
|
34071
33825
|
var mkdirpSync = require_mkdirs3().mkdirsSync;
|
|
34072
33826
|
var utimesSync = require_utimes2().utimesMillisSync;
|
|
34073
33827
|
var stat2 = require_stat2();
|
|
@@ -34090,7 +33844,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34090
33844
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
34091
33845
|
if (opts.filter && !opts.filter(src, dest))
|
|
34092
33846
|
return;
|
|
34093
|
-
const destParent =
|
|
33847
|
+
const destParent = path.dirname(dest);
|
|
34094
33848
|
if (!fs5.existsSync(destParent))
|
|
34095
33849
|
mkdirpSync(destParent);
|
|
34096
33850
|
return startCopy(destStat, src, dest, opts);
|
|
@@ -34167,15 +33921,15 @@ var require_copy_sync3 = __commonJS({
|
|
|
34167
33921
|
fs5.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
34168
33922
|
}
|
|
34169
33923
|
function copyDirItem(item, src, dest, opts) {
|
|
34170
|
-
const srcItem =
|
|
34171
|
-
const destItem =
|
|
33924
|
+
const srcItem = path.join(src, item);
|
|
33925
|
+
const destItem = path.join(dest, item);
|
|
34172
33926
|
const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy");
|
|
34173
33927
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
34174
33928
|
}
|
|
34175
33929
|
function onLink(destStat, src, dest, opts) {
|
|
34176
33930
|
let resolvedSrc = fs5.readlinkSync(src);
|
|
34177
33931
|
if (opts.dereference) {
|
|
34178
|
-
resolvedSrc =
|
|
33932
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34179
33933
|
}
|
|
34180
33934
|
if (!destStat) {
|
|
34181
33935
|
return fs5.symlinkSync(resolvedSrc, dest);
|
|
@@ -34189,7 +33943,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34189
33943
|
throw err;
|
|
34190
33944
|
}
|
|
34191
33945
|
if (opts.dereference) {
|
|
34192
|
-
resolvedDest =
|
|
33946
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34193
33947
|
}
|
|
34194
33948
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34195
33949
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34224,8 +33978,8 @@ var require_path_exists2 = __commonJS({
|
|
|
34224
33978
|
"use strict";
|
|
34225
33979
|
var u = require_universalify2().fromPromise;
|
|
34226
33980
|
var fs5 = require_fs3();
|
|
34227
|
-
function pathExists2(
|
|
34228
|
-
return fs5.access(
|
|
33981
|
+
function pathExists2(path) {
|
|
33982
|
+
return fs5.access(path).then(() => true).catch(() => false);
|
|
34229
33983
|
}
|
|
34230
33984
|
module.exports = {
|
|
34231
33985
|
pathExists: u(pathExists2),
|
|
@@ -34239,7 +33993,7 @@ var require_copy3 = __commonJS({
|
|
|
34239
33993
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
34240
33994
|
"use strict";
|
|
34241
33995
|
var fs5 = __require("fs");
|
|
34242
|
-
var
|
|
33996
|
+
var path = __require("path");
|
|
34243
33997
|
var mkdirp = require_mkdirs3().mkdirs;
|
|
34244
33998
|
var pathExists2 = require_path_exists2().pathExists;
|
|
34245
33999
|
var utimes = require_utimes2().utimesMillis;
|
|
@@ -34275,7 +34029,7 @@ var require_copy3 = __commonJS({
|
|
|
34275
34029
|
});
|
|
34276
34030
|
}
|
|
34277
34031
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
34278
|
-
const destParent =
|
|
34032
|
+
const destParent = path.dirname(dest);
|
|
34279
34033
|
pathExists2(destParent, (err, dirExists) => {
|
|
34280
34034
|
if (err)
|
|
34281
34035
|
return cb(err);
|
|
@@ -34390,8 +34144,8 @@ var require_copy3 = __commonJS({
|
|
|
34390
34144
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
34391
34145
|
}
|
|
34392
34146
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
34393
|
-
const srcItem =
|
|
34394
|
-
const destItem =
|
|
34147
|
+
const srcItem = path.join(src, item);
|
|
34148
|
+
const destItem = path.join(dest, item);
|
|
34395
34149
|
stat2.checkPaths(srcItem, destItem, "copy", (err, stats) => {
|
|
34396
34150
|
if (err)
|
|
34397
34151
|
return cb(err);
|
|
@@ -34408,7 +34162,7 @@ var require_copy3 = __commonJS({
|
|
|
34408
34162
|
if (err)
|
|
34409
34163
|
return cb(err);
|
|
34410
34164
|
if (opts.dereference) {
|
|
34411
|
-
resolvedSrc =
|
|
34165
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34412
34166
|
}
|
|
34413
34167
|
if (!destStat) {
|
|
34414
34168
|
return fs5.symlink(resolvedSrc, dest, cb);
|
|
@@ -34420,7 +34174,7 @@ var require_copy3 = __commonJS({
|
|
|
34420
34174
|
return cb(err2);
|
|
34421
34175
|
}
|
|
34422
34176
|
if (opts.dereference) {
|
|
34423
|
-
resolvedDest =
|
|
34177
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34424
34178
|
}
|
|
34425
34179
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34426
34180
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -34460,7 +34214,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34460
34214
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module) {
|
|
34461
34215
|
"use strict";
|
|
34462
34216
|
var fs5 = require_graceful_fs();
|
|
34463
|
-
var
|
|
34217
|
+
var path = __require("path");
|
|
34464
34218
|
var assert = __require("assert");
|
|
34465
34219
|
var isWindows = process.platform === "win32";
|
|
34466
34220
|
function defaults(options) {
|
|
@@ -34617,7 +34371,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34617
34371
|
if (n === 0)
|
|
34618
34372
|
return options.rmdir(p, cb);
|
|
34619
34373
|
files.forEach((f) => {
|
|
34620
|
-
rimraf(
|
|
34374
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
34621
34375
|
if (errState) {
|
|
34622
34376
|
return;
|
|
34623
34377
|
}
|
|
@@ -34686,7 +34440,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34686
34440
|
function rmkidsSync(p, options) {
|
|
34687
34441
|
assert(p);
|
|
34688
34442
|
assert(options);
|
|
34689
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
34443
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
34690
34444
|
if (isWindows) {
|
|
34691
34445
|
const startTime = Date.now();
|
|
34692
34446
|
do {
|
|
@@ -34725,7 +34479,7 @@ var require_empty2 = __commonJS({
|
|
|
34725
34479
|
"use strict";
|
|
34726
34480
|
var u = require_universalify2().fromCallback;
|
|
34727
34481
|
var fs5 = __require("fs");
|
|
34728
|
-
var
|
|
34482
|
+
var path = __require("path");
|
|
34729
34483
|
var mkdir2 = require_mkdirs3();
|
|
34730
34484
|
var remove = require_remove2();
|
|
34731
34485
|
var emptyDir = u(function emptyDir2(dir, callback) {
|
|
@@ -34734,7 +34488,7 @@ var require_empty2 = __commonJS({
|
|
|
34734
34488
|
fs5.readdir(dir, (err, items) => {
|
|
34735
34489
|
if (err)
|
|
34736
34490
|
return mkdir2.mkdirs(dir, callback);
|
|
34737
|
-
items = items.map((item) =>
|
|
34491
|
+
items = items.map((item) => path.join(dir, item));
|
|
34738
34492
|
deleteItem();
|
|
34739
34493
|
function deleteItem() {
|
|
34740
34494
|
const item = items.pop();
|
|
@@ -34756,7 +34510,7 @@ var require_empty2 = __commonJS({
|
|
|
34756
34510
|
return mkdir2.mkdirsSync(dir);
|
|
34757
34511
|
}
|
|
34758
34512
|
items.forEach((item) => {
|
|
34759
|
-
item =
|
|
34513
|
+
item = path.join(dir, item);
|
|
34760
34514
|
remove.removeSync(item);
|
|
34761
34515
|
});
|
|
34762
34516
|
}
|
|
@@ -34774,7 +34528,7 @@ var require_file2 = __commonJS({
|
|
|
34774
34528
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
34775
34529
|
"use strict";
|
|
34776
34530
|
var u = require_universalify2().fromCallback;
|
|
34777
|
-
var
|
|
34531
|
+
var path = __require("path");
|
|
34778
34532
|
var fs5 = require_graceful_fs();
|
|
34779
34533
|
var mkdir2 = require_mkdirs3();
|
|
34780
34534
|
var pathExists2 = require_path_exists2().pathExists;
|
|
@@ -34789,7 +34543,7 @@ var require_file2 = __commonJS({
|
|
|
34789
34543
|
fs5.stat(file, (err, stats) => {
|
|
34790
34544
|
if (!err && stats.isFile())
|
|
34791
34545
|
return callback();
|
|
34792
|
-
const dir =
|
|
34546
|
+
const dir = path.dirname(file);
|
|
34793
34547
|
pathExists2(dir, (err2, dirExists) => {
|
|
34794
34548
|
if (err2)
|
|
34795
34549
|
return callback(err2);
|
|
@@ -34811,7 +34565,7 @@ var require_file2 = __commonJS({
|
|
|
34811
34565
|
}
|
|
34812
34566
|
if (stats && stats.isFile())
|
|
34813
34567
|
return;
|
|
34814
|
-
const dir =
|
|
34568
|
+
const dir = path.dirname(file);
|
|
34815
34569
|
if (!fs5.existsSync(dir)) {
|
|
34816
34570
|
mkdir2.mkdirsSync(dir);
|
|
34817
34571
|
}
|
|
@@ -34829,7 +34583,7 @@ var require_link2 = __commonJS({
|
|
|
34829
34583
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
34830
34584
|
"use strict";
|
|
34831
34585
|
var u = require_universalify2().fromCallback;
|
|
34832
|
-
var
|
|
34586
|
+
var path = __require("path");
|
|
34833
34587
|
var fs5 = require_graceful_fs();
|
|
34834
34588
|
var mkdir2 = require_mkdirs3();
|
|
34835
34589
|
var pathExists2 = require_path_exists2().pathExists;
|
|
@@ -34851,7 +34605,7 @@ var require_link2 = __commonJS({
|
|
|
34851
34605
|
err2.message = err2.message.replace("lstat", "ensureLink");
|
|
34852
34606
|
return callback(err2);
|
|
34853
34607
|
}
|
|
34854
|
-
const dir =
|
|
34608
|
+
const dir = path.dirname(dstpath);
|
|
34855
34609
|
pathExists2(dir, (err3, dirExists) => {
|
|
34856
34610
|
if (err3)
|
|
34857
34611
|
return callback(err3);
|
|
@@ -34876,7 +34630,7 @@ var require_link2 = __commonJS({
|
|
|
34876
34630
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34877
34631
|
throw err;
|
|
34878
34632
|
}
|
|
34879
|
-
const dir =
|
|
34633
|
+
const dir = path.dirname(dstpath);
|
|
34880
34634
|
const dirExists = fs5.existsSync(dir);
|
|
34881
34635
|
if (dirExists)
|
|
34882
34636
|
return fs5.linkSync(srcpath, dstpath);
|
|
@@ -34894,11 +34648,11 @@ var require_link2 = __commonJS({
|
|
|
34894
34648
|
var require_symlink_paths2 = __commonJS({
|
|
34895
34649
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
34896
34650
|
"use strict";
|
|
34897
|
-
var
|
|
34651
|
+
var path = __require("path");
|
|
34898
34652
|
var fs5 = require_graceful_fs();
|
|
34899
34653
|
var pathExists2 = require_path_exists2().pathExists;
|
|
34900
34654
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
34901
|
-
if (
|
|
34655
|
+
if (path.isAbsolute(srcpath)) {
|
|
34902
34656
|
return fs5.lstat(srcpath, (err) => {
|
|
34903
34657
|
if (err) {
|
|
34904
34658
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -34910,8 +34664,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34910
34664
|
});
|
|
34911
34665
|
});
|
|
34912
34666
|
} else {
|
|
34913
|
-
const dstdir =
|
|
34914
|
-
const relativeToDst =
|
|
34667
|
+
const dstdir = path.dirname(dstpath);
|
|
34668
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34915
34669
|
return pathExists2(relativeToDst, (err, exists) => {
|
|
34916
34670
|
if (err)
|
|
34917
34671
|
return callback(err);
|
|
@@ -34928,7 +34682,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34928
34682
|
}
|
|
34929
34683
|
return callback(null, {
|
|
34930
34684
|
"toCwd": srcpath,
|
|
34931
|
-
"toDst":
|
|
34685
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
34932
34686
|
});
|
|
34933
34687
|
});
|
|
34934
34688
|
}
|
|
@@ -34937,7 +34691,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34937
34691
|
}
|
|
34938
34692
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34939
34693
|
let exists;
|
|
34940
|
-
if (
|
|
34694
|
+
if (path.isAbsolute(srcpath)) {
|
|
34941
34695
|
exists = fs5.existsSync(srcpath);
|
|
34942
34696
|
if (!exists)
|
|
34943
34697
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -34946,8 +34700,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34946
34700
|
"toDst": srcpath
|
|
34947
34701
|
};
|
|
34948
34702
|
} else {
|
|
34949
|
-
const dstdir =
|
|
34950
|
-
const relativeToDst =
|
|
34703
|
+
const dstdir = path.dirname(dstpath);
|
|
34704
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34951
34705
|
exists = fs5.existsSync(relativeToDst);
|
|
34952
34706
|
if (exists) {
|
|
34953
34707
|
return {
|
|
@@ -34960,7 +34714,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34960
34714
|
throw new Error("relative srcpath does not exist");
|
|
34961
34715
|
return {
|
|
34962
34716
|
"toCwd": srcpath,
|
|
34963
|
-
"toDst":
|
|
34717
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
34964
34718
|
};
|
|
34965
34719
|
}
|
|
34966
34720
|
}
|
|
@@ -35012,7 +34766,7 @@ var require_symlink2 = __commonJS({
|
|
|
35012
34766
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
35013
34767
|
"use strict";
|
|
35014
34768
|
var u = require_universalify2().fromCallback;
|
|
35015
|
-
var
|
|
34769
|
+
var path = __require("path");
|
|
35016
34770
|
var fs5 = require_graceful_fs();
|
|
35017
34771
|
var _mkdirs = require_mkdirs3();
|
|
35018
34772
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -35039,7 +34793,7 @@ var require_symlink2 = __commonJS({
|
|
|
35039
34793
|
symlinkType(relative2.toCwd, type, (err3, type2) => {
|
|
35040
34794
|
if (err3)
|
|
35041
34795
|
return callback(err3);
|
|
35042
|
-
const dir =
|
|
34796
|
+
const dir = path.dirname(dstpath);
|
|
35043
34797
|
pathExists2(dir, (err4, dirExists) => {
|
|
35044
34798
|
if (err4)
|
|
35045
34799
|
return callback(err4);
|
|
@@ -35062,7 +34816,7 @@ var require_symlink2 = __commonJS({
|
|
|
35062
34816
|
const relative2 = symlinkPathsSync(srcpath, dstpath);
|
|
35063
34817
|
srcpath = relative2.toDst;
|
|
35064
34818
|
type = symlinkTypeSync(relative2.toCwd, type);
|
|
35065
|
-
const dir =
|
|
34819
|
+
const dir = path.dirname(dstpath);
|
|
35066
34820
|
const exists = fs5.existsSync(dir);
|
|
35067
34821
|
if (exists)
|
|
35068
34822
|
return fs5.symlinkSync(srcpath, dstpath, type);
|
|
@@ -35240,7 +34994,7 @@ var require_jsonfile4 = __commonJS({
|
|
|
35240
34994
|
var require_output_json2 = __commonJS({
|
|
35241
34995
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
|
|
35242
34996
|
"use strict";
|
|
35243
|
-
var
|
|
34997
|
+
var path = __require("path");
|
|
35244
34998
|
var mkdir2 = require_mkdirs3();
|
|
35245
34999
|
var pathExists2 = require_path_exists2().pathExists;
|
|
35246
35000
|
var jsonFile = require_jsonfile4();
|
|
@@ -35249,7 +35003,7 @@ var require_output_json2 = __commonJS({
|
|
|
35249
35003
|
callback = options;
|
|
35250
35004
|
options = {};
|
|
35251
35005
|
}
|
|
35252
|
-
const dir =
|
|
35006
|
+
const dir = path.dirname(file);
|
|
35253
35007
|
pathExists2(dir, (err, itDoes) => {
|
|
35254
35008
|
if (err)
|
|
35255
35009
|
return callback(err);
|
|
@@ -35271,11 +35025,11 @@ var require_output_json_sync2 = __commonJS({
|
|
|
35271
35025
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
|
|
35272
35026
|
"use strict";
|
|
35273
35027
|
var fs5 = require_graceful_fs();
|
|
35274
|
-
var
|
|
35028
|
+
var path = __require("path");
|
|
35275
35029
|
var mkdir2 = require_mkdirs3();
|
|
35276
35030
|
var jsonFile = require_jsonfile4();
|
|
35277
35031
|
function outputJsonSync(file, data, options) {
|
|
35278
|
-
const dir =
|
|
35032
|
+
const dir = path.dirname(file);
|
|
35279
35033
|
if (!fs5.existsSync(dir)) {
|
|
35280
35034
|
mkdir2.mkdirsSync(dir);
|
|
35281
35035
|
}
|
|
@@ -35308,7 +35062,7 @@ var require_move_sync3 = __commonJS({
|
|
|
35308
35062
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module) {
|
|
35309
35063
|
"use strict";
|
|
35310
35064
|
var fs5 = __require("fs");
|
|
35311
|
-
var
|
|
35065
|
+
var path = __require("path");
|
|
35312
35066
|
var copySync = require_copy_sync4().copySync;
|
|
35313
35067
|
var removeSync = require_remove2().removeSync;
|
|
35314
35068
|
var mkdirpSync = require_mkdirs3().mkdirpSync;
|
|
@@ -35318,7 +35072,7 @@ var require_move_sync3 = __commonJS({
|
|
|
35318
35072
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
35319
35073
|
const { srcStat } = stat2.checkPathsSync(src, dest, "move");
|
|
35320
35074
|
stat2.checkParentPathsSync(src, srcStat, dest, "move");
|
|
35321
|
-
mkdirpSync(
|
|
35075
|
+
mkdirpSync(path.dirname(dest));
|
|
35322
35076
|
return doRename(src, dest, overwrite);
|
|
35323
35077
|
}
|
|
35324
35078
|
function doRename(src, dest, overwrite) {
|
|
@@ -35366,7 +35120,7 @@ var require_move3 = __commonJS({
|
|
|
35366
35120
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
35367
35121
|
"use strict";
|
|
35368
35122
|
var fs5 = __require("fs");
|
|
35369
|
-
var
|
|
35123
|
+
var path = __require("path");
|
|
35370
35124
|
var copy = require_copy4().copy;
|
|
35371
35125
|
var remove = require_remove2().remove;
|
|
35372
35126
|
var mkdirp = require_mkdirs3().mkdirp;
|
|
@@ -35385,7 +35139,7 @@ var require_move3 = __commonJS({
|
|
|
35385
35139
|
stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
|
|
35386
35140
|
if (err2)
|
|
35387
35141
|
return cb(err2);
|
|
35388
|
-
mkdirp(
|
|
35142
|
+
mkdirp(path.dirname(dest), (err3) => {
|
|
35389
35143
|
if (err3)
|
|
35390
35144
|
return cb(err3);
|
|
35391
35145
|
return doRename(src, dest, overwrite, cb);
|
|
@@ -35450,7 +35204,7 @@ var require_output2 = __commonJS({
|
|
|
35450
35204
|
"use strict";
|
|
35451
35205
|
var u = require_universalify2().fromCallback;
|
|
35452
35206
|
var fs5 = require_graceful_fs();
|
|
35453
|
-
var
|
|
35207
|
+
var path = __require("path");
|
|
35454
35208
|
var mkdir2 = require_mkdirs3();
|
|
35455
35209
|
var pathExists2 = require_path_exists2().pathExists;
|
|
35456
35210
|
function outputFile2(file, data, encoding, callback) {
|
|
@@ -35458,7 +35212,7 @@ var require_output2 = __commonJS({
|
|
|
35458
35212
|
callback = encoding;
|
|
35459
35213
|
encoding = "utf8";
|
|
35460
35214
|
}
|
|
35461
|
-
const dir =
|
|
35215
|
+
const dir = path.dirname(file);
|
|
35462
35216
|
pathExists2(dir, (err, itDoes) => {
|
|
35463
35217
|
if (err)
|
|
35464
35218
|
return callback(err);
|
|
@@ -35472,7 +35226,7 @@ var require_output2 = __commonJS({
|
|
|
35472
35226
|
});
|
|
35473
35227
|
}
|
|
35474
35228
|
function outputFileSync(file, ...args) {
|
|
35475
|
-
const dir =
|
|
35229
|
+
const dir = path.dirname(file);
|
|
35476
35230
|
if (fs5.existsSync(dir)) {
|
|
35477
35231
|
return fs5.writeFileSync(file, ...args);
|
|
35478
35232
|
}
|
|
@@ -35487,7 +35241,7 @@ var require_output2 = __commonJS({
|
|
|
35487
35241
|
});
|
|
35488
35242
|
|
|
35489
35243
|
// ../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/index.js
|
|
35490
|
-
var
|
|
35244
|
+
var require_lib5 = __commonJS({
|
|
35491
35245
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/index.js"(exports, module) {
|
|
35492
35246
|
"use strict";
|
|
35493
35247
|
module.exports = Object.assign(
|
|
@@ -35519,7 +35273,7 @@ var require_lib7 = __commonJS({
|
|
|
35519
35273
|
});
|
|
35520
35274
|
|
|
35521
35275
|
// ../../node_modules/.pnpm/async-sema@3.0.0/node_modules/async-sema/lib/index.js
|
|
35522
|
-
var
|
|
35276
|
+
var require_lib6 = __commonJS({
|
|
35523
35277
|
"../../node_modules/.pnpm/async-sema@3.0.0/node_modules/async-sema/lib/index.js"(exports) {
|
|
35524
35278
|
"use strict";
|
|
35525
35279
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -35719,8 +35473,8 @@ var require_hashes = __commonJS({
|
|
|
35719
35473
|
});
|
|
35720
35474
|
module.exports = __toCommonJS2(hashes_exports);
|
|
35721
35475
|
var import_crypto = __require("crypto");
|
|
35722
|
-
var import_fs_extra9 = __toESM2(
|
|
35723
|
-
var import_async_sema =
|
|
35476
|
+
var import_fs_extra9 = __toESM2(require_lib5());
|
|
35477
|
+
var import_async_sema = require_lib6();
|
|
35724
35478
|
function hash(buf) {
|
|
35725
35479
|
return (0, import_crypto.createHash)("sha1").update(Uint8Array.from(buf)).digest("hex");
|
|
35726
35480
|
}
|
|
@@ -35896,7 +35650,7 @@ var require_cjs = __commonJS({
|
|
|
35896
35650
|
});
|
|
35897
35651
|
|
|
35898
35652
|
// ../../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js
|
|
35899
|
-
var
|
|
35653
|
+
var require_lib7 = __commonJS({
|
|
35900
35654
|
"../../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js"(exports, module) {
|
|
35901
35655
|
"use strict";
|
|
35902
35656
|
var conversions = {};
|
|
@@ -36632,14 +36386,14 @@ var require_url_state_machine = __commonJS({
|
|
|
36632
36386
|
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
36633
36387
|
}
|
|
36634
36388
|
function shortenPath(url) {
|
|
36635
|
-
const
|
|
36636
|
-
if (
|
|
36389
|
+
const path = url.path;
|
|
36390
|
+
if (path.length === 0) {
|
|
36637
36391
|
return;
|
|
36638
36392
|
}
|
|
36639
|
-
if (url.scheme === "file" &&
|
|
36393
|
+
if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
|
|
36640
36394
|
return;
|
|
36641
36395
|
}
|
|
36642
|
-
|
|
36396
|
+
path.pop();
|
|
36643
36397
|
}
|
|
36644
36398
|
function includesCredentials(url) {
|
|
36645
36399
|
return url.username !== "" || url.password !== "";
|
|
@@ -37475,7 +37229,7 @@ var require_URL_impl = __commonJS({
|
|
|
37475
37229
|
var require_URL = __commonJS({
|
|
37476
37230
|
"../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js"(exports, module) {
|
|
37477
37231
|
"use strict";
|
|
37478
|
-
var conversions =
|
|
37232
|
+
var conversions = require_lib7();
|
|
37479
37233
|
var utils = require_utils4();
|
|
37480
37234
|
var Impl = require_URL_impl();
|
|
37481
37235
|
var impl = utils.implSymbol;
|
|
@@ -37671,7 +37425,7 @@ var require_public_api = __commonJS({
|
|
|
37671
37425
|
});
|
|
37672
37426
|
|
|
37673
37427
|
// ../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js
|
|
37674
|
-
var
|
|
37428
|
+
var require_lib8 = __commonJS({
|
|
37675
37429
|
"../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js"(exports, module) {
|
|
37676
37430
|
"use strict";
|
|
37677
37431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -39101,34 +38855,34 @@ var require_ignore = __commonJS({
|
|
|
39101
38855
|
}
|
|
39102
38856
|
}
|
|
39103
38857
|
filter(paths) {
|
|
39104
|
-
return make_array(paths).filter((
|
|
38858
|
+
return make_array(paths).filter((path) => this._filter(path));
|
|
39105
38859
|
}
|
|
39106
38860
|
createFilter() {
|
|
39107
|
-
return (
|
|
38861
|
+
return (path) => this._filter(path);
|
|
39108
38862
|
}
|
|
39109
|
-
ignores(
|
|
39110
|
-
return !this._filter(
|
|
38863
|
+
ignores(path) {
|
|
38864
|
+
return !this._filter(path);
|
|
39111
38865
|
}
|
|
39112
38866
|
// @returns `Boolean` true if the `path` is NOT ignored
|
|
39113
|
-
_filter(
|
|
39114
|
-
if (!
|
|
38867
|
+
_filter(path, slices) {
|
|
38868
|
+
if (!path) {
|
|
39115
38869
|
return false;
|
|
39116
38870
|
}
|
|
39117
|
-
if (
|
|
39118
|
-
return this._cache[
|
|
38871
|
+
if (path in this._cache) {
|
|
38872
|
+
return this._cache[path];
|
|
39119
38873
|
}
|
|
39120
38874
|
if (!slices) {
|
|
39121
|
-
slices =
|
|
38875
|
+
slices = path.split(SLASH);
|
|
39122
38876
|
}
|
|
39123
38877
|
slices.pop();
|
|
39124
|
-
return this._cache[
|
|
38878
|
+
return this._cache[path] = slices.length ? this._filter(slices.join(SLASH) + SLASH, slices) && this._test(path) : this._test(path);
|
|
39125
38879
|
}
|
|
39126
38880
|
// @returns {Boolean} true if a file is NOT ignored
|
|
39127
|
-
_test(
|
|
38881
|
+
_test(path) {
|
|
39128
38882
|
let matched = 0;
|
|
39129
38883
|
this._rules.forEach((rule) => {
|
|
39130
38884
|
if (!(matched ^ rule.negative)) {
|
|
39131
|
-
matched = rule.negative ^ rule.regex.test(
|
|
38885
|
+
matched = rule.negative ^ rule.regex.test(path);
|
|
39132
38886
|
}
|
|
39133
38887
|
});
|
|
39134
38888
|
return !matched;
|
|
@@ -39140,9 +38894,9 @@ var require_ignore = __commonJS({
|
|
|
39140
38894
|
) {
|
|
39141
38895
|
const filter = IgnoreBase.prototype._filter;
|
|
39142
38896
|
const make_posix = (str) => /^\\\\\?\\/.test(str) || /[^\x00-\x80]+/.test(str) ? str : str.replace(/\\/g, "/");
|
|
39143
|
-
IgnoreBase.prototype._filter = function filterWin32(
|
|
39144
|
-
|
|
39145
|
-
return filter.call(this,
|
|
38897
|
+
IgnoreBase.prototype._filter = function filterWin32(path, slices) {
|
|
38898
|
+
path = make_posix(path);
|
|
38899
|
+
return filter.call(this, path, slices);
|
|
39146
38900
|
};
|
|
39147
38901
|
}
|
|
39148
38902
|
module.exports = (options) => new IgnoreBase(options);
|
|
@@ -39154,7 +38908,7 @@ var require_package = __commonJS({
|
|
|
39154
38908
|
"../client/package.json"(exports, module) {
|
|
39155
38909
|
module.exports = {
|
|
39156
38910
|
name: "@vercel/client",
|
|
39157
|
-
version: "17.4.
|
|
38911
|
+
version: "17.4.1",
|
|
39158
38912
|
main: "dist/index.js",
|
|
39159
38913
|
typings: "dist/index.d.ts",
|
|
39160
38914
|
homepage: "https://vercel.com",
|
|
@@ -39169,7 +38923,7 @@ var require_package = __commonJS({
|
|
|
39169
38923
|
},
|
|
39170
38924
|
scripts: {
|
|
39171
38925
|
build: "node ../../utils/build.mjs",
|
|
39172
|
-
test: "
|
|
38926
|
+
test: "vitest run --config ../../vitest.config.mts",
|
|
39173
38927
|
"vitest-run": "vitest -c ./vitest.config.mts",
|
|
39174
38928
|
"vitest-unit": "glob --absolute 'tests/unit.*.test.ts'",
|
|
39175
38929
|
"vitest-e2e": "glob --absolute 'tests/integration-*.test.ts'",
|
|
@@ -39181,14 +38935,12 @@ var require_package = __commonJS({
|
|
|
39181
38935
|
devDependencies: {
|
|
39182
38936
|
"@types/async-retry": "1.4.5",
|
|
39183
38937
|
"@types/fs-extra": "7.0.0",
|
|
39184
|
-
"@types/jest": "27.4.1",
|
|
39185
38938
|
"@types/minimatch": "3.0.5",
|
|
39186
38939
|
"@types/ms": "0.7.30",
|
|
39187
38940
|
"@types/node": "20.11.0",
|
|
39188
38941
|
"@types/node-fetch": "2.5.4",
|
|
39189
38942
|
"@types/recursive-readdir": "2.2.0",
|
|
39190
38943
|
"@types/tar-fs": "1.16.1",
|
|
39191
|
-
"jest-junit": "16.0.0",
|
|
39192
38944
|
vitest: "2.0.1"
|
|
39193
38945
|
},
|
|
39194
38946
|
dependencies: {
|
|
@@ -39279,12 +39031,12 @@ var require_readdir_recursive = __commonJS({
|
|
|
39279
39031
|
});
|
|
39280
39032
|
module.exports = __toCommonJS2(readdir_recursive_exports);
|
|
39281
39033
|
var import_fs4 = __toESM2(__require("fs"));
|
|
39282
|
-
var
|
|
39034
|
+
var import_path11 = __toESM2(__require("path"));
|
|
39283
39035
|
var import_minimatch = __toESM2(require_minimatch2());
|
|
39284
39036
|
function patternMatcher(pattern) {
|
|
39285
|
-
return function(
|
|
39037
|
+
return function(path, stats) {
|
|
39286
39038
|
const minimatcher = new import_minimatch.default.Minimatch(pattern, { matchBase: true });
|
|
39287
|
-
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(
|
|
39039
|
+
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(path);
|
|
39288
39040
|
};
|
|
39289
39041
|
}
|
|
39290
39042
|
function toMatcherFunction(ignoreEntry) {
|
|
@@ -39294,11 +39046,11 @@ var require_readdir_recursive = __commonJS({
|
|
|
39294
39046
|
return patternMatcher(ignoreEntry);
|
|
39295
39047
|
}
|
|
39296
39048
|
}
|
|
39297
|
-
function readdir(
|
|
39049
|
+
function readdir(path, ignores) {
|
|
39298
39050
|
ignores = ignores.map(toMatcherFunction);
|
|
39299
39051
|
let list2 = [];
|
|
39300
39052
|
return new Promise(function(resolve4, reject) {
|
|
39301
|
-
import_fs4.default.readdir(
|
|
39053
|
+
import_fs4.default.readdir(path, function(err, files) {
|
|
39302
39054
|
if (err) {
|
|
39303
39055
|
return reject(err);
|
|
39304
39056
|
}
|
|
@@ -39307,7 +39059,7 @@ var require_readdir_recursive = __commonJS({
|
|
|
39307
39059
|
return resolve4(list2);
|
|
39308
39060
|
}
|
|
39309
39061
|
files.forEach(function(file) {
|
|
39310
|
-
const filePath =
|
|
39062
|
+
const filePath = import_path11.default.join(path, file);
|
|
39311
39063
|
import_fs4.default.lstat(filePath, function(_err, stats) {
|
|
39312
39064
|
if (_err) {
|
|
39313
39065
|
return reject(_err);
|
|
@@ -40257,12 +40009,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
|
40257
40009
|
}
|
|
40258
40010
|
return result;
|
|
40259
40011
|
}
|
|
40260
|
-
function findNodeAtLocation(root,
|
|
40012
|
+
function findNodeAtLocation(root, path) {
|
|
40261
40013
|
if (!root) {
|
|
40262
40014
|
return void 0;
|
|
40263
40015
|
}
|
|
40264
40016
|
let node = root;
|
|
40265
|
-
for (let segment of
|
|
40017
|
+
for (let segment of path) {
|
|
40266
40018
|
if (typeof segment === "string") {
|
|
40267
40019
|
if (node.type !== "object" || !Array.isArray(node.children)) {
|
|
40268
40020
|
return void 0;
|
|
@@ -40292,17 +40044,17 @@ function getNodePath(node) {
|
|
|
40292
40044
|
if (!node.parent || !node.parent.children) {
|
|
40293
40045
|
return [];
|
|
40294
40046
|
}
|
|
40295
|
-
const
|
|
40047
|
+
const path = getNodePath(node.parent);
|
|
40296
40048
|
if (node.parent.type === "property") {
|
|
40297
40049
|
const key = node.parent.children[0].value;
|
|
40298
|
-
|
|
40050
|
+
path.push(key);
|
|
40299
40051
|
} else if (node.parent.type === "array") {
|
|
40300
40052
|
const index = node.parent.children.indexOf(node);
|
|
40301
40053
|
if (index !== -1) {
|
|
40302
|
-
|
|
40054
|
+
path.push(index);
|
|
40303
40055
|
}
|
|
40304
40056
|
}
|
|
40305
|
-
return
|
|
40057
|
+
return path;
|
|
40306
40058
|
}
|
|
40307
40059
|
function getNodeValue(node) {
|
|
40308
40060
|
switch (node.type) {
|
|
@@ -40705,14 +40457,14 @@ var init_parser = __esm({
|
|
|
40705
40457
|
|
|
40706
40458
|
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
40707
40459
|
function setProperty(text, originalPath, value, options) {
|
|
40708
|
-
const
|
|
40460
|
+
const path = originalPath.slice();
|
|
40709
40461
|
const errors = [];
|
|
40710
40462
|
const root = parseTree(text, errors);
|
|
40711
40463
|
let parent = void 0;
|
|
40712
40464
|
let lastSegment = void 0;
|
|
40713
|
-
while (
|
|
40714
|
-
lastSegment =
|
|
40715
|
-
parent = findNodeAtLocation(root,
|
|
40465
|
+
while (path.length > 0) {
|
|
40466
|
+
lastSegment = path.pop();
|
|
40467
|
+
parent = findNodeAtLocation(root, path);
|
|
40716
40468
|
if (parent === void 0 && value !== void 0) {
|
|
40717
40469
|
if (typeof lastSegment === "string") {
|
|
40718
40470
|
value = { [lastSegment]: value };
|
|
@@ -40915,8 +40667,8 @@ function printParseErrorCode(code2) {
|
|
|
40915
40667
|
function format2(documentText, range, options) {
|
|
40916
40668
|
return format(documentText, range, options);
|
|
40917
40669
|
}
|
|
40918
|
-
function modify(text,
|
|
40919
|
-
return setProperty(text,
|
|
40670
|
+
function modify(text, path, value, options) {
|
|
40671
|
+
return setProperty(text, path, value, options);
|
|
40920
40672
|
}
|
|
40921
40673
|
function applyEdits(text, edits) {
|
|
40922
40674
|
let sortedEdits = edits.slice(0).sort((a, b) => {
|
|
@@ -41077,7 +40829,7 @@ var require_path2 = __commonJS({
|
|
|
41077
40829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41078
40830
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
41079
40831
|
var os2 = __require("os");
|
|
41080
|
-
var
|
|
40832
|
+
var path = __require("path");
|
|
41081
40833
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
41082
40834
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
41083
40835
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
@@ -41089,7 +40841,7 @@ var require_path2 = __commonJS({
|
|
|
41089
40841
|
}
|
|
41090
40842
|
exports.unixify = unixify;
|
|
41091
40843
|
function makeAbsolute(cwd, filepath) {
|
|
41092
|
-
return
|
|
40844
|
+
return path.resolve(cwd, filepath);
|
|
41093
40845
|
}
|
|
41094
40846
|
exports.makeAbsolute = makeAbsolute;
|
|
41095
40847
|
function removeLeadingDotSegment(entry) {
|
|
@@ -42415,7 +42167,7 @@ var require_braces = __commonJS({
|
|
|
42415
42167
|
var require_constants2 = __commonJS({
|
|
42416
42168
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
42417
42169
|
"use strict";
|
|
42418
|
-
var
|
|
42170
|
+
var path = __require("path");
|
|
42419
42171
|
var WIN_SLASH = "\\\\/";
|
|
42420
42172
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
42421
42173
|
var DOT_LITERAL = "\\.";
|
|
@@ -42585,7 +42337,7 @@ var require_constants2 = __commonJS({
|
|
|
42585
42337
|
/* | */
|
|
42586
42338
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
42587
42339
|
/* \uFEFF */
|
|
42588
|
-
SEP:
|
|
42340
|
+
SEP: path.sep,
|
|
42589
42341
|
/**
|
|
42590
42342
|
* Create EXTGLOB_CHARS
|
|
42591
42343
|
*/
|
|
@@ -42612,7 +42364,7 @@ var require_constants2 = __commonJS({
|
|
|
42612
42364
|
var require_utils6 = __commonJS({
|
|
42613
42365
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
42614
42366
|
"use strict";
|
|
42615
|
-
var
|
|
42367
|
+
var path = __require("path");
|
|
42616
42368
|
var win32 = process.platform === "win32";
|
|
42617
42369
|
var {
|
|
42618
42370
|
REGEX_BACKSLASH,
|
|
@@ -42641,7 +42393,7 @@ var require_utils6 = __commonJS({
|
|
|
42641
42393
|
if (options && typeof options.windows === "boolean") {
|
|
42642
42394
|
return options.windows;
|
|
42643
42395
|
}
|
|
42644
|
-
return win32 === true ||
|
|
42396
|
+
return win32 === true || path.sep === "\\";
|
|
42645
42397
|
};
|
|
42646
42398
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
42647
42399
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -43789,7 +43541,7 @@ var require_parse3 = __commonJS({
|
|
|
43789
43541
|
var require_picomatch = __commonJS({
|
|
43790
43542
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
43791
43543
|
"use strict";
|
|
43792
|
-
var
|
|
43544
|
+
var path = __require("path");
|
|
43793
43545
|
var scan = require_scan();
|
|
43794
43546
|
var parse3 = require_parse3();
|
|
43795
43547
|
var utils = require_utils6();
|
|
@@ -43875,7 +43627,7 @@ var require_picomatch = __commonJS({
|
|
|
43875
43627
|
};
|
|
43876
43628
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
43877
43629
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
43878
|
-
return regex.test(
|
|
43630
|
+
return regex.test(path.basename(input));
|
|
43879
43631
|
};
|
|
43880
43632
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
43881
43633
|
picomatch.parse = (pattern, options) => {
|
|
@@ -44110,7 +43862,7 @@ var require_pattern2 = __commonJS({
|
|
|
44110
43862
|
"use strict";
|
|
44111
43863
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44112
43864
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
44113
|
-
var
|
|
43865
|
+
var path = __require("path");
|
|
44114
43866
|
var globParent = require_glob_parent();
|
|
44115
43867
|
var micromatch = require_micromatch();
|
|
44116
43868
|
var GLOBSTAR = "**";
|
|
@@ -44205,7 +43957,7 @@ var require_pattern2 = __commonJS({
|
|
|
44205
43957
|
}
|
|
44206
43958
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
44207
43959
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
44208
|
-
const basename4 =
|
|
43960
|
+
const basename4 = path.basename(pattern);
|
|
44209
43961
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename4);
|
|
44210
43962
|
}
|
|
44211
43963
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -44263,7 +44015,7 @@ var require_pattern2 = __commonJS({
|
|
|
44263
44015
|
}
|
|
44264
44016
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
44265
44017
|
function isAbsolute(pattern) {
|
|
44266
|
-
return
|
|
44018
|
+
return path.isAbsolute(pattern);
|
|
44267
44019
|
}
|
|
44268
44020
|
exports.isAbsolute = isAbsolute;
|
|
44269
44021
|
}
|
|
@@ -44440,8 +44192,8 @@ var require_utils7 = __commonJS({
|
|
|
44440
44192
|
exports.errno = errno;
|
|
44441
44193
|
var fs5 = require_fs4();
|
|
44442
44194
|
exports.fs = fs5;
|
|
44443
|
-
var
|
|
44444
|
-
exports.path =
|
|
44195
|
+
var path = require_path2();
|
|
44196
|
+
exports.path = path;
|
|
44445
44197
|
var pattern = require_pattern2();
|
|
44446
44198
|
exports.pattern = pattern;
|
|
44447
44199
|
var stream = require_stream();
|
|
@@ -44553,8 +44305,8 @@ var require_async2 = __commonJS({
|
|
|
44553
44305
|
"use strict";
|
|
44554
44306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44555
44307
|
exports.read = void 0;
|
|
44556
|
-
function read(
|
|
44557
|
-
settings.fs.lstat(
|
|
44308
|
+
function read(path, settings, callback) {
|
|
44309
|
+
settings.fs.lstat(path, (lstatError, lstat2) => {
|
|
44558
44310
|
if (lstatError !== null) {
|
|
44559
44311
|
callFailureCallback(callback, lstatError);
|
|
44560
44312
|
return;
|
|
@@ -44563,7 +44315,7 @@ var require_async2 = __commonJS({
|
|
|
44563
44315
|
callSuccessCallback(callback, lstat2);
|
|
44564
44316
|
return;
|
|
44565
44317
|
}
|
|
44566
|
-
settings.fs.stat(
|
|
44318
|
+
settings.fs.stat(path, (statError, stat2) => {
|
|
44567
44319
|
if (statError !== null) {
|
|
44568
44320
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
44569
44321
|
callFailureCallback(callback, statError);
|
|
@@ -44595,13 +44347,13 @@ var require_sync2 = __commonJS({
|
|
|
44595
44347
|
"use strict";
|
|
44596
44348
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44597
44349
|
exports.read = void 0;
|
|
44598
|
-
function read(
|
|
44599
|
-
const lstat2 = settings.fs.lstatSync(
|
|
44350
|
+
function read(path, settings) {
|
|
44351
|
+
const lstat2 = settings.fs.lstatSync(path);
|
|
44600
44352
|
if (!lstat2.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
44601
44353
|
return lstat2;
|
|
44602
44354
|
}
|
|
44603
44355
|
try {
|
|
44604
|
-
const stat2 = settings.fs.statSync(
|
|
44356
|
+
const stat2 = settings.fs.statSync(path);
|
|
44605
44357
|
if (settings.markSymbolicLink) {
|
|
44606
44358
|
stat2.isSymbolicLink = () => true;
|
|
44607
44359
|
}
|
|
@@ -44672,17 +44424,17 @@ var require_out = __commonJS({
|
|
|
44672
44424
|
var sync = require_sync2();
|
|
44673
44425
|
var settings_1 = require_settings();
|
|
44674
44426
|
exports.Settings = settings_1.default;
|
|
44675
|
-
function stat2(
|
|
44427
|
+
function stat2(path, optionsOrSettingsOrCallback, callback) {
|
|
44676
44428
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
44677
|
-
async.read(
|
|
44429
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
44678
44430
|
return;
|
|
44679
44431
|
}
|
|
44680
|
-
async.read(
|
|
44432
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
44681
44433
|
}
|
|
44682
44434
|
exports.stat = stat2;
|
|
44683
|
-
function statSync(
|
|
44435
|
+
function statSync(path, optionsOrSettings) {
|
|
44684
44436
|
const settings = getSettings(optionsOrSettings);
|
|
44685
|
-
return sync.read(
|
|
44437
|
+
return sync.read(path, settings);
|
|
44686
44438
|
}
|
|
44687
44439
|
exports.statSync = statSync;
|
|
44688
44440
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -44901,16 +44653,16 @@ var require_async3 = __commonJS({
|
|
|
44901
44653
|
return;
|
|
44902
44654
|
}
|
|
44903
44655
|
const tasks = names.map((name) => {
|
|
44904
|
-
const
|
|
44656
|
+
const path = common2.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
44905
44657
|
return (done) => {
|
|
44906
|
-
fsStat.stat(
|
|
44658
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
44907
44659
|
if (error !== null) {
|
|
44908
44660
|
done(error);
|
|
44909
44661
|
return;
|
|
44910
44662
|
}
|
|
44911
44663
|
const entry = {
|
|
44912
44664
|
name,
|
|
44913
|
-
path
|
|
44665
|
+
path,
|
|
44914
44666
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
44915
44667
|
};
|
|
44916
44668
|
if (settings.stats) {
|
|
@@ -45028,7 +44780,7 @@ var require_settings2 = __commonJS({
|
|
|
45028
44780
|
"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
45029
44781
|
"use strict";
|
|
45030
44782
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45031
|
-
var
|
|
44783
|
+
var path = __require("path");
|
|
45032
44784
|
var fsStat = require_out();
|
|
45033
44785
|
var fs5 = require_fs7();
|
|
45034
44786
|
var Settings = class {
|
|
@@ -45036,7 +44788,7 @@ var require_settings2 = __commonJS({
|
|
|
45036
44788
|
this._options = _options;
|
|
45037
44789
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
45038
44790
|
this.fs = fs5.createFileSystemAdapter(this._options.fs);
|
|
45039
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
44791
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
45040
44792
|
this.stats = this._getValue(this._options.stats, false);
|
|
45041
44793
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
45042
44794
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -45063,17 +44815,17 @@ var require_out2 = __commonJS({
|
|
|
45063
44815
|
var sync = require_sync3();
|
|
45064
44816
|
var settings_1 = require_settings2();
|
|
45065
44817
|
exports.Settings = settings_1.default;
|
|
45066
|
-
function scandir(
|
|
44818
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
45067
44819
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45068
|
-
async.read(
|
|
44820
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
45069
44821
|
return;
|
|
45070
44822
|
}
|
|
45071
|
-
async.read(
|
|
44823
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45072
44824
|
}
|
|
45073
44825
|
exports.scandir = scandir;
|
|
45074
|
-
function scandirSync(
|
|
44826
|
+
function scandirSync(path, optionsOrSettings) {
|
|
45075
44827
|
const settings = getSettings(optionsOrSettings);
|
|
45076
|
-
return sync.read(
|
|
44828
|
+
return sync.read(path, settings);
|
|
45077
44829
|
}
|
|
45078
44830
|
exports.scandirSync = scandirSync;
|
|
45079
44831
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -45700,7 +45452,7 @@ var require_settings3 = __commonJS({
|
|
|
45700
45452
|
"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
45701
45453
|
"use strict";
|
|
45702
45454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45703
|
-
var
|
|
45455
|
+
var path = __require("path");
|
|
45704
45456
|
var fsScandir = require_out2();
|
|
45705
45457
|
var Settings = class {
|
|
45706
45458
|
constructor(_options = {}) {
|
|
@@ -45710,7 +45462,7 @@ var require_settings3 = __commonJS({
|
|
|
45710
45462
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
45711
45463
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
45712
45464
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
45713
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
45465
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
45714
45466
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
45715
45467
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
45716
45468
|
fs: this._options.fs,
|
|
@@ -45772,7 +45524,7 @@ var require_reader2 = __commonJS({
|
|
|
45772
45524
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
45773
45525
|
"use strict";
|
|
45774
45526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45775
|
-
var
|
|
45527
|
+
var path = __require("path");
|
|
45776
45528
|
var fsStat = require_out();
|
|
45777
45529
|
var utils = require_utils7();
|
|
45778
45530
|
var Reader = class {
|
|
@@ -45785,7 +45537,7 @@ var require_reader2 = __commonJS({
|
|
|
45785
45537
|
});
|
|
45786
45538
|
}
|
|
45787
45539
|
_getFullEntryPath(filepath) {
|
|
45788
|
-
return
|
|
45540
|
+
return path.resolve(this._settings.cwd, filepath);
|
|
45789
45541
|
}
|
|
45790
45542
|
_makeEntry(stats, pattern) {
|
|
45791
45543
|
const entry = {
|
|
@@ -46201,7 +45953,7 @@ var require_provider = __commonJS({
|
|
|
46201
45953
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
46202
45954
|
"use strict";
|
|
46203
45955
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46204
|
-
var
|
|
45956
|
+
var path = __require("path");
|
|
46205
45957
|
var deep_1 = require_deep();
|
|
46206
45958
|
var entry_1 = require_entry();
|
|
46207
45959
|
var error_1 = require_error();
|
|
@@ -46215,7 +45967,7 @@ var require_provider = __commonJS({
|
|
|
46215
45967
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
46216
45968
|
}
|
|
46217
45969
|
_getRootDirectory(task) {
|
|
46218
|
-
return
|
|
45970
|
+
return path.resolve(this._settings.cwd, task.base);
|
|
46219
45971
|
}
|
|
46220
45972
|
_getReaderOptions(task) {
|
|
46221
45973
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -46588,7 +46340,7 @@ var require_utils9 = __commonJS({
|
|
|
46588
46340
|
inferMicrofrontendsLocation: () => inferMicrofrontendsLocation
|
|
46589
46341
|
});
|
|
46590
46342
|
module.exports = __toCommonJS2(utils_exports);
|
|
46591
|
-
var
|
|
46343
|
+
var import_node_fs2 = __toESM2(__require("fs"), 1);
|
|
46592
46344
|
var import_node_path2 = __require("path");
|
|
46593
46345
|
var CONFIGURATION_FILENAMES = [
|
|
46594
46346
|
"microfrontends.jsonc",
|
|
@@ -46597,14 +46349,14 @@ var require_utils9 = __commonJS({
|
|
|
46597
46349
|
function findConfig({ dir }) {
|
|
46598
46350
|
for (const filename of CONFIGURATION_FILENAMES) {
|
|
46599
46351
|
const maybeConfig = (0, import_node_path2.join)(dir, filename);
|
|
46600
|
-
if (
|
|
46352
|
+
if (import_node_fs2.default.existsSync(maybeConfig)) {
|
|
46601
46353
|
return maybeConfig;
|
|
46602
46354
|
}
|
|
46603
46355
|
}
|
|
46604
46356
|
return null;
|
|
46605
46357
|
}
|
|
46606
46358
|
var import_node_path22 = __require("path");
|
|
46607
|
-
var
|
|
46359
|
+
var import_node_fs22 = __require("fs");
|
|
46608
46360
|
var import_jsonc_parser = (init_main(), __toCommonJS(main_exports));
|
|
46609
46361
|
var import_fast_glob = __toESM2(require_out4(), 1);
|
|
46610
46362
|
var MicrofrontendError = class extends Error {
|
|
@@ -46716,7 +46468,7 @@ var require_utils9 = __commonJS({
|
|
|
46716
46468
|
const matchingPaths = [];
|
|
46717
46469
|
for (const microfrontendsJsonPath of microfrontendsJsonPaths) {
|
|
46718
46470
|
try {
|
|
46719
|
-
const microfrontendsJsonContent = (0,
|
|
46471
|
+
const microfrontendsJsonContent = (0, import_node_fs22.readFileSync)(
|
|
46720
46472
|
microfrontendsJsonPath,
|
|
46721
46473
|
"utf-8"
|
|
46722
46474
|
);
|
|
@@ -46816,14 +46568,14 @@ var require_utils10 = __commonJS({
|
|
|
46816
46568
|
prepareFiles: () => prepareFiles
|
|
46817
46569
|
});
|
|
46818
46570
|
module.exports = __toCommonJS2(utils_exports);
|
|
46819
|
-
var import_node_fetch = __toESM2(
|
|
46820
|
-
var
|
|
46571
|
+
var import_node_fetch = __toESM2(require_lib8());
|
|
46572
|
+
var import_path11 = __require("path");
|
|
46821
46573
|
var import_url4 = __require("url");
|
|
46822
46574
|
var import_ignore = __toESM2(require_ignore());
|
|
46823
46575
|
var import_pkg = require_pkg();
|
|
46824
46576
|
var import_build_utils5 = __require("@vercel/build-utils");
|
|
46825
|
-
var import_async_sema =
|
|
46826
|
-
var import_fs_extra9 =
|
|
46577
|
+
var import_async_sema = require_lib6();
|
|
46578
|
+
var import_fs_extra9 = require_lib5();
|
|
46827
46579
|
var import_readdir_recursive = __toESM2(require_readdir_recursive());
|
|
46828
46580
|
var import_utils4 = require_utils9();
|
|
46829
46581
|
var semaphore = new import_async_sema.Sema(10);
|
|
@@ -46871,14 +46623,14 @@ var require_utils10 = __commonJS({
|
|
|
46871
46623
|
return {};
|
|
46872
46624
|
}
|
|
46873
46625
|
}
|
|
46874
|
-
var maybeRead = async function(
|
|
46626
|
+
var maybeRead = async function(path, default_) {
|
|
46875
46627
|
try {
|
|
46876
|
-
return await (0, import_fs_extra9.readFile)(
|
|
46628
|
+
return await (0, import_fs_extra9.readFile)(path, "utf8");
|
|
46877
46629
|
} catch (_err) {
|
|
46878
46630
|
return default_;
|
|
46879
46631
|
}
|
|
46880
46632
|
};
|
|
46881
|
-
async function buildFileTree2(
|
|
46633
|
+
async function buildFileTree2(path, {
|
|
46882
46634
|
isDirectory: isDirectory2,
|
|
46883
46635
|
prebuilt,
|
|
46884
46636
|
vercelOutputDir,
|
|
@@ -46888,23 +46640,23 @@ var require_utils10 = __commonJS({
|
|
|
46888
46640
|
}, debug) {
|
|
46889
46641
|
const ignoreList = [];
|
|
46890
46642
|
let fileList;
|
|
46891
|
-
let { ig, ignores } = await getVercelIgnore2(
|
|
46643
|
+
let { ig, ignores } = await getVercelIgnore2(path, prebuilt, vercelOutputDir);
|
|
46892
46644
|
debug(`Found ${ignores.length} rules in .vercelignore`);
|
|
46893
46645
|
debug("Building file tree...");
|
|
46894
|
-
if (isDirectory2 && !Array.isArray(
|
|
46646
|
+
if (isDirectory2 && !Array.isArray(path)) {
|
|
46895
46647
|
const ignores2 = (absPath) => {
|
|
46896
|
-
const rel = (0,
|
|
46648
|
+
const rel = (0, import_path11.relative)(path, absPath);
|
|
46897
46649
|
const ignored = ig.ignores(rel);
|
|
46898
46650
|
if (ignored) {
|
|
46899
46651
|
ignoreList.push(rel);
|
|
46900
46652
|
}
|
|
46901
46653
|
return ignored;
|
|
46902
46654
|
};
|
|
46903
|
-
fileList = await (0, import_readdir_recursive.default)(
|
|
46655
|
+
fileList = await (0, import_readdir_recursive.default)(path, [ignores2]);
|
|
46904
46656
|
const refs = /* @__PURE__ */ new Set();
|
|
46905
46657
|
if (prebuilt) {
|
|
46906
46658
|
const vcConfigFilePaths = fileList.filter(
|
|
46907
|
-
(file) => (0,
|
|
46659
|
+
(file) => (0, import_path11.basename)(file) === ".vc-config.json"
|
|
46908
46660
|
);
|
|
46909
46661
|
await Promise.all(
|
|
46910
46662
|
vcConfigFilePaths.map(async (p) => {
|
|
@@ -46913,18 +46665,18 @@ var require_utils10 = __commonJS({
|
|
|
46913
46665
|
if (!config.filePathMap)
|
|
46914
46666
|
return;
|
|
46915
46667
|
for (const v of Object.values(config.filePathMap)) {
|
|
46916
|
-
refs.add((0,
|
|
46668
|
+
refs.add((0, import_path11.join)(path, v));
|
|
46917
46669
|
}
|
|
46918
46670
|
})
|
|
46919
46671
|
);
|
|
46920
46672
|
try {
|
|
46921
46673
|
let microfrontendConfigPath = (0, import_utils4.findConfig)({
|
|
46922
|
-
dir: (0,
|
|
46674
|
+
dir: (0, import_path11.join)(path, rootDirectory || "")
|
|
46923
46675
|
});
|
|
46924
46676
|
if (!microfrontendConfigPath && !rootDirectory && projectName) {
|
|
46925
46677
|
microfrontendConfigPath = (0, import_utils4.findConfig)({
|
|
46926
46678
|
dir: (0, import_utils4.inferMicrofrontendsLocation)({
|
|
46927
|
-
repositoryRoot:
|
|
46679
|
+
repositoryRoot: path,
|
|
46928
46680
|
applicationName: projectName
|
|
46929
46681
|
})
|
|
46930
46682
|
});
|
|
@@ -46937,7 +46689,7 @@ var require_utils10 = __commonJS({
|
|
|
46937
46689
|
}
|
|
46938
46690
|
}
|
|
46939
46691
|
try {
|
|
46940
|
-
const routesJsonPath = (0,
|
|
46692
|
+
const routesJsonPath = (0, import_path11.join)(path, ".vercel", "routes.json");
|
|
46941
46693
|
const routesJsonContent = await maybeRead(routesJsonPath, null);
|
|
46942
46694
|
if (routesJsonContent !== null) {
|
|
46943
46695
|
refs.add(routesJsonPath);
|
|
@@ -46948,13 +46700,13 @@ var require_utils10 = __commonJS({
|
|
|
46948
46700
|
}
|
|
46949
46701
|
if (prebuilt && bulkRedirectsPath) {
|
|
46950
46702
|
try {
|
|
46951
|
-
const projectRoot =
|
|
46952
|
-
const bulkRedirectsFullPath = (0,
|
|
46703
|
+
const projectRoot = path;
|
|
46704
|
+
const bulkRedirectsFullPath = (0, import_path11.join)(
|
|
46953
46705
|
projectRoot,
|
|
46954
46706
|
rootDirectory || "",
|
|
46955
46707
|
bulkRedirectsPath
|
|
46956
46708
|
);
|
|
46957
|
-
const relativeFromRoot = (0,
|
|
46709
|
+
const relativeFromRoot = (0, import_path11.relative)(projectRoot, bulkRedirectsFullPath);
|
|
46958
46710
|
if (relativeFromRoot.startsWith("..")) {
|
|
46959
46711
|
debug(
|
|
46960
46712
|
`Skipping bulk redirects path "${bulkRedirectsPath}" - path traversal detected (resolves outside project root)`
|
|
@@ -46988,11 +46740,11 @@ var require_utils10 = __commonJS({
|
|
|
46988
46740
|
fileList = fileList.concat(Array.from(refs));
|
|
46989
46741
|
}
|
|
46990
46742
|
debug(`Found ${fileList.length} files in the specified directory`);
|
|
46991
|
-
} else if (Array.isArray(
|
|
46992
|
-
fileList =
|
|
46743
|
+
} else if (Array.isArray(path)) {
|
|
46744
|
+
fileList = path;
|
|
46993
46745
|
debug(`Assigned ${fileList.length} files provided explicitly`);
|
|
46994
46746
|
} else {
|
|
46995
|
-
fileList = [
|
|
46747
|
+
fileList = [path];
|
|
46996
46748
|
debug(`Deploying the provided path as single file`);
|
|
46997
46749
|
}
|
|
46998
46750
|
return { fileList, ignoreList };
|
|
@@ -47009,9 +46761,9 @@ var require_utils10 = __commonJS({
|
|
|
47009
46761
|
if (typeof cwd !== "string") {
|
|
47010
46762
|
throw new Error(`\`cwd\` must be a "string"`);
|
|
47011
46763
|
}
|
|
47012
|
-
const relOutputDir = (0,
|
|
46764
|
+
const relOutputDir = (0, import_path11.relative)(cwd, vercelOutputDir);
|
|
47013
46765
|
ignores = ["*"];
|
|
47014
|
-
const parts = relOutputDir.split(
|
|
46766
|
+
const parts = relOutputDir.split(import_path11.sep);
|
|
47015
46767
|
parts.forEach((_, i) => {
|
|
47016
46768
|
const level = parts.slice(0, i + 1).join("/");
|
|
47017
46769
|
ignores.push(`!${level}`);
|
|
@@ -47051,8 +46803,8 @@ var require_utils10 = __commonJS({
|
|
|
47051
46803
|
const files = await Promise.all(
|
|
47052
46804
|
cwds.map(async (cwd2) => {
|
|
47053
46805
|
const [vercelignore, nowignore] = await Promise.all([
|
|
47054
|
-
maybeRead((0,
|
|
47055
|
-
maybeRead((0,
|
|
46806
|
+
maybeRead((0, import_path11.join)(cwd2, ".vercelignore"), ""),
|
|
46807
|
+
maybeRead((0, import_path11.join)(cwd2, ".nowignore"), "")
|
|
47056
46808
|
]);
|
|
47057
46809
|
if (vercelignore && nowignore) {
|
|
47058
46810
|
throw new import_build_utils5.NowBuildError({
|
|
@@ -47111,9 +46863,9 @@ ${clearRelative(ignoreFile)}`);
|
|
|
47111
46863
|
for (const name of file.names) {
|
|
47112
46864
|
let fileName;
|
|
47113
46865
|
if (clientOptions.isDirectory) {
|
|
47114
|
-
fileName = typeof clientOptions.path === "string" ? (0,
|
|
46866
|
+
fileName = typeof clientOptions.path === "string" ? (0, import_path11.relative)(clientOptions.path, name) : name;
|
|
47115
46867
|
} else {
|
|
47116
|
-
const segments = name.split(
|
|
46868
|
+
const segments = name.split(import_path11.sep);
|
|
47117
46869
|
fileName = segments[segments.length - 1];
|
|
47118
46870
|
}
|
|
47119
46871
|
preparedFiles.push({
|
|
@@ -47486,10 +47238,10 @@ var require_deploy = __commonJS({
|
|
|
47486
47238
|
}
|
|
47487
47239
|
function getDefaultName(files, clientOptions) {
|
|
47488
47240
|
const debug = (0, import_utils4.createDebug)(clientOptions.debug);
|
|
47489
|
-
const { isDirectory: isDirectory2, path
|
|
47490
|
-
if (isDirectory2 && typeof
|
|
47241
|
+
const { isDirectory: isDirectory2, path } = clientOptions;
|
|
47242
|
+
if (isDirectory2 && typeof path === "string") {
|
|
47491
47243
|
debug("Provided path is a directory. Using last segment as default name");
|
|
47492
|
-
return
|
|
47244
|
+
return path.split("/").pop() || path;
|
|
47493
47245
|
} else {
|
|
47494
47246
|
debug(
|
|
47495
47247
|
"Provided path is not a directory. Using last segment of the first file as default name"
|
|
@@ -47789,7 +47541,7 @@ var require_retry2 = __commonJS({
|
|
|
47789
47541
|
});
|
|
47790
47542
|
|
|
47791
47543
|
// ../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js
|
|
47792
|
-
var
|
|
47544
|
+
var require_lib9 = __commonJS({
|
|
47793
47545
|
"../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports, module) {
|
|
47794
47546
|
var retrier = require_retry2();
|
|
47795
47547
|
function retry(fn, opts) {
|
|
@@ -47909,8 +47661,8 @@ var require_upload = __commonJS({
|
|
|
47909
47661
|
var import_https = __toESM2(__require("https"));
|
|
47910
47662
|
var import_stream = __require("stream");
|
|
47911
47663
|
var import_node_events = __require("events");
|
|
47912
|
-
var import_async_retry = __toESM2(
|
|
47913
|
-
var import_async_sema =
|
|
47664
|
+
var import_async_retry = __toESM2(require_lib9());
|
|
47665
|
+
var import_async_sema = require_lib6();
|
|
47914
47666
|
var import_utils4 = require_utils10();
|
|
47915
47667
|
var import_errors3 = require_errors();
|
|
47916
47668
|
var import_deploy = require_deploy();
|
|
@@ -48131,46 +47883,46 @@ var require_chownr = __commonJS({
|
|
|
48131
47883
|
"../../node_modules/.pnpm/chownr@1.1.4/node_modules/chownr/chownr.js"(exports, module) {
|
|
48132
47884
|
"use strict";
|
|
48133
47885
|
var fs5 = __require("fs");
|
|
48134
|
-
var
|
|
47886
|
+
var path = __require("path");
|
|
48135
47887
|
var LCHOWN = fs5.lchown ? "lchown" : "chown";
|
|
48136
47888
|
var LCHOWNSYNC = fs5.lchownSync ? "lchownSync" : "chownSync";
|
|
48137
47889
|
var needEISDIRHandled = fs5.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
48138
|
-
var lchownSync = (
|
|
47890
|
+
var lchownSync = (path2, uid, gid) => {
|
|
48139
47891
|
try {
|
|
48140
|
-
return fs5[LCHOWNSYNC](
|
|
47892
|
+
return fs5[LCHOWNSYNC](path2, uid, gid);
|
|
48141
47893
|
} catch (er) {
|
|
48142
47894
|
if (er.code !== "ENOENT")
|
|
48143
47895
|
throw er;
|
|
48144
47896
|
}
|
|
48145
47897
|
};
|
|
48146
|
-
var chownSync = (
|
|
47898
|
+
var chownSync = (path2, uid, gid) => {
|
|
48147
47899
|
try {
|
|
48148
|
-
return fs5.chownSync(
|
|
47900
|
+
return fs5.chownSync(path2, uid, gid);
|
|
48149
47901
|
} catch (er) {
|
|
48150
47902
|
if (er.code !== "ENOENT")
|
|
48151
47903
|
throw er;
|
|
48152
47904
|
}
|
|
48153
47905
|
};
|
|
48154
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
47906
|
+
var handleEISDIR = needEISDIRHandled ? (path2, uid, gid, cb) => (er) => {
|
|
48155
47907
|
if (!er || er.code !== "EISDIR")
|
|
48156
47908
|
cb(er);
|
|
48157
47909
|
else
|
|
48158
|
-
fs5.chown(
|
|
47910
|
+
fs5.chown(path2, uid, gid, cb);
|
|
48159
47911
|
} : (_, __, ___, cb) => cb;
|
|
48160
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
47912
|
+
var handleEISDirSync = needEISDIRHandled ? (path2, uid, gid) => {
|
|
48161
47913
|
try {
|
|
48162
|
-
return lchownSync(
|
|
47914
|
+
return lchownSync(path2, uid, gid);
|
|
48163
47915
|
} catch (er) {
|
|
48164
47916
|
if (er.code !== "EISDIR")
|
|
48165
47917
|
throw er;
|
|
48166
|
-
chownSync(
|
|
47918
|
+
chownSync(path2, uid, gid);
|
|
48167
47919
|
}
|
|
48168
|
-
} : (
|
|
47920
|
+
} : (path2, uid, gid) => lchownSync(path2, uid, gid);
|
|
48169
47921
|
var nodeVersion = process.version;
|
|
48170
|
-
var readdir = (
|
|
48171
|
-
var readdirSync = (
|
|
47922
|
+
var readdir = (path2, options, cb) => fs5.readdir(path2, options, cb);
|
|
47923
|
+
var readdirSync = (path2, options) => fs5.readdirSync(path2, options);
|
|
48172
47924
|
if (/^v4\./.test(nodeVersion))
|
|
48173
|
-
readdir = (
|
|
47925
|
+
readdir = (path2, options, cb) => fs5.readdir(path2, cb);
|
|
48174
47926
|
var chown = (cpath, uid, gid, cb) => {
|
|
48175
47927
|
fs5[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
48176
47928
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
@@ -48178,21 +47930,21 @@ var require_chownr = __commonJS({
|
|
|
48178
47930
|
};
|
|
48179
47931
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
48180
47932
|
if (typeof child === "string")
|
|
48181
|
-
return fs5.lstat(
|
|
47933
|
+
return fs5.lstat(path.resolve(p, child), (er, stats) => {
|
|
48182
47934
|
if (er)
|
|
48183
47935
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
48184
47936
|
stats.name = child;
|
|
48185
47937
|
chownrKid(p, stats, uid, gid, cb);
|
|
48186
47938
|
});
|
|
48187
47939
|
if (child.isDirectory()) {
|
|
48188
|
-
chownr(
|
|
47940
|
+
chownr(path.resolve(p, child.name), uid, gid, (er) => {
|
|
48189
47941
|
if (er)
|
|
48190
47942
|
return cb(er);
|
|
48191
|
-
const cpath =
|
|
47943
|
+
const cpath = path.resolve(p, child.name);
|
|
48192
47944
|
chown(cpath, uid, gid, cb);
|
|
48193
47945
|
});
|
|
48194
47946
|
} else {
|
|
48195
|
-
const cpath =
|
|
47947
|
+
const cpath = path.resolve(p, child.name);
|
|
48196
47948
|
chown(cpath, uid, gid, cb);
|
|
48197
47949
|
}
|
|
48198
47950
|
};
|
|
@@ -48222,7 +47974,7 @@ var require_chownr = __commonJS({
|
|
|
48222
47974
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
48223
47975
|
if (typeof child === "string") {
|
|
48224
47976
|
try {
|
|
48225
|
-
const stats = fs5.lstatSync(
|
|
47977
|
+
const stats = fs5.lstatSync(path.resolve(p, child));
|
|
48226
47978
|
stats.name = child;
|
|
48227
47979
|
child = stats;
|
|
48228
47980
|
} catch (er) {
|
|
@@ -48233,8 +47985,8 @@ var require_chownr = __commonJS({
|
|
|
48233
47985
|
}
|
|
48234
47986
|
}
|
|
48235
47987
|
if (child.isDirectory())
|
|
48236
|
-
chownrSync(
|
|
48237
|
-
handleEISDirSync(
|
|
47988
|
+
chownrSync(path.resolve(p, child.name), uid, gid);
|
|
47989
|
+
handleEISDirSync(path.resolve(p, child.name), uid, gid);
|
|
48238
47990
|
};
|
|
48239
47991
|
var chownrSync = (p, uid, gid) => {
|
|
48240
47992
|
let children;
|
|
@@ -51719,7 +51471,7 @@ var require_pump = __commonJS({
|
|
|
51719
51471
|
// ../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js
|
|
51720
51472
|
var require_mkdirp = __commonJS({
|
|
51721
51473
|
"../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js"(exports, module) {
|
|
51722
|
-
var
|
|
51474
|
+
var path = __require("path");
|
|
51723
51475
|
var fs5 = __require("fs");
|
|
51724
51476
|
var _0777 = parseInt("0777", 8);
|
|
51725
51477
|
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
@@ -51740,7 +51492,7 @@ var require_mkdirp = __commonJS({
|
|
|
51740
51492
|
var cb = f || /* istanbul ignore next */
|
|
51741
51493
|
function() {
|
|
51742
51494
|
};
|
|
51743
|
-
p =
|
|
51495
|
+
p = path.resolve(p);
|
|
51744
51496
|
xfs.mkdir(p, mode, function(er) {
|
|
51745
51497
|
if (!er) {
|
|
51746
51498
|
made = made || p;
|
|
@@ -51748,9 +51500,9 @@ var require_mkdirp = __commonJS({
|
|
|
51748
51500
|
}
|
|
51749
51501
|
switch (er.code) {
|
|
51750
51502
|
case "ENOENT":
|
|
51751
|
-
if (
|
|
51503
|
+
if (path.dirname(p) === p)
|
|
51752
51504
|
return cb(er);
|
|
51753
|
-
mkdirP(
|
|
51505
|
+
mkdirP(path.dirname(p), opts, function(er2, made2) {
|
|
51754
51506
|
if (er2)
|
|
51755
51507
|
cb(er2, made2);
|
|
51756
51508
|
else
|
|
@@ -51779,14 +51531,14 @@ var require_mkdirp = __commonJS({
|
|
|
51779
51531
|
}
|
|
51780
51532
|
if (!made)
|
|
51781
51533
|
made = null;
|
|
51782
|
-
p =
|
|
51534
|
+
p = path.resolve(p);
|
|
51783
51535
|
try {
|
|
51784
51536
|
xfs.mkdirSync(p, mode);
|
|
51785
51537
|
made = made || p;
|
|
51786
51538
|
} catch (err0) {
|
|
51787
51539
|
switch (err0.code) {
|
|
51788
51540
|
case "ENOENT":
|
|
51789
|
-
made = sync(
|
|
51541
|
+
made = sync(path.dirname(p), opts, made);
|
|
51790
51542
|
sync(p, opts, made);
|
|
51791
51543
|
break;
|
|
51792
51544
|
default:
|
|
@@ -51814,7 +51566,7 @@ var require_tar_fs = __commonJS({
|
|
|
51814
51566
|
var pump = require_pump();
|
|
51815
51567
|
var mkdirp = require_mkdirp();
|
|
51816
51568
|
var fs5 = __require("fs");
|
|
51817
|
-
var
|
|
51569
|
+
var path = __require("path");
|
|
51818
51570
|
var os2 = __require("os");
|
|
51819
51571
|
var win32 = os2.platform() === "win32";
|
|
51820
51572
|
var noop = function() {
|
|
@@ -51831,7 +51583,7 @@ var require_tar_fs = __commonJS({
|
|
|
51831
51583
|
if (!queue.length)
|
|
51832
51584
|
return callback();
|
|
51833
51585
|
var next = queue.shift();
|
|
51834
|
-
var nextAbs =
|
|
51586
|
+
var nextAbs = path.join(cwd, next);
|
|
51835
51587
|
stat2(nextAbs, function(err, stat3) {
|
|
51836
51588
|
if (err)
|
|
51837
51589
|
return callback(err);
|
|
@@ -51843,8 +51595,8 @@ var require_tar_fs = __commonJS({
|
|
|
51843
51595
|
if (sort)
|
|
51844
51596
|
files.sort();
|
|
51845
51597
|
for (var i = 0; i < files.length; i++) {
|
|
51846
|
-
if (!ignore(
|
|
51847
|
-
queue.push(
|
|
51598
|
+
if (!ignore(path.join(cwd, next, files[i])))
|
|
51599
|
+
queue.push(path.join(next, files[i]));
|
|
51848
51600
|
}
|
|
51849
51601
|
callback(null, next, stat3);
|
|
51850
51602
|
});
|
|
@@ -51855,7 +51607,7 @@ var require_tar_fs = __commonJS({
|
|
|
51855
51607
|
return function(header) {
|
|
51856
51608
|
header.name = header.name.split("/").slice(level).join("/");
|
|
51857
51609
|
var linkname = header.linkname;
|
|
51858
|
-
if (linkname && (header.type === "link" ||
|
|
51610
|
+
if (linkname && (header.type === "link" || path.isAbsolute(linkname))) {
|
|
51859
51611
|
header.linkname = linkname.split("/").slice(level).join("/");
|
|
51860
51612
|
}
|
|
51861
51613
|
return map(header);
|
|
@@ -51888,7 +51640,7 @@ var require_tar_fs = __commonJS({
|
|
|
51888
51640
|
fmode |= parseInt(222, 8);
|
|
51889
51641
|
}
|
|
51890
51642
|
var onsymlink = function(filename, header) {
|
|
51891
|
-
xfs.readlink(
|
|
51643
|
+
xfs.readlink(path.join(cwd, filename), function(err, linkname) {
|
|
51892
51644
|
if (err)
|
|
51893
51645
|
return pack.destroy(err);
|
|
51894
51646
|
header.linkname = normalize(linkname);
|
|
@@ -51935,7 +51687,7 @@ var require_tar_fs = __commonJS({
|
|
|
51935
51687
|
var entry = pack.entry(header, onnextentry);
|
|
51936
51688
|
if (!entry)
|
|
51937
51689
|
return;
|
|
51938
|
-
var rs = mapStream(xfs.createReadStream(
|
|
51690
|
+
var rs = mapStream(xfs.createReadStream(path.join(cwd, filename)), header);
|
|
51939
51691
|
rs.on("error", function(err2) {
|
|
51940
51692
|
entry.destroy(err2);
|
|
51941
51693
|
});
|
|
@@ -52026,7 +51778,7 @@ var require_tar_fs = __commonJS({
|
|
|
52026
51778
|
extract.on("entry", function(header, stream, next) {
|
|
52027
51779
|
header = map(header) || header;
|
|
52028
51780
|
header.name = normalize(header.name);
|
|
52029
|
-
var name =
|
|
51781
|
+
var name = path.join(cwd, path.join("/", header.name));
|
|
52030
51782
|
if (ignore(name, header)) {
|
|
52031
51783
|
stream.resume();
|
|
52032
51784
|
return next();
|
|
@@ -52053,7 +51805,7 @@ var require_tar_fs = __commonJS({
|
|
|
52053
51805
|
if (win32)
|
|
52054
51806
|
return next();
|
|
52055
51807
|
xfs.unlink(name, function() {
|
|
52056
|
-
var srcpath =
|
|
51808
|
+
var srcpath = path.join(cwd, path.join("/", header.linkname));
|
|
52057
51809
|
xfs.link(srcpath, name, function(err) {
|
|
52058
51810
|
if (err && err.code === "EPERM" && opts.hardlinkAsFilesFallback) {
|
|
52059
51811
|
stream = xfs.createReadStream(srcpath);
|
|
@@ -52084,8 +51836,8 @@ var require_tar_fs = __commonJS({
|
|
|
52084
51836
|
gid: header.gid
|
|
52085
51837
|
}, stat2);
|
|
52086
51838
|
}
|
|
52087
|
-
var dir =
|
|
52088
|
-
validate2(xfs, dir,
|
|
51839
|
+
var dir = path.dirname(name);
|
|
51840
|
+
validate2(xfs, dir, path.join(cwd, "."), function(err, valid) {
|
|
52089
51841
|
if (err)
|
|
52090
51842
|
return next(err);
|
|
52091
51843
|
if (!valid)
|
|
@@ -52124,7 +51876,7 @@ var require_tar_fs = __commonJS({
|
|
|
52124
51876
|
if (err && err.code !== "ENOENT")
|
|
52125
51877
|
return cb(err);
|
|
52126
51878
|
if (err || st.isDirectory())
|
|
52127
|
-
return validate2(fs6,
|
|
51879
|
+
return validate2(fs6, path.join(name, ".."), root, cb);
|
|
52128
51880
|
cb(null, false);
|
|
52129
51881
|
});
|
|
52130
51882
|
}
|
|
@@ -52229,8 +51981,8 @@ var require_create_deployment = __commonJS({
|
|
|
52229
51981
|
default: () => buildCreateDeployment
|
|
52230
51982
|
});
|
|
52231
51983
|
module.exports = __toCommonJS2(create_deployment_exports);
|
|
52232
|
-
var import_fs_extra9 =
|
|
52233
|
-
var
|
|
51984
|
+
var import_fs_extra9 = require_lib5();
|
|
51985
|
+
var import_path11 = __require("path");
|
|
52234
51986
|
var import_hashes = require_hashes();
|
|
52235
51987
|
var import_deploy = require_deploy();
|
|
52236
51988
|
var import_upload = require_upload();
|
|
@@ -52240,12 +51992,12 @@ var require_create_deployment = __commonJS({
|
|
|
52240
51992
|
var import_archive = require_archive();
|
|
52241
51993
|
function buildCreateDeployment() {
|
|
52242
51994
|
return async function* createDeployment(clientOptions, deploymentOptions = {}) {
|
|
52243
|
-
const { path
|
|
51995
|
+
const { path } = clientOptions;
|
|
52244
51996
|
const debug = (0, import_utils4.createDebug)(clientOptions.debug);
|
|
52245
51997
|
debug("Creating deployment...");
|
|
52246
|
-
if (typeof
|
|
51998
|
+
if (typeof path !== "string" && !Array.isArray(path)) {
|
|
52247
51999
|
debug(
|
|
52248
|
-
`Error: 'path' is expected to be a string or an array. Received ${typeof
|
|
52000
|
+
`Error: 'path' is expected to be a string or an array. Received ${typeof path}`
|
|
52249
52001
|
);
|
|
52250
52002
|
throw new import_errors3.DeploymentError({
|
|
52251
52003
|
code: "missing_path",
|
|
@@ -52277,30 +52029,30 @@ var require_create_deployment = __commonJS({
|
|
|
52277
52029
|
yield* (0, import_deploy.deploy)(/* @__PURE__ */ new Map(), clientOptions, deploymentOptions);
|
|
52278
52030
|
return;
|
|
52279
52031
|
}
|
|
52280
|
-
clientOptions.isDirectory = !Array.isArray(
|
|
52281
|
-
if (Array.isArray(
|
|
52282
|
-
for (const filePath of
|
|
52283
|
-
if (!(0,
|
|
52032
|
+
clientOptions.isDirectory = !Array.isArray(path) && (0, import_fs_extra9.lstatSync)(path).isDirectory();
|
|
52033
|
+
if (Array.isArray(path)) {
|
|
52034
|
+
for (const filePath of path) {
|
|
52035
|
+
if (!(0, import_path11.isAbsolute)(filePath)) {
|
|
52284
52036
|
throw new import_errors3.DeploymentError({
|
|
52285
52037
|
code: "invalid_path",
|
|
52286
52038
|
message: `Provided path ${filePath} is not absolute`
|
|
52287
52039
|
});
|
|
52288
52040
|
}
|
|
52289
52041
|
}
|
|
52290
|
-
} else if (!(0,
|
|
52042
|
+
} else if (!(0, import_path11.isAbsolute)(path)) {
|
|
52291
52043
|
throw new import_errors3.DeploymentError({
|
|
52292
52044
|
code: "invalid_path",
|
|
52293
|
-
message: `Provided path ${
|
|
52045
|
+
message: `Provided path ${path} is not absolute`
|
|
52294
52046
|
});
|
|
52295
52047
|
}
|
|
52296
|
-
if (clientOptions.isDirectory && !Array.isArray(
|
|
52048
|
+
if (clientOptions.isDirectory && !Array.isArray(path)) {
|
|
52297
52049
|
debug(`Provided 'path' is a directory.`);
|
|
52298
|
-
} else if (Array.isArray(
|
|
52050
|
+
} else if (Array.isArray(path)) {
|
|
52299
52051
|
debug(`Provided 'path' is an array of file paths`);
|
|
52300
52052
|
} else {
|
|
52301
52053
|
debug(`Provided 'path' is a single file`);
|
|
52302
52054
|
}
|
|
52303
|
-
const { fileList } = await (0, import_utils4.buildFileTree)(
|
|
52055
|
+
const { fileList } = await (0, import_utils4.buildFileTree)(path, clientOptions, debug);
|
|
52304
52056
|
if (fileList.length === 0) {
|
|
52305
52057
|
debug("Deployment path has no files. Yielding a warning event");
|
|
52306
52058
|
yield {
|
|
@@ -52308,7 +52060,7 @@ var require_create_deployment = __commonJS({
|
|
|
52308
52060
|
payload: "There are no files inside your deployment."
|
|
52309
52061
|
};
|
|
52310
52062
|
}
|
|
52311
|
-
const workPath = typeof
|
|
52063
|
+
const workPath = typeof path === "string" ? path : path[0];
|
|
52312
52064
|
let files;
|
|
52313
52065
|
try {
|
|
52314
52066
|
if (clientOptions.archive === "tgz") {
|
|
@@ -52318,9 +52070,9 @@ var require_create_deployment = __commonJS({
|
|
|
52318
52070
|
}
|
|
52319
52071
|
} catch (err) {
|
|
52320
52072
|
if (clientOptions.prebuilt && (0, import_error_utils5.isErrnoException)(err) && err.code === "ENOENT" && err.path) {
|
|
52321
|
-
const errPath = (0,
|
|
52322
|
-
err.message = `File does not exist: "${(0,
|
|
52323
|
-
if (errPath.split(
|
|
52073
|
+
const errPath = (0, import_path11.relative)(workPath, err.path);
|
|
52074
|
+
err.message = `File does not exist: "${(0, import_path11.relative)(workPath, errPath)}"`;
|
|
52075
|
+
if (errPath.split(import_path11.sep).includes("node_modules")) {
|
|
52324
52076
|
err.message = `Please ensure project dependencies have been installed:
|
|
52325
52077
|
${err.message}`;
|
|
52326
52078
|
}
|
|
@@ -52383,8 +52135,8 @@ var require_continue = __commonJS({
|
|
|
52383
52135
|
continueDeployment: () => continueDeployment2
|
|
52384
52136
|
});
|
|
52385
52137
|
module.exports = __toCommonJS2(continue_exports);
|
|
52386
|
-
var
|
|
52387
|
-
var import_fs_extra9 = __toESM2(
|
|
52138
|
+
var import_path11 = __require("path");
|
|
52139
|
+
var import_fs_extra9 = __toESM2(require_lib5());
|
|
52388
52140
|
var import_check_deployment_status = require_check_deployment_status();
|
|
52389
52141
|
var import_utils4 = require_utils10();
|
|
52390
52142
|
var import_hashes = require_hashes();
|
|
@@ -52395,7 +52147,7 @@ var require_continue = __commonJS({
|
|
|
52395
52147
|
async function* continueDeployment2(options) {
|
|
52396
52148
|
const debug = (0, import_utils4.createDebug)(options.debug);
|
|
52397
52149
|
debug(`Continuing deployment: ${options.deploymentId}`);
|
|
52398
|
-
const outputDir = options.vercelOutputDir || (0,
|
|
52150
|
+
const outputDir = options.vercelOutputDir || (0, import_path11.join)(options.path, ".vercel", "output");
|
|
52399
52151
|
if (!await import_fs_extra9.default.pathExists(outputDir)) {
|
|
52400
52152
|
return yield {
|
|
52401
52153
|
type: "error",
|
|
@@ -52410,7 +52162,7 @@ var require_continue = __commonJS({
|
|
|
52410
52162
|
{ isDirectory: true, prebuilt: true, vercelOutputDir: outputDir },
|
|
52411
52163
|
debug
|
|
52412
52164
|
);
|
|
52413
|
-
const provisionJsonPath = (0,
|
|
52165
|
+
const provisionJsonPath = (0, import_path11.join)(outputDir, "provision.json");
|
|
52414
52166
|
const unbundledFiles = fileList.filter((f) => f === provisionJsonPath);
|
|
52415
52167
|
let files;
|
|
52416
52168
|
if (options.archive === "tgz") {
|
|
@@ -52736,33 +52488,15 @@ async function getTeamById(client, teamId) {
|
|
|
52736
52488
|
return team;
|
|
52737
52489
|
}
|
|
52738
52490
|
|
|
52739
|
-
// src/util/
|
|
52740
|
-
var import_xdg_app_paths = __toESM(require_xdg_app_paths(), 1);
|
|
52741
|
-
import { homedir } from "os";
|
|
52491
|
+
// src/util/fs.ts
|
|
52742
52492
|
import fs from "fs";
|
|
52743
|
-
|
|
52744
|
-
var isDirectory = (path2) => {
|
|
52493
|
+
function isDirectory(targetPath) {
|
|
52745
52494
|
try {
|
|
52746
|
-
return fs.lstatSync(
|
|
52747
|
-
} catch
|
|
52495
|
+
return fs.lstatSync(targetPath).isDirectory();
|
|
52496
|
+
} catch {
|
|
52748
52497
|
return false;
|
|
52749
52498
|
}
|
|
52750
|
-
}
|
|
52751
|
-
var getGlobalPathConfig = () => {
|
|
52752
|
-
const argv = getArgs(process.argv.slice(2), {}, { permissive: true });
|
|
52753
|
-
const customPath = argv["--global-config"];
|
|
52754
|
-
const vercelDirectories = (0, import_xdg_app_paths.default)("com.vercel.cli").dataDirs();
|
|
52755
|
-
const possibleConfigPaths = [
|
|
52756
|
-
...vercelDirectories,
|
|
52757
|
-
// latest vercel directory
|
|
52758
|
-
path.join(homedir(), ".now"),
|
|
52759
|
-
// legacy config in user's home directory
|
|
52760
|
-
...(0, import_xdg_app_paths.default)("now").dataDirs()
|
|
52761
|
-
// legacy XDG directory
|
|
52762
|
-
];
|
|
52763
|
-
return customPath && path.resolve(customPath) || possibleConfigPaths.find((configPath) => isDirectory(configPath)) || vercelDirectories[0];
|
|
52764
|
-
};
|
|
52765
|
-
var global_path_default = getGlobalPathConfig;
|
|
52499
|
+
}
|
|
52766
52500
|
|
|
52767
52501
|
// src/util/projects/link.ts
|
|
52768
52502
|
import { NowBuildError as NowBuildError2, getPlatformEnv } from "@vercel/build-utils";
|
|
@@ -53132,7 +52866,7 @@ var CancelablePromise = class _CancelablePromise extends Promise {
|
|
|
53132
52866
|
};
|
|
53133
52867
|
|
|
53134
52868
|
// ../../node_modules/.pnpm/@inquirer+core@7.1.3/node_modules/@inquirer/core/dist/esm/lib/create-prompt.mjs
|
|
53135
|
-
var import_mute_stream = __toESM(
|
|
52869
|
+
var import_mute_stream = __toESM(require_lib3(), 1);
|
|
53136
52870
|
|
|
53137
52871
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
53138
52872
|
var signals = [];
|
|
@@ -53994,16 +53728,16 @@ ${error}${import_ansi_escapes2.default.cursorHide}`;
|
|
|
53994
53728
|
var import_pluralize = __toESM(require_pluralize(), 1);
|
|
53995
53729
|
var import_slugify = __toESM(require_slugify(), 1);
|
|
53996
53730
|
var import_fs_extra3 = __toESM(require_lib2(), 1);
|
|
53997
|
-
import { homedir as
|
|
53731
|
+
import { homedir as homedir2 } from "os";
|
|
53998
53732
|
import { basename, join as join5 } from "path";
|
|
53999
53733
|
import { normalizePath, traverseUpDirectories } from "@vercel/build-utils";
|
|
54000
53734
|
|
|
54001
53735
|
// src/util/humanize-path.ts
|
|
54002
|
-
import { homedir
|
|
53736
|
+
import { homedir } from "os";
|
|
54003
53737
|
import { resolve } from "path";
|
|
54004
|
-
function humanizePath(
|
|
54005
|
-
const resolved = resolve(
|
|
54006
|
-
const _homedir =
|
|
53738
|
+
function humanizePath(path) {
|
|
53739
|
+
const resolved = resolve(path);
|
|
53740
|
+
const _homedir = homedir();
|
|
54007
53741
|
return resolved.indexOf(_homedir) === 0 ? `~${resolved.slice(_homedir.length)}` : resolved;
|
|
54008
53742
|
}
|
|
54009
53743
|
|
|
@@ -54262,10 +53996,10 @@ async function selectOrg(client, question, autoConfirm) {
|
|
|
54262
53996
|
var import_fs_extra2 = __toESM(require_lib2(), 1);
|
|
54263
53997
|
import os from "os";
|
|
54264
53998
|
import { join as join2 } from "path";
|
|
54265
|
-
async function addToGitIgnore(
|
|
53999
|
+
async function addToGitIgnore(path, ignore = VERCEL_DIR) {
|
|
54266
54000
|
let isGitIgnoreUpdated = false;
|
|
54267
54001
|
try {
|
|
54268
|
-
const gitIgnorePath = join2(
|
|
54002
|
+
const gitIgnorePath = join2(path, ".gitignore");
|
|
54269
54003
|
let gitIgnore = await (0, import_fs_extra2.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
|
|
54270
54004
|
const EOL = gitIgnore.includes("\r\n") ? "\r\n" : os.EOL;
|
|
54271
54005
|
let contentModified = false;
|
|
@@ -54809,7 +54543,7 @@ function getGitConfigPath(opts) {
|
|
|
54809
54543
|
}
|
|
54810
54544
|
|
|
54811
54545
|
// src/util/link/repo.ts
|
|
54812
|
-
var home =
|
|
54546
|
+
var home = homedir2();
|
|
54813
54547
|
async function getRepoLink(client, cwd) {
|
|
54814
54548
|
const rootPath = await findRepoRoot(cwd);
|
|
54815
54549
|
if (!rootPath)
|
|
@@ -54823,38 +54557,14 @@ async function getRepoLink(client, cwd) {
|
|
|
54823
54557
|
);
|
|
54824
54558
|
return { rootPath, repoConfig, repoConfigPath };
|
|
54825
54559
|
}
|
|
54826
|
-
async function
|
|
54560
|
+
async function resolveGitRemote(client, rootPath, {
|
|
54827
54561
|
yes,
|
|
54828
|
-
existingProjectIds,
|
|
54829
|
-
existingDirectories,
|
|
54830
54562
|
existingRemoteName
|
|
54831
54563
|
}) {
|
|
54832
|
-
const detectedProjectsPromise = detectProjects(rootPath).catch((err) => {
|
|
54833
|
-
output_manager_default.debug(`Failed to detect local projects: ${err}`);
|
|
54834
|
-
return /* @__PURE__ */ new Map();
|
|
54835
|
-
});
|
|
54836
|
-
const promptAction = existingRemoteName ? "add" : "link";
|
|
54837
|
-
const confirmMessage = promptAction === "add" ? `Add Project(s) for Git repository at ${import_chalk6.default.cyan(
|
|
54838
|
-
`"${humanizePath(rootPath)}"`
|
|
54839
|
-
)}?` : `Link Git repository at ${import_chalk6.default.cyan(
|
|
54840
|
-
`"${humanizePath(rootPath)}"`
|
|
54841
|
-
)} to your Project(s)?`;
|
|
54842
|
-
const shouldLink = yes || await client.input.confirm(confirmMessage, true);
|
|
54843
|
-
if (!shouldLink) {
|
|
54844
|
-
output_manager_default.print(`Canceled. Repository not linked.
|
|
54845
|
-
`);
|
|
54846
|
-
return;
|
|
54847
|
-
}
|
|
54848
|
-
const org = await selectOrg(
|
|
54849
|
-
client,
|
|
54850
|
-
"Which scope should contain your Project(s)?",
|
|
54851
|
-
yes
|
|
54852
|
-
);
|
|
54853
|
-
client.config.currentTeam = org.type === "team" ? org.id : void 0;
|
|
54854
54564
|
const gitConfigPath = getGitConfigPath({ cwd: rootPath }) ?? join5(rootPath, ".git/config");
|
|
54855
54565
|
const remoteUrls = await getRemoteUrls(gitConfigPath);
|
|
54856
54566
|
if (!remoteUrls) {
|
|
54857
|
-
|
|
54567
|
+
return void 0;
|
|
54858
54568
|
}
|
|
54859
54569
|
let remoteName;
|
|
54860
54570
|
if (existingRemoteName) {
|
|
@@ -54883,7 +54593,96 @@ async function discoverRepoProjects(client, rootPath, {
|
|
|
54883
54593
|
}
|
|
54884
54594
|
}
|
|
54885
54595
|
}
|
|
54886
|
-
|
|
54596
|
+
return { rootPath, remoteName, repoUrl: remoteUrls[remoteName] };
|
|
54597
|
+
}
|
|
54598
|
+
async function fetchProjectsForRepoUrl(client, repoUrl, orgId) {
|
|
54599
|
+
const query = new URLSearchParams({ repoUrl });
|
|
54600
|
+
const projectsIterator = client.fetchPaginated(`/v9/projects?${query}`, { accountId: orgId });
|
|
54601
|
+
let projects = [];
|
|
54602
|
+
for await (const chunk of projectsIterator) {
|
|
54603
|
+
projects = projects.concat(chunk.projects);
|
|
54604
|
+
}
|
|
54605
|
+
return projects;
|
|
54606
|
+
}
|
|
54607
|
+
async function linkRepoProject(client, cwd, {
|
|
54608
|
+
project,
|
|
54609
|
+
orgId,
|
|
54610
|
+
orgSlug,
|
|
54611
|
+
remoteName,
|
|
54612
|
+
successEmoji = "link"
|
|
54613
|
+
}) {
|
|
54614
|
+
const repoLink = await getRepoLink(client, cwd);
|
|
54615
|
+
if (!repoLink) {
|
|
54616
|
+
throw new Error("Could not determine Git repository root directory");
|
|
54617
|
+
}
|
|
54618
|
+
const directory = normalizePath(project.rootDirectory || ".");
|
|
54619
|
+
const projectConfig = {
|
|
54620
|
+
id: project.id,
|
|
54621
|
+
name: project.name,
|
|
54622
|
+
directory,
|
|
54623
|
+
orgId
|
|
54624
|
+
};
|
|
54625
|
+
const existingProjects = repoLink.repoConfig?.projects ?? [];
|
|
54626
|
+
const filteredProjects = existingProjects.filter(
|
|
54627
|
+
(p) => p.id !== project.id && normalizePath(p.directory) !== directory
|
|
54628
|
+
);
|
|
54629
|
+
const repoConfig = {
|
|
54630
|
+
remoteName,
|
|
54631
|
+
projects: [...filteredProjects, projectConfig]
|
|
54632
|
+
};
|
|
54633
|
+
await (0, import_fs_extra3.outputJSON)(repoLink.repoConfigPath, repoConfig, { spaces: 2 });
|
|
54634
|
+
await writeReadme(repoLink.rootPath);
|
|
54635
|
+
const isGitIgnoreUpdated = await addToGitIgnore(repoLink.rootPath);
|
|
54636
|
+
output_manager_default.print(
|
|
54637
|
+
prependEmoji(
|
|
54638
|
+
`Linked to ${import_chalk6.default.bold(
|
|
54639
|
+
`${orgSlug}/${project.name}`
|
|
54640
|
+
)} (created ${VERCEL_DIR}${isGitIgnoreUpdated ? " and added it to .gitignore" : ""})`,
|
|
54641
|
+
emoji(successEmoji)
|
|
54642
|
+
) + "\n"
|
|
54643
|
+
);
|
|
54644
|
+
return {
|
|
54645
|
+
repoConfig,
|
|
54646
|
+
repoConfigPath: repoLink.repoConfigPath,
|
|
54647
|
+
rootPath: repoLink.rootPath
|
|
54648
|
+
};
|
|
54649
|
+
}
|
|
54650
|
+
async function discoverRepoProjects(client, rootPath, {
|
|
54651
|
+
yes,
|
|
54652
|
+
existingProjectIds,
|
|
54653
|
+
existingDirectories,
|
|
54654
|
+
existingRemoteName
|
|
54655
|
+
}) {
|
|
54656
|
+
const detectedProjectsPromise = detectProjects(rootPath).catch((err) => {
|
|
54657
|
+
output_manager_default.debug(`Failed to detect local projects: ${err}`);
|
|
54658
|
+
return /* @__PURE__ */ new Map();
|
|
54659
|
+
});
|
|
54660
|
+
const promptAction = existingRemoteName ? "add" : "link";
|
|
54661
|
+
const confirmMessage = promptAction === "add" ? `Add Project(s) for Git repository at ${import_chalk6.default.cyan(
|
|
54662
|
+
`"${humanizePath(rootPath)}"`
|
|
54663
|
+
)}?` : `Link Git repository at ${import_chalk6.default.cyan(
|
|
54664
|
+
`"${humanizePath(rootPath)}"`
|
|
54665
|
+
)} to your Project(s)?`;
|
|
54666
|
+
const shouldLink = yes || await client.input.confirm(confirmMessage, true);
|
|
54667
|
+
if (!shouldLink) {
|
|
54668
|
+
output_manager_default.print(`Canceled. Repository not linked.
|
|
54669
|
+
`);
|
|
54670
|
+
return;
|
|
54671
|
+
}
|
|
54672
|
+
const org = await selectOrg(
|
|
54673
|
+
client,
|
|
54674
|
+
"Which scope should contain your Project(s)?",
|
|
54675
|
+
yes
|
|
54676
|
+
);
|
|
54677
|
+
client.config.currentTeam = org.type === "team" ? org.id : void 0;
|
|
54678
|
+
const remote = await resolveGitRemote(client, rootPath, {
|
|
54679
|
+
yes,
|
|
54680
|
+
existingRemoteName
|
|
54681
|
+
});
|
|
54682
|
+
if (!remote) {
|
|
54683
|
+
throw new Error("Could not determine Git remote URLs");
|
|
54684
|
+
}
|
|
54685
|
+
const { remoteName, repoUrl } = remote;
|
|
54887
54686
|
const parsedRepoUrl = parseRepoUrl(repoUrl);
|
|
54888
54687
|
if (!parsedRepoUrl) {
|
|
54889
54688
|
throw new Error(`Failed to parse Git URL: ${repoUrl}`);
|
|
@@ -54894,16 +54693,8 @@ async function discoverRepoProjects(client, rootPath, {
|
|
|
54894
54693
|
output_manager_default.spinner(
|
|
54895
54694
|
`Fetching Projects for ${repoUrlLink} under ${import_chalk6.default.bold(org.slug)}\u2026`
|
|
54896
54695
|
);
|
|
54897
|
-
let projects = [];
|
|
54898
|
-
const query = new URLSearchParams({ repoUrl });
|
|
54899
|
-
const projectsIterator = client.fetchPaginated(`/v9/projects?${query}`);
|
|
54900
54696
|
const detectedProjects = await detectedProjectsPromise;
|
|
54901
|
-
|
|
54902
|
-
projects = projects.concat(chunk.projects);
|
|
54903
|
-
if (chunk.pagination.next) {
|
|
54904
|
-
output_manager_default.spinner(`Found ${import_chalk6.default.bold(projects.length)} Projects\u2026`, 0);
|
|
54905
|
-
}
|
|
54906
|
-
}
|
|
54697
|
+
let projects = await fetchProjectsForRepoUrl(client, repoUrl, org.id);
|
|
54907
54698
|
if (existingProjectIds || existingDirectories) {
|
|
54908
54699
|
projects = projects.filter((p) => {
|
|
54909
54700
|
if (existingProjectIds?.has(p.id))
|
|
@@ -55175,8 +54966,8 @@ function sortByDirectory(a, b) {
|
|
|
55175
54966
|
const bParts = b.directory.split("/");
|
|
55176
54967
|
return bParts.length - aParts.length;
|
|
55177
54968
|
}
|
|
55178
|
-
function findProjectsFromPath(projects,
|
|
55179
|
-
const normalizedPath = normalizePath(
|
|
54969
|
+
function findProjectsFromPath(projects, path) {
|
|
54970
|
+
const normalizedPath = normalizePath(path);
|
|
55180
54971
|
const matches = projects.slice().sort(sortByDirectory).filter((project) => {
|
|
55181
54972
|
if (project.directory === ".") {
|
|
55182
54973
|
return true;
|
|
@@ -55184,6 +54975,9 @@ function findProjectsFromPath(projects, path2) {
|
|
|
55184
54975
|
return normalizedPath === project.directory || normalizedPath.startsWith(`${project.directory}/`);
|
|
55185
54976
|
});
|
|
55186
54977
|
const firstMatch = matches[0];
|
|
54978
|
+
if (!firstMatch) {
|
|
54979
|
+
return [];
|
|
54980
|
+
}
|
|
55187
54981
|
return matches.filter((match) => match.directory === firstMatch.directory);
|
|
55188
54982
|
}
|
|
55189
54983
|
|
|
@@ -55786,9 +55580,9 @@ function parseTarget({
|
|
|
55786
55580
|
|
|
55787
55581
|
// src/commands/env/pull.ts
|
|
55788
55582
|
var CONTENTS_PREFIX = "# Created by Vercel CLI\n";
|
|
55789
|
-
function readHeadSync(
|
|
55583
|
+
function readHeadSync(path, length) {
|
|
55790
55584
|
const buffer = Buffer.alloc(length);
|
|
55791
|
-
const fd = openSync(
|
|
55585
|
+
const fd = openSync(path, "r");
|
|
55792
55586
|
try {
|
|
55793
55587
|
readSync(
|
|
55794
55588
|
fd,
|
|
@@ -55802,9 +55596,9 @@ function readHeadSync(path2, length) {
|
|
|
55802
55596
|
}
|
|
55803
55597
|
return buffer.toString();
|
|
55804
55598
|
}
|
|
55805
|
-
function tryReadHeadSync(
|
|
55599
|
+
function tryReadHeadSync(path, length) {
|
|
55806
55600
|
try {
|
|
55807
|
-
return readHeadSync(
|
|
55601
|
+
return readHeadSync(path, length);
|
|
55808
55602
|
} catch (err) {
|
|
55809
55603
|
if (!(0, import_error_utils2.isErrnoException)(err) || err.code !== "ENOENT") {
|
|
55810
55604
|
throw err;
|
|
@@ -56569,9 +56363,6 @@ async function prepareServicesConfigWrite(cwd, config) {
|
|
|
56569
56363
|
`Cannot automatically update ${compileResult.sourceFile ?? "the current Vercel config"}.`
|
|
56570
56364
|
);
|
|
56571
56365
|
}
|
|
56572
|
-
if (compileResult.configPath && basename2(compileResult.configPath) === "now.json") {
|
|
56573
|
-
throw new Error("Cannot automatically update now.json.");
|
|
56574
|
-
}
|
|
56575
56366
|
let existingConfig = {};
|
|
56576
56367
|
if (compileResult.configPath && basename2(compileResult.configPath) === "vercel.json") {
|
|
56577
56368
|
const result = await readJSONFile(configPath);
|
|
@@ -56665,7 +56456,7 @@ async function resolveProjectCwd(cwd) {
|
|
|
56665
56456
|
return cwd;
|
|
56666
56457
|
}
|
|
56667
56458
|
const result = await tryDetectServices(projectRoot);
|
|
56668
|
-
if (result && result.services
|
|
56459
|
+
if (result && (result.services?.length ?? 0) > 0) {
|
|
56669
56460
|
output_manager_default.debug(`Running from project root: ${import_chalk11.default.cyan(projectRoot)}`);
|
|
56670
56461
|
return projectRoot;
|
|
56671
56462
|
}
|
|
@@ -56710,21 +56501,21 @@ function getVercelDirectory(cwd) {
|
|
|
56710
56501
|
}
|
|
56711
56502
|
return existingDirs[0] || possibleDirs[0];
|
|
56712
56503
|
}
|
|
56713
|
-
async function getProjectLink(client,
|
|
56714
|
-
const dirLink = await getLinkFromDir(getVercelDirectory(
|
|
56504
|
+
async function getProjectLink(client, path, projectName) {
|
|
56505
|
+
const dirLink = await getLinkFromDir(getVercelDirectory(path));
|
|
56715
56506
|
if (dirLink) {
|
|
56716
56507
|
return dirLink;
|
|
56717
56508
|
}
|
|
56718
|
-
return await getProjectLinkFromRepoLink(client,
|
|
56509
|
+
return await getProjectLinkFromRepoLink(client, path, projectName);
|
|
56719
56510
|
}
|
|
56720
|
-
async function getProjectLinkFromRepoLink(client,
|
|
56721
|
-
const repoLink = await getRepoLink(client,
|
|
56511
|
+
async function getProjectLinkFromRepoLink(client, path, projectName) {
|
|
56512
|
+
const repoLink = await getRepoLink(client, path);
|
|
56722
56513
|
if (!repoLink?.repoConfig) {
|
|
56723
56514
|
return null;
|
|
56724
56515
|
}
|
|
56725
56516
|
const projects = findProjectsFromPath(
|
|
56726
56517
|
repoLink.repoConfig.projects,
|
|
56727
|
-
relative(repoLink.rootPath,
|
|
56518
|
+
relative(repoLink.rootPath, path)
|
|
56728
56519
|
);
|
|
56729
56520
|
let project;
|
|
56730
56521
|
if (projects.length === 1) {
|
|
@@ -56822,13 +56613,13 @@ async function getOrgById(client, orgId) {
|
|
|
56822
56613
|
return null;
|
|
56823
56614
|
return { type: "user", id: orgId, slug: user.username };
|
|
56824
56615
|
}
|
|
56825
|
-
async function hasProjectLink(client, projectLink,
|
|
56616
|
+
async function hasProjectLink(client, projectLink, path) {
|
|
56826
56617
|
const VERCEL_ORG_ID = getPlatformEnv("ORG_ID");
|
|
56827
56618
|
const VERCEL_PROJECT_ID = getPlatformEnv("PROJECT_ID");
|
|
56828
56619
|
if (VERCEL_ORG_ID === projectLink.orgId && VERCEL_PROJECT_ID === projectLink.projectId) {
|
|
56829
56620
|
return true;
|
|
56830
56621
|
}
|
|
56831
|
-
const repoLink = await getRepoLink(client,
|
|
56622
|
+
const repoLink = await getRepoLink(client, path);
|
|
56832
56623
|
if (repoLink?.repoConfig) {
|
|
56833
56624
|
const matchingProject = repoLink.repoConfig.projects.find(
|
|
56834
56625
|
(p) => p.id === projectLink.projectId
|
|
@@ -56845,14 +56636,14 @@ async function hasProjectLink(client, projectLink, path2) {
|
|
|
56845
56636
|
}
|
|
56846
56637
|
}
|
|
56847
56638
|
}
|
|
56848
|
-
const link = await getLinkFromDir(getVercelDirectory(
|
|
56639
|
+
const link = await getLinkFromDir(getVercelDirectory(path));
|
|
56849
56640
|
if (link && link.orgId === projectLink.orgId && link.projectId === projectLink.projectId) {
|
|
56850
56641
|
return true;
|
|
56851
56642
|
}
|
|
56852
56643
|
return false;
|
|
56853
56644
|
}
|
|
56854
|
-
async function getLinkedProject(client,
|
|
56855
|
-
|
|
56645
|
+
async function getLinkedProject(client, path = client.cwd, projectName) {
|
|
56646
|
+
path = await resolveProjectCwd(path);
|
|
56856
56647
|
const VERCEL_ORG_ID = getPlatformEnv("ORG_ID");
|
|
56857
56648
|
const VERCEL_PROJECT_ID = getPlatformEnv("PROJECT_ID");
|
|
56858
56649
|
const shouldUseEnv = Boolean(VERCEL_ORG_ID && VERCEL_PROJECT_ID);
|
|
@@ -56863,7 +56654,7 @@ async function getLinkedProject(client, path2 = client.cwd, projectName) {
|
|
|
56863
56654
|
);
|
|
56864
56655
|
return { status: "error", exitCode: 1 };
|
|
56865
56656
|
}
|
|
56866
|
-
const link = VERCEL_ORG_ID && VERCEL_PROJECT_ID ? { orgId: VERCEL_ORG_ID, projectId: VERCEL_PROJECT_ID } : await getProjectLink(client,
|
|
56657
|
+
const link = VERCEL_ORG_ID && VERCEL_PROJECT_ID ? { orgId: VERCEL_ORG_ID, projectId: VERCEL_PROJECT_ID } : await getProjectLink(client, path, projectName);
|
|
56867
56658
|
if (!link) {
|
|
56868
56659
|
return { status: "not_linked", org: null, project: null };
|
|
56869
56660
|
}
|
|
@@ -56941,18 +56732,18 @@ The "project.json" file contains:
|
|
|
56941
56732
|
No, you should not share the ".vercel" folder with anyone.
|
|
56942
56733
|
Upon creation, it will be automatically added to your ".gitignore" file.
|
|
56943
56734
|
`;
|
|
56944
|
-
async function writeReadme(
|
|
56735
|
+
async function writeReadme(path) {
|
|
56945
56736
|
await writeFile3(
|
|
56946
|
-
join8(
|
|
56737
|
+
join8(path, VERCEL_DIR, VERCEL_DIR_README),
|
|
56947
56738
|
VERCEL_DIR_README_CONTENT
|
|
56948
56739
|
);
|
|
56949
56740
|
}
|
|
56950
|
-
async function linkFolderToProject(client,
|
|
56951
|
-
if (await hasProjectLink(client, projectLink,
|
|
56741
|
+
async function linkFolderToProject(client, path, projectLink, projectName, orgSlug, successEmoji = "link", autoConfirm = false, pullEnv = true) {
|
|
56742
|
+
if (await hasProjectLink(client, projectLink, path)) {
|
|
56952
56743
|
return;
|
|
56953
56744
|
}
|
|
56954
56745
|
try {
|
|
56955
|
-
await (0, import_fs_extra8.ensureDir)(join8(
|
|
56746
|
+
await (0, import_fs_extra8.ensureDir)(join8(path, VERCEL_DIR));
|
|
56956
56747
|
} catch (err) {
|
|
56957
56748
|
if ((0, import_error_utils4.isErrnoException)(err) && err.code === "ENOTDIR") {
|
|
56958
56749
|
return;
|
|
@@ -56960,14 +56751,14 @@ async function linkFolderToProject(client, path2, projectLink, projectName, orgS
|
|
|
56960
56751
|
throw err;
|
|
56961
56752
|
}
|
|
56962
56753
|
await writeFile3(
|
|
56963
|
-
join8(
|
|
56754
|
+
join8(path, VERCEL_DIR, VERCEL_DIR_PROJECT),
|
|
56964
56755
|
JSON.stringify({
|
|
56965
56756
|
...projectLink,
|
|
56966
56757
|
projectName
|
|
56967
56758
|
})
|
|
56968
56759
|
);
|
|
56969
|
-
await writeReadme(
|
|
56970
|
-
const isGitIgnoreUpdated = await addToGitIgnore(
|
|
56760
|
+
await writeReadme(path);
|
|
56761
|
+
const isGitIgnoreUpdated = await addToGitIgnore(path);
|
|
56971
56762
|
output_manager_default.print(
|
|
56972
56763
|
prependEmoji(
|
|
56973
56764
|
`Linked to ${import_chalk12.default.bold(
|
|
@@ -56989,7 +56780,7 @@ async function linkFolderToProject(client, path2, projectLink, projectName, orgS
|
|
|
56989
56780
|
if (pullEnvConfirmed) {
|
|
56990
56781
|
const originalCwd = client.cwd;
|
|
56991
56782
|
try {
|
|
56992
|
-
client.cwd =
|
|
56783
|
+
client.cwd = path;
|
|
56993
56784
|
const args = autoConfirm ? ["--yes"] : [];
|
|
56994
56785
|
const exitCode = await pull(client, args, "vercel-cli:link");
|
|
56995
56786
|
if (exitCode !== 0) {
|
|
@@ -57156,11 +56947,12 @@ async function compileVercelConfig(workPath) {
|
|
|
57156
56947
|
const vercelConfigPath = await findVercelConfigFile(workPath);
|
|
57157
56948
|
const vercelDir = join9(workPath, VERCEL_DIR);
|
|
57158
56949
|
const compiledConfigPath = join9(vercelDir, "vercel.json");
|
|
56950
|
+
if (hasNowJson) {
|
|
56951
|
+
throw new DeprecatedNowJson(nowJsonPath);
|
|
56952
|
+
}
|
|
57159
56953
|
const foundConfigs = [];
|
|
57160
56954
|
if (hasVercelJson)
|
|
57161
56955
|
foundConfigs.push(vercelJsonPath);
|
|
57162
|
-
if (hasNowJson)
|
|
57163
|
-
foundConfigs.push(nowJsonPath);
|
|
57164
56956
|
if (hasVercelToml)
|
|
57165
56957
|
foundConfigs.push(vercelTomlPath);
|
|
57166
56958
|
if (vercelConfigPath)
|
|
@@ -57179,12 +56971,6 @@ async function compileVercelConfig(workPath) {
|
|
|
57179
56971
|
wasCompiled: false
|
|
57180
56972
|
};
|
|
57181
56973
|
}
|
|
57182
|
-
if (hasNowJson) {
|
|
57183
|
-
return {
|
|
57184
|
-
configPath: nowJsonPath,
|
|
57185
|
-
wasCompiled: false
|
|
57186
|
-
};
|
|
57187
|
-
}
|
|
57188
56974
|
if (await fileExists(compiledConfigPath)) {
|
|
57189
56975
|
return {
|
|
57190
56976
|
configPath: compiledConfigPath,
|
|
@@ -57331,7 +57117,6 @@ async function compileVercelConfig(workPath) {
|
|
|
57331
57117
|
}
|
|
57332
57118
|
async function getVercelConfigPath(workPath) {
|
|
57333
57119
|
const vercelJsonPath = join9(workPath, "vercel.json");
|
|
57334
|
-
const nowJsonPath = join9(workPath, "now.json");
|
|
57335
57120
|
const vercelTomlPath = join9(workPath, "vercel.toml");
|
|
57336
57121
|
const compiledConfigPath = join9(workPath, VERCEL_DIR, "vercel.json");
|
|
57337
57122
|
if (await fileExists(vercelJsonPath)) {
|
|
@@ -57340,18 +57125,14 @@ async function getVercelConfigPath(workPath) {
|
|
|
57340
57125
|
if (isVercelTomlEnabled() && await fileExists(vercelTomlPath)) {
|
|
57341
57126
|
return vercelTomlPath;
|
|
57342
57127
|
}
|
|
57343
|
-
if (await fileExists(nowJsonPath)) {
|
|
57344
|
-
return nowJsonPath;
|
|
57345
|
-
}
|
|
57346
57128
|
if (await fileExists(compiledConfigPath)) {
|
|
57347
57129
|
return compiledConfigPath;
|
|
57348
57130
|
}
|
|
57349
|
-
return
|
|
57131
|
+
return vercelJsonPath;
|
|
57350
57132
|
}
|
|
57351
57133
|
|
|
57352
57134
|
export {
|
|
57353
57135
|
require_lib2 as require_lib,
|
|
57354
|
-
require_xdg_app_paths,
|
|
57355
57136
|
humanizePath,
|
|
57356
57137
|
envTargetChoices,
|
|
57357
57138
|
getEnvTargetPlaceholder,
|
|
@@ -57363,8 +57144,6 @@ export {
|
|
|
57363
57144
|
updateSubcommand,
|
|
57364
57145
|
envCommand,
|
|
57365
57146
|
param,
|
|
57366
|
-
isDirectory,
|
|
57367
|
-
global_path_default,
|
|
57368
57147
|
getUser,
|
|
57369
57148
|
getTeams,
|
|
57370
57149
|
isBackspaceKey,
|
|
@@ -57376,13 +57155,13 @@ export {
|
|
|
57376
57155
|
useKeypress,
|
|
57377
57156
|
require_cli_width,
|
|
57378
57157
|
require_wrap_ansi,
|
|
57379
|
-
|
|
57158
|
+
require_lib3 as require_lib2,
|
|
57380
57159
|
onExit,
|
|
57381
57160
|
createPrompt,
|
|
57382
57161
|
esm_default,
|
|
57383
57162
|
esm_default2,
|
|
57384
57163
|
esm_default3,
|
|
57385
|
-
|
|
57164
|
+
require_lib8 as require_lib3,
|
|
57386
57165
|
require_inherits,
|
|
57387
57166
|
require_once,
|
|
57388
57167
|
require_end_of_stream,
|
|
@@ -57392,6 +57171,7 @@ export {
|
|
|
57392
57171
|
require_ajv,
|
|
57393
57172
|
getProjectByNameOrId,
|
|
57394
57173
|
getTeamById,
|
|
57174
|
+
isDirectory,
|
|
57395
57175
|
require_pluralize,
|
|
57396
57176
|
require_slugify,
|
|
57397
57177
|
createGitMeta,
|
|
@@ -57412,8 +57192,12 @@ export {
|
|
|
57412
57192
|
selectAndParseRemoteUrl,
|
|
57413
57193
|
checkExistsAndConnect,
|
|
57414
57194
|
getRepoLink,
|
|
57195
|
+
resolveGitRemote,
|
|
57196
|
+
fetchProjectsForRepoUrl,
|
|
57197
|
+
linkRepoProject,
|
|
57415
57198
|
ensureRepoLink,
|
|
57416
57199
|
addRepoLink,
|
|
57200
|
+
findRepoRoot,
|
|
57417
57201
|
findProjectsFromPath,
|
|
57418
57202
|
getEnvRecords,
|
|
57419
57203
|
pullEnvRecords,
|