vercel 53.2.0 → 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-C7TQF4LB.js → add-PGPQCMJK.js} +9 -9
- package/dist/chunks/{chunk-HQU26P3O.js → chunk-25WI74GM.js} +7 -7
- package/dist/chunks/{chunk-TPBMA2WF.js → chunk-2TNGZL25.js} +2 -2
- package/dist/chunks/{chunk-FFKXMQXF.js → chunk-3GJFG6GX.js} +4 -4
- package/dist/chunks/{chunk-4Q5VS23S.js → chunk-3NSIZGHP.js} +3 -3
- package/dist/chunks/{chunk-3GBASY24.js → chunk-3YDXZRSZ.js} +2 -2
- package/dist/chunks/{chunk-QT4W4DLL.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-7FQIXP2G.js → chunk-4VJ3GTBX.js} +1 -1
- package/dist/chunks/{chunk-4M7OEHTY.js → chunk-7EJTBI6M.js} +11 -11
- package/dist/chunks/{chunk-YEGTCAP6.js → chunk-7Z5XFBB4.js} +140 -86
- package/dist/chunks/{chunk-6N4RFT24.js → chunk-AAPG3P4D.js} +9 -11
- package/dist/chunks/{chunk-RJWHOSUL.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-AMXEAJTC.js → chunk-H57DZL5B.js} +3 -3
- package/dist/chunks/{chunk-NCUOSZ6X.js → chunk-HAJ2XRTQ.js} +2 -2
- package/dist/chunks/{chunk-2STWVKG7.js → chunk-HJVSVCAZ.js} +28 -13
- package/dist/chunks/{chunk-3LRN4Q7G.js → chunk-IS56OO2J.js} +3 -3
- package/dist/chunks/{chunk-AB7YF6KM.js → chunk-JJ36CB7A.js} +719 -923
- 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-FLZW555J.js → chunk-PR72OE3G.js} +2 -2
- package/dist/chunks/{chunk-IEKDY4FP.js → chunk-QGLS47RE.js} +1 -1
- package/dist/chunks/{chunk-MAPNH6ND.js → chunk-QV34LTI7.js} +403 -101
- package/dist/chunks/{chunk-2TJ5Y674.js → chunk-RI23R2QO.js} +4 -4
- package/dist/chunks/{chunk-MZVW2VM7.js → chunk-RYUPBGRO.js} +34 -45
- package/dist/chunks/{chunk-4DLW7XLJ.js → chunk-SOSCFYOT.js} +2 -2
- package/dist/chunks/{chunk-X6H25N2H.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-FK7LDWAI.js → chunk-XYYGNWMQ.js} +4 -4
- package/dist/chunks/{compile-vercel-config-QKQSM6VM.js → compile-vercel-config-H4BUE5BZ.js} +5 -5
- package/dist/chunks/{delete-LUW77HWU.js → delete-HVWVDBQF.js} +7 -7
- package/dist/chunks/{disable-ITW6P3R3.js → disable-CMBQPZ7L.js} +7 -7
- package/dist/chunks/{discard-GDFQ4V4V.js → discard-ZDNWUYLY.js} +7 -7
- package/dist/chunks/{edit-ZN7PQWZH.js → edit-YJYM3EKS.js} +9 -9
- package/dist/chunks/{enable-VTJNEZ5Q.js → enable-ITE7U5C4.js} +7 -7
- package/dist/chunks/{export-54A2LINR.js → export-VVN33IBK.js} +7 -7
- package/dist/chunks/{inspect-UMXWXZMZ.js → inspect-I7ILS3E2.js} +9 -9
- package/dist/chunks/{list-OJCLL4JA.js → list-6PZO3UIZ.js} +7 -7
- package/dist/chunks/{list-JZMV62KB.js → list-BWIEHOTA.js} +10 -10
- package/dist/chunks/{ls-B677IDAB.js → ls-LZZFID76.js} +9 -9
- package/dist/chunks/{publish-SI4H6WPL.js → publish-NULVZ7RB.js} +7 -7
- package/dist/chunks/{query-2CL2LAOA.js → query-BGI3AVJA.js} +9 -9
- package/dist/chunks/{reorder-E6R3ZL6W.js → reorder-G66QSKTR.js} +7 -7
- package/dist/chunks/{restore-ZVC2USSZ.js → restore-LHDVXFOH.js} +7 -7
- package/dist/chunks/{rm-F3ESGYZE.js → rm-DTAOTWXD.js} +9 -9
- package/dist/chunks/{routes-KDWN24QA.js → routes-2YVMQEPC.js} +2 -2
- package/dist/chunks/{rule-inspect-AWORVTNG.js → rule-inspect-AOITFBTB.js} +9 -9
- package/dist/chunks/{rules-KSDPKR6Z.js → rules-IW3XGCNA.js} +8 -8
- package/dist/chunks/{schema-UGF5QQ3K.js → schema-2VCQ2MAA.js} +10 -10
- package/dist/chunks/{types-FAFL42RV.js → types-7VDI75PV.js} +4 -4
- package/dist/chunks/{update-GXZVHW4O.js → update-L3DZ5STE.js} +9 -9
- package/dist/commands/build/index.js +21 -26
- package/dist/commands/deploy/index.js +64 -33
- package/dist/commands/dev/index.js +15 -15
- package/dist/commands/env/index.js +19 -19
- package/dist/commands/link/index.js +20 -20
- package/dist/commands/list/index.js +11 -11
- package/dist/commands-bulk.js +378 -210
- package/dist/index.js +298 -48
- package/dist/version.mjs +1 -1
- package/package.json +21 -19
|
@@ -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("/")}$`;
|
|
@@ -26221,15 +25985,15 @@ var require_get_project_paths = __commonJS({
|
|
|
26221
25985
|
var MAX_DEPTH_TRAVERSE = 3;
|
|
26222
25986
|
var getProjectPaths2 = async ({
|
|
26223
25987
|
fs: fs5,
|
|
26224
|
-
path
|
|
25988
|
+
path,
|
|
26225
25989
|
skipPaths,
|
|
26226
25990
|
depth = MAX_DEPTH_TRAVERSE
|
|
26227
25991
|
}) => {
|
|
26228
25992
|
if (depth === 0)
|
|
26229
25993
|
return [];
|
|
26230
25994
|
const allPaths = [];
|
|
26231
|
-
const topPath =
|
|
26232
|
-
if (
|
|
25995
|
+
const topPath = path ?? "./";
|
|
25996
|
+
if (path && skipPaths?.includes(path)) {
|
|
26233
25997
|
return allPaths;
|
|
26234
25998
|
}
|
|
26235
25999
|
const framework = await (0, import_detect_framework.detectFramework)({
|
|
@@ -26244,10 +26008,10 @@ var require_get_project_paths = __commonJS({
|
|
|
26244
26008
|
(stat2) => stat2.type === "dir" && !skipPaths?.includes(stat2.path)
|
|
26245
26009
|
);
|
|
26246
26010
|
const paths = (await Promise.all(
|
|
26247
|
-
childDirectories.map(({ path:
|
|
26011
|
+
childDirectories.map(({ path: path2 }) => {
|
|
26248
26012
|
return getProjectPaths2({
|
|
26249
26013
|
fs: fs5,
|
|
26250
|
-
path:
|
|
26014
|
+
path: path2,
|
|
26251
26015
|
depth: depth - 1,
|
|
26252
26016
|
skipPaths
|
|
26253
26017
|
});
|
|
@@ -26405,11 +26169,11 @@ var require_get_workspaces = __commonJS({
|
|
|
26405
26169
|
getWorkspaces: () => getWorkspaces3
|
|
26406
26170
|
});
|
|
26407
26171
|
module.exports = __toCommonJS2(get_workspaces_exports);
|
|
26408
|
-
var
|
|
26172
|
+
var import_path11 = __toESM2(__require("path"));
|
|
26409
26173
|
var import_workspace_managers = require_workspace_managers();
|
|
26410
26174
|
var import_detect_framework = require_detect_framework();
|
|
26411
26175
|
var MAX_DEPTH_TRAVERSE = 3;
|
|
26412
|
-
var posixPath =
|
|
26176
|
+
var posixPath = import_path11.default.posix;
|
|
26413
26177
|
async function getWorkspaces3({
|
|
26414
26178
|
fs: fs5,
|
|
26415
26179
|
depth = MAX_DEPTH_TRAVERSE,
|
|
@@ -29753,8 +29517,8 @@ var require_minimatch2 = __commonJS({
|
|
|
29753
29517
|
return new Minimatch(pattern, options).match(p);
|
|
29754
29518
|
};
|
|
29755
29519
|
module.exports = minimatch;
|
|
29756
|
-
var
|
|
29757
|
-
minimatch.sep =
|
|
29520
|
+
var path = require_path();
|
|
29521
|
+
minimatch.sep = path.sep;
|
|
29758
29522
|
var GLOBSTAR = Symbol("globstar **");
|
|
29759
29523
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
29760
29524
|
var expand = require_brace_expansion2();
|
|
@@ -30247,8 +30011,8 @@ var require_minimatch2 = __commonJS({
|
|
|
30247
30011
|
if (f === "/" && partial)
|
|
30248
30012
|
return true;
|
|
30249
30013
|
const options = this.options;
|
|
30250
|
-
if (
|
|
30251
|
-
f = f.split(
|
|
30014
|
+
if (path.sep !== "/") {
|
|
30015
|
+
f = f.split(path.sep).join("/");
|
|
30252
30016
|
}
|
|
30253
30017
|
f = f.split(slashSplit);
|
|
30254
30018
|
this.debug(this.pattern, "split", f);
|
|
@@ -30346,7 +30110,7 @@ var require_common3 = __commonJS({
|
|
|
30346
30110
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
30347
30111
|
}
|
|
30348
30112
|
var fs5 = __require("fs");
|
|
30349
|
-
var
|
|
30113
|
+
var path = __require("path");
|
|
30350
30114
|
var minimatch = require_minimatch2();
|
|
30351
30115
|
var isAbsolute = __require("path").isAbsolute;
|
|
30352
30116
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -30409,13 +30173,13 @@ var require_common3 = __commonJS({
|
|
|
30409
30173
|
self2.changedCwd = false;
|
|
30410
30174
|
var cwd = process.cwd();
|
|
30411
30175
|
if (!ownProp(options, "cwd"))
|
|
30412
|
-
self2.cwd =
|
|
30176
|
+
self2.cwd = path.resolve(cwd);
|
|
30413
30177
|
else {
|
|
30414
|
-
self2.cwd =
|
|
30178
|
+
self2.cwd = path.resolve(options.cwd);
|
|
30415
30179
|
self2.changedCwd = self2.cwd !== cwd;
|
|
30416
30180
|
}
|
|
30417
|
-
self2.root = options.root ||
|
|
30418
|
-
self2.root =
|
|
30181
|
+
self2.root = options.root || path.resolve(self2.cwd, "/");
|
|
30182
|
+
self2.root = path.resolve(self2.root);
|
|
30419
30183
|
self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
30420
30184
|
self2.nomount = !!options.nomount;
|
|
30421
30185
|
if (process.platform === "win32") {
|
|
@@ -30498,30 +30262,30 @@ var require_common3 = __commonJS({
|
|
|
30498
30262
|
function makeAbs(self2, f) {
|
|
30499
30263
|
var abs = f;
|
|
30500
30264
|
if (f.charAt(0) === "/") {
|
|
30501
|
-
abs =
|
|
30265
|
+
abs = path.join(self2.root, f);
|
|
30502
30266
|
} else if (isAbsolute(f) || f === "") {
|
|
30503
30267
|
abs = f;
|
|
30504
30268
|
} else if (self2.changedCwd) {
|
|
30505
|
-
abs =
|
|
30269
|
+
abs = path.resolve(self2.cwd, f);
|
|
30506
30270
|
} else {
|
|
30507
|
-
abs =
|
|
30271
|
+
abs = path.resolve(f);
|
|
30508
30272
|
}
|
|
30509
30273
|
if (process.platform === "win32")
|
|
30510
30274
|
abs = abs.replace(/\\/g, "/");
|
|
30511
30275
|
return abs;
|
|
30512
30276
|
}
|
|
30513
|
-
function isIgnored(self2,
|
|
30277
|
+
function isIgnored(self2, path2) {
|
|
30514
30278
|
if (!self2.ignore.length)
|
|
30515
30279
|
return false;
|
|
30516
30280
|
return self2.ignore.some(function(item) {
|
|
30517
|
-
return item.matcher.match(
|
|
30281
|
+
return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
|
|
30518
30282
|
});
|
|
30519
30283
|
}
|
|
30520
|
-
function childrenIgnored(self2,
|
|
30284
|
+
function childrenIgnored(self2, path2) {
|
|
30521
30285
|
if (!self2.ignore.length)
|
|
30522
30286
|
return false;
|
|
30523
30287
|
return self2.ignore.some(function(item) {
|
|
30524
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
30288
|
+
return !!(item.gmatcher && item.gmatcher.match(path2));
|
|
30525
30289
|
});
|
|
30526
30290
|
}
|
|
30527
30291
|
}
|
|
@@ -30537,7 +30301,7 @@ var require_sync = __commonJS({
|
|
|
30537
30301
|
var Minimatch = minimatch.Minimatch;
|
|
30538
30302
|
var Glob = require_glob().Glob;
|
|
30539
30303
|
var util = __require("util");
|
|
30540
|
-
var
|
|
30304
|
+
var path = __require("path");
|
|
30541
30305
|
var assert = __require("assert");
|
|
30542
30306
|
var isAbsolute = __require("path").isAbsolute;
|
|
30543
30307
|
var common2 = require_common3();
|
|
@@ -30665,7 +30429,7 @@ var require_sync = __commonJS({
|
|
|
30665
30429
|
e = prefix + e;
|
|
30666
30430
|
}
|
|
30667
30431
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
30668
|
-
e =
|
|
30432
|
+
e = path.join(this.root, e);
|
|
30669
30433
|
}
|
|
30670
30434
|
this._emitMatch(index, e);
|
|
30671
30435
|
}
|
|
@@ -30814,9 +30578,9 @@ var require_sync = __commonJS({
|
|
|
30814
30578
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
30815
30579
|
var trail = /[\/\\]$/.test(prefix);
|
|
30816
30580
|
if (prefix.charAt(0) === "/") {
|
|
30817
|
-
prefix =
|
|
30581
|
+
prefix = path.join(this.root, prefix);
|
|
30818
30582
|
} else {
|
|
30819
|
-
prefix =
|
|
30583
|
+
prefix = path.resolve(this.root, prefix);
|
|
30820
30584
|
if (trail)
|
|
30821
30585
|
prefix += "/";
|
|
30822
30586
|
}
|
|
@@ -31011,7 +30775,7 @@ var require_glob = __commonJS({
|
|
|
31011
30775
|
var Minimatch = minimatch.Minimatch;
|
|
31012
30776
|
var inherits = require_inherits();
|
|
31013
30777
|
var EE = __require("events").EventEmitter;
|
|
31014
|
-
var
|
|
30778
|
+
var path = __require("path");
|
|
31015
30779
|
var assert = __require("assert");
|
|
31016
30780
|
var isAbsolute = __require("path").isAbsolute;
|
|
31017
30781
|
var globSync = require_sync();
|
|
@@ -31294,7 +31058,7 @@ var require_glob = __commonJS({
|
|
|
31294
31058
|
e = prefix + e;
|
|
31295
31059
|
}
|
|
31296
31060
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
31297
|
-
e =
|
|
31061
|
+
e = path.join(this.root, e);
|
|
31298
31062
|
}
|
|
31299
31063
|
this._emitMatch(index, e);
|
|
31300
31064
|
}
|
|
@@ -31481,9 +31245,9 @@ var require_glob = __commonJS({
|
|
|
31481
31245
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
31482
31246
|
var trail = /[\/\\]$/.test(prefix);
|
|
31483
31247
|
if (prefix.charAt(0) === "/") {
|
|
31484
|
-
prefix =
|
|
31248
|
+
prefix = path.join(this.root, prefix);
|
|
31485
31249
|
} else {
|
|
31486
|
-
prefix =
|
|
31250
|
+
prefix = path.resolve(this.root, prefix);
|
|
31487
31251
|
if (trail)
|
|
31488
31252
|
prefix += "/";
|
|
31489
31253
|
}
|
|
@@ -32657,7 +32421,7 @@ var require_stringify = __commonJS({
|
|
|
32657
32421
|
});
|
|
32658
32422
|
|
|
32659
32423
|
// ../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/index.js
|
|
32660
|
-
var
|
|
32424
|
+
var require_lib4 = __commonJS({
|
|
32661
32425
|
"../../node_modules/.pnpm/json5@2.2.2/node_modules/json5/lib/index.js"(exports, module) {
|
|
32662
32426
|
var parse3 = require_parse();
|
|
32663
32427
|
var stringify = require_stringify();
|
|
@@ -32706,20 +32470,20 @@ var require_get_glob_fs = __commonJS({
|
|
|
32706
32470
|
});
|
|
32707
32471
|
module.exports = __toCommonJS2(get_glob_fs_exports);
|
|
32708
32472
|
var import_fs4 = __toESM2(__require("fs"));
|
|
32709
|
-
function removeWindowsPrefix(
|
|
32710
|
-
return
|
|
32473
|
+
function removeWindowsPrefix(path) {
|
|
32474
|
+
return path.replace(/^[a-zA-Z]:/, "");
|
|
32711
32475
|
}
|
|
32712
32476
|
function getGlobFs(_fs) {
|
|
32713
|
-
const readdir = (
|
|
32714
|
-
_fs.readdir(removeWindowsPrefix(String(
|
|
32477
|
+
const readdir = (path, callback) => {
|
|
32478
|
+
_fs.readdir(removeWindowsPrefix(String(path))).then(
|
|
32715
32479
|
(stats) => callback(
|
|
32716
32480
|
null,
|
|
32717
32481
|
stats.map((stat22) => stat22.name)
|
|
32718
32482
|
)
|
|
32719
32483
|
).catch((err) => callback(err, []));
|
|
32720
32484
|
};
|
|
32721
|
-
const stat2 = (
|
|
32722
|
-
_fs.isFile(removeWindowsPrefix(String(
|
|
32485
|
+
const stat2 = (path, callback) => {
|
|
32486
|
+
_fs.isFile(removeWindowsPrefix(String(path))).then((isPathAFile) => {
|
|
32723
32487
|
callback(null, {
|
|
32724
32488
|
ino: 0,
|
|
32725
32489
|
mode: 0,
|
|
@@ -32802,12 +32566,12 @@ var require_get_workspace_package_paths = __commonJS({
|
|
|
32802
32566
|
getWorkspacePackagePaths: () => getWorkspacePackagePaths3
|
|
32803
32567
|
});
|
|
32804
32568
|
module.exports = __toCommonJS2(get_workspace_package_paths_exports);
|
|
32805
|
-
var
|
|
32569
|
+
var import_path11 = __toESM2(__require("path"));
|
|
32806
32570
|
var import_js_yaml = __toESM2(require_js_yaml3());
|
|
32807
32571
|
var import_glob = __toESM2(require_glob());
|
|
32808
|
-
var import_json5 = __toESM2(
|
|
32572
|
+
var import_json5 = __toESM2(require_lib4());
|
|
32809
32573
|
var import_get_glob_fs = require_get_glob_fs();
|
|
32810
|
-
var posixPath =
|
|
32574
|
+
var posixPath = import_path11.default.posix;
|
|
32811
32575
|
async function getWorkspacePackagePaths3({
|
|
32812
32576
|
fs: fs5,
|
|
32813
32577
|
workspace
|
|
@@ -33174,11 +32938,11 @@ var require_get_monorepo_default_settings = __commonJS({
|
|
|
33174
32938
|
getMonorepoDefaultSettings: () => getMonorepoDefaultSettings
|
|
33175
32939
|
});
|
|
33176
32940
|
module.exports = __toCommonJS2(get_monorepo_default_settings_exports);
|
|
33177
|
-
var
|
|
32941
|
+
var import_path11 = __require("path");
|
|
33178
32942
|
var import_monorepo_managers = require_monorepo_managers();
|
|
33179
32943
|
var import_package_managers = require_package_managers();
|
|
33180
32944
|
var import_detect_framework = require_detect_framework();
|
|
33181
|
-
var import_json5 = __toESM2(
|
|
32945
|
+
var import_json5 = __toESM2(require_lib4());
|
|
33182
32946
|
var import_semver = __toESM2(require_semver());
|
|
33183
32947
|
var MissingBuildPipeline = class extends Error {
|
|
33184
32948
|
constructor(usesTasks) {
|
|
@@ -33278,8 +33042,8 @@ var require_get_monorepo_default_settings = __commonJS({
|
|
|
33278
33042
|
const nxJSON = import_json5.default.parse(nxJSONBuf.toString("utf-8"));
|
|
33279
33043
|
if (!nxJSON?.targetDefaults?.build) {
|
|
33280
33044
|
const [projectJSONBuf, packageJSONBuf] = await Promise.all([
|
|
33281
|
-
detectorFilesystem.readFile((0,
|
|
33282
|
-
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)
|
|
33283
33047
|
]);
|
|
33284
33048
|
let hasBuildTarget = false;
|
|
33285
33049
|
if (projectJSONBuf) {
|
|
@@ -33634,9 +33398,9 @@ var require_fs3 = __commonJS({
|
|
|
33634
33398
|
var require_win32 = __commonJS({
|
|
33635
33399
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/win32.js"(exports, module) {
|
|
33636
33400
|
"use strict";
|
|
33637
|
-
var
|
|
33401
|
+
var path = __require("path");
|
|
33638
33402
|
function getRootPath(p) {
|
|
33639
|
-
p =
|
|
33403
|
+
p = path.normalize(path.resolve(p)).split(path.sep);
|
|
33640
33404
|
if (p.length > 0)
|
|
33641
33405
|
return p[0];
|
|
33642
33406
|
return null;
|
|
@@ -33659,7 +33423,7 @@ var require_mkdirs2 = __commonJS({
|
|
|
33659
33423
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports, module) {
|
|
33660
33424
|
"use strict";
|
|
33661
33425
|
var fs5 = require_graceful_fs();
|
|
33662
|
-
var
|
|
33426
|
+
var path = __require("path");
|
|
33663
33427
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
33664
33428
|
var o777 = parseInt("0777", 8);
|
|
33665
33429
|
function mkdirs(p, opts, callback, made) {
|
|
@@ -33683,7 +33447,7 @@ var require_mkdirs2 = __commonJS({
|
|
|
33683
33447
|
made = null;
|
|
33684
33448
|
callback = callback || function() {
|
|
33685
33449
|
};
|
|
33686
|
-
p =
|
|
33450
|
+
p = path.resolve(p);
|
|
33687
33451
|
xfs.mkdir(p, mode, (er) => {
|
|
33688
33452
|
if (!er) {
|
|
33689
33453
|
made = made || p;
|
|
@@ -33691,9 +33455,9 @@ var require_mkdirs2 = __commonJS({
|
|
|
33691
33455
|
}
|
|
33692
33456
|
switch (er.code) {
|
|
33693
33457
|
case "ENOENT":
|
|
33694
|
-
if (
|
|
33458
|
+
if (path.dirname(p) === p)
|
|
33695
33459
|
return callback(er);
|
|
33696
|
-
mkdirs(
|
|
33460
|
+
mkdirs(path.dirname(p), opts, (er2, made2) => {
|
|
33697
33461
|
if (er2)
|
|
33698
33462
|
callback(er2, made2);
|
|
33699
33463
|
else
|
|
@@ -33720,7 +33484,7 @@ var require_mkdirs_sync = __commonJS({
|
|
|
33720
33484
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports, module) {
|
|
33721
33485
|
"use strict";
|
|
33722
33486
|
var fs5 = require_graceful_fs();
|
|
33723
|
-
var
|
|
33487
|
+
var path = __require("path");
|
|
33724
33488
|
var invalidWin32Path = require_win32().invalidWin32Path;
|
|
33725
33489
|
var o777 = parseInt("0777", 8);
|
|
33726
33490
|
function mkdirsSync(p, opts, made) {
|
|
@@ -33739,15 +33503,15 @@ var require_mkdirs_sync = __commonJS({
|
|
|
33739
33503
|
}
|
|
33740
33504
|
if (!made)
|
|
33741
33505
|
made = null;
|
|
33742
|
-
p =
|
|
33506
|
+
p = path.resolve(p);
|
|
33743
33507
|
try {
|
|
33744
33508
|
xfs.mkdirSync(p, mode);
|
|
33745
33509
|
made = made || p;
|
|
33746
33510
|
} catch (err0) {
|
|
33747
33511
|
if (err0.code === "ENOENT") {
|
|
33748
|
-
if (
|
|
33512
|
+
if (path.dirname(p) === p)
|
|
33749
33513
|
throw err0;
|
|
33750
|
-
made = mkdirsSync(
|
|
33514
|
+
made = mkdirsSync(path.dirname(p), opts, made);
|
|
33751
33515
|
mkdirsSync(p, opts, made);
|
|
33752
33516
|
} else {
|
|
33753
33517
|
let stat2;
|
|
@@ -33791,10 +33555,10 @@ var require_utimes2 = __commonJS({
|
|
|
33791
33555
|
"use strict";
|
|
33792
33556
|
var fs5 = require_graceful_fs();
|
|
33793
33557
|
var os2 = __require("os");
|
|
33794
|
-
var
|
|
33558
|
+
var path = __require("path");
|
|
33795
33559
|
function hasMillisResSync() {
|
|
33796
|
-
let tmpfile =
|
|
33797
|
-
tmpfile =
|
|
33560
|
+
let tmpfile = path.join("millis-test-sync" + Date.now().toString() + Math.random().toString().slice(2));
|
|
33561
|
+
tmpfile = path.join(os2.tmpdir(), tmpfile);
|
|
33798
33562
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
33799
33563
|
fs5.writeFileSync(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141");
|
|
33800
33564
|
const fd = fs5.openSync(tmpfile, "r+");
|
|
@@ -33803,8 +33567,8 @@ var require_utimes2 = __commonJS({
|
|
|
33803
33567
|
return fs5.statSync(tmpfile).mtime > 1435410243e3;
|
|
33804
33568
|
}
|
|
33805
33569
|
function hasMillisRes(callback) {
|
|
33806
|
-
let tmpfile =
|
|
33807
|
-
tmpfile =
|
|
33570
|
+
let tmpfile = path.join("millis-test" + Date.now().toString() + Math.random().toString().slice(2));
|
|
33571
|
+
tmpfile = path.join(os2.tmpdir(), tmpfile);
|
|
33808
33572
|
const d = /* @__PURE__ */ new Date(1435410243862);
|
|
33809
33573
|
fs5.writeFile(tmpfile, "https://github.com/jprichardson/node-fs-extra/pull/141", (err) => {
|
|
33810
33574
|
if (err)
|
|
@@ -33837,8 +33601,8 @@ var require_utimes2 = __commonJS({
|
|
|
33837
33601
|
throw new Error("fs-extra: timeRemoveMillis() unknown parameter type");
|
|
33838
33602
|
}
|
|
33839
33603
|
}
|
|
33840
|
-
function utimesMillis(
|
|
33841
|
-
fs5.open(
|
|
33604
|
+
function utimesMillis(path2, atime, mtime, callback) {
|
|
33605
|
+
fs5.open(path2, "r+", (err, fd) => {
|
|
33842
33606
|
if (err)
|
|
33843
33607
|
return callback(err);
|
|
33844
33608
|
fs5.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -33849,8 +33613,8 @@ var require_utimes2 = __commonJS({
|
|
|
33849
33613
|
});
|
|
33850
33614
|
});
|
|
33851
33615
|
}
|
|
33852
|
-
function utimesMillisSync(
|
|
33853
|
-
const fd = fs5.openSync(
|
|
33616
|
+
function utimesMillisSync(path2, atime, mtime) {
|
|
33617
|
+
const fd = fs5.openSync(path2, "r+");
|
|
33854
33618
|
fs5.futimesSync(fd, atime, mtime);
|
|
33855
33619
|
return fs5.closeSync(fd);
|
|
33856
33620
|
}
|
|
@@ -33869,7 +33633,7 @@ var require_stat2 = __commonJS({
|
|
|
33869
33633
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
33870
33634
|
"use strict";
|
|
33871
33635
|
var fs5 = __require("fs");
|
|
33872
|
-
var
|
|
33636
|
+
var path = __require("path");
|
|
33873
33637
|
var NODE_VERSION_MAJOR_WITH_BIGINT = 10;
|
|
33874
33638
|
var NODE_VERSION_MINOR_WITH_BIGINT = 5;
|
|
33875
33639
|
var NODE_VERSION_PATCH_WITH_BIGINT = 0;
|
|
@@ -33965,9 +33729,9 @@ var require_stat2 = __commonJS({
|
|
|
33965
33729
|
return { srcStat, destStat };
|
|
33966
33730
|
}
|
|
33967
33731
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
33968
|
-
const srcParent =
|
|
33969
|
-
const destParent =
|
|
33970
|
-
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)
|
|
33971
33735
|
return cb();
|
|
33972
33736
|
if (nodeSupportsBigInt()) {
|
|
33973
33737
|
fs5.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
@@ -33996,9 +33760,9 @@ var require_stat2 = __commonJS({
|
|
|
33996
33760
|
}
|
|
33997
33761
|
}
|
|
33998
33762
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
33999
|
-
const srcParent =
|
|
34000
|
-
const destParent =
|
|
34001
|
-
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)
|
|
34002
33766
|
return;
|
|
34003
33767
|
let destStat;
|
|
34004
33768
|
try {
|
|
@@ -34018,8 +33782,8 @@ var require_stat2 = __commonJS({
|
|
|
34018
33782
|
return checkParentPathsSync(src, srcStat, destParent, funcName);
|
|
34019
33783
|
}
|
|
34020
33784
|
function isSrcSubdir(src, dest) {
|
|
34021
|
-
const srcArr =
|
|
34022
|
-
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);
|
|
34023
33787
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
34024
33788
|
}
|
|
34025
33789
|
function errMsg(src, dest, funcName) {
|
|
@@ -34057,7 +33821,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34057
33821
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module) {
|
|
34058
33822
|
"use strict";
|
|
34059
33823
|
var fs5 = __require("fs");
|
|
34060
|
-
var
|
|
33824
|
+
var path = __require("path");
|
|
34061
33825
|
var mkdirpSync = require_mkdirs3().mkdirsSync;
|
|
34062
33826
|
var utimesSync = require_utimes2().utimesMillisSync;
|
|
34063
33827
|
var stat2 = require_stat2();
|
|
@@ -34080,7 +33844,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34080
33844
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
34081
33845
|
if (opts.filter && !opts.filter(src, dest))
|
|
34082
33846
|
return;
|
|
34083
|
-
const destParent =
|
|
33847
|
+
const destParent = path.dirname(dest);
|
|
34084
33848
|
if (!fs5.existsSync(destParent))
|
|
34085
33849
|
mkdirpSync(destParent);
|
|
34086
33850
|
return startCopy(destStat, src, dest, opts);
|
|
@@ -34157,15 +33921,15 @@ var require_copy_sync3 = __commonJS({
|
|
|
34157
33921
|
fs5.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
34158
33922
|
}
|
|
34159
33923
|
function copyDirItem(item, src, dest, opts) {
|
|
34160
|
-
const srcItem =
|
|
34161
|
-
const destItem =
|
|
33924
|
+
const srcItem = path.join(src, item);
|
|
33925
|
+
const destItem = path.join(dest, item);
|
|
34162
33926
|
const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy");
|
|
34163
33927
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
34164
33928
|
}
|
|
34165
33929
|
function onLink(destStat, src, dest, opts) {
|
|
34166
33930
|
let resolvedSrc = fs5.readlinkSync(src);
|
|
34167
33931
|
if (opts.dereference) {
|
|
34168
|
-
resolvedSrc =
|
|
33932
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34169
33933
|
}
|
|
34170
33934
|
if (!destStat) {
|
|
34171
33935
|
return fs5.symlinkSync(resolvedSrc, dest);
|
|
@@ -34179,7 +33943,7 @@ var require_copy_sync3 = __commonJS({
|
|
|
34179
33943
|
throw err;
|
|
34180
33944
|
}
|
|
34181
33945
|
if (opts.dereference) {
|
|
34182
|
-
resolvedDest =
|
|
33946
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34183
33947
|
}
|
|
34184
33948
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34185
33949
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34214,8 +33978,8 @@ var require_path_exists2 = __commonJS({
|
|
|
34214
33978
|
"use strict";
|
|
34215
33979
|
var u = require_universalify2().fromPromise;
|
|
34216
33980
|
var fs5 = require_fs3();
|
|
34217
|
-
function pathExists2(
|
|
34218
|
-
return fs5.access(
|
|
33981
|
+
function pathExists2(path) {
|
|
33982
|
+
return fs5.access(path).then(() => true).catch(() => false);
|
|
34219
33983
|
}
|
|
34220
33984
|
module.exports = {
|
|
34221
33985
|
pathExists: u(pathExists2),
|
|
@@ -34229,7 +33993,7 @@ var require_copy3 = __commonJS({
|
|
|
34229
33993
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
34230
33994
|
"use strict";
|
|
34231
33995
|
var fs5 = __require("fs");
|
|
34232
|
-
var
|
|
33996
|
+
var path = __require("path");
|
|
34233
33997
|
var mkdirp = require_mkdirs3().mkdirs;
|
|
34234
33998
|
var pathExists2 = require_path_exists2().pathExists;
|
|
34235
33999
|
var utimes = require_utimes2().utimesMillis;
|
|
@@ -34265,7 +34029,7 @@ var require_copy3 = __commonJS({
|
|
|
34265
34029
|
});
|
|
34266
34030
|
}
|
|
34267
34031
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
34268
|
-
const destParent =
|
|
34032
|
+
const destParent = path.dirname(dest);
|
|
34269
34033
|
pathExists2(destParent, (err, dirExists) => {
|
|
34270
34034
|
if (err)
|
|
34271
34035
|
return cb(err);
|
|
@@ -34380,8 +34144,8 @@ var require_copy3 = __commonJS({
|
|
|
34380
34144
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
34381
34145
|
}
|
|
34382
34146
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
34383
|
-
const srcItem =
|
|
34384
|
-
const destItem =
|
|
34147
|
+
const srcItem = path.join(src, item);
|
|
34148
|
+
const destItem = path.join(dest, item);
|
|
34385
34149
|
stat2.checkPaths(srcItem, destItem, "copy", (err, stats) => {
|
|
34386
34150
|
if (err)
|
|
34387
34151
|
return cb(err);
|
|
@@ -34398,7 +34162,7 @@ var require_copy3 = __commonJS({
|
|
|
34398
34162
|
if (err)
|
|
34399
34163
|
return cb(err);
|
|
34400
34164
|
if (opts.dereference) {
|
|
34401
|
-
resolvedSrc =
|
|
34165
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34402
34166
|
}
|
|
34403
34167
|
if (!destStat) {
|
|
34404
34168
|
return fs5.symlink(resolvedSrc, dest, cb);
|
|
@@ -34410,7 +34174,7 @@ var require_copy3 = __commonJS({
|
|
|
34410
34174
|
return cb(err2);
|
|
34411
34175
|
}
|
|
34412
34176
|
if (opts.dereference) {
|
|
34413
|
-
resolvedDest =
|
|
34177
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34414
34178
|
}
|
|
34415
34179
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34416
34180
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -34450,7 +34214,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34450
34214
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module) {
|
|
34451
34215
|
"use strict";
|
|
34452
34216
|
var fs5 = require_graceful_fs();
|
|
34453
|
-
var
|
|
34217
|
+
var path = __require("path");
|
|
34454
34218
|
var assert = __require("assert");
|
|
34455
34219
|
var isWindows = process.platform === "win32";
|
|
34456
34220
|
function defaults(options) {
|
|
@@ -34607,7 +34371,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34607
34371
|
if (n === 0)
|
|
34608
34372
|
return options.rmdir(p, cb);
|
|
34609
34373
|
files.forEach((f) => {
|
|
34610
|
-
rimraf(
|
|
34374
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
34611
34375
|
if (errState) {
|
|
34612
34376
|
return;
|
|
34613
34377
|
}
|
|
@@ -34676,7 +34440,7 @@ var require_rimraf2 = __commonJS({
|
|
|
34676
34440
|
function rmkidsSync(p, options) {
|
|
34677
34441
|
assert(p);
|
|
34678
34442
|
assert(options);
|
|
34679
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
34443
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
34680
34444
|
if (isWindows) {
|
|
34681
34445
|
const startTime = Date.now();
|
|
34682
34446
|
do {
|
|
@@ -34715,7 +34479,7 @@ var require_empty2 = __commonJS({
|
|
|
34715
34479
|
"use strict";
|
|
34716
34480
|
var u = require_universalify2().fromCallback;
|
|
34717
34481
|
var fs5 = __require("fs");
|
|
34718
|
-
var
|
|
34482
|
+
var path = __require("path");
|
|
34719
34483
|
var mkdir2 = require_mkdirs3();
|
|
34720
34484
|
var remove = require_remove2();
|
|
34721
34485
|
var emptyDir = u(function emptyDir2(dir, callback) {
|
|
@@ -34724,7 +34488,7 @@ var require_empty2 = __commonJS({
|
|
|
34724
34488
|
fs5.readdir(dir, (err, items) => {
|
|
34725
34489
|
if (err)
|
|
34726
34490
|
return mkdir2.mkdirs(dir, callback);
|
|
34727
|
-
items = items.map((item) =>
|
|
34491
|
+
items = items.map((item) => path.join(dir, item));
|
|
34728
34492
|
deleteItem();
|
|
34729
34493
|
function deleteItem() {
|
|
34730
34494
|
const item = items.pop();
|
|
@@ -34746,7 +34510,7 @@ var require_empty2 = __commonJS({
|
|
|
34746
34510
|
return mkdir2.mkdirsSync(dir);
|
|
34747
34511
|
}
|
|
34748
34512
|
items.forEach((item) => {
|
|
34749
|
-
item =
|
|
34513
|
+
item = path.join(dir, item);
|
|
34750
34514
|
remove.removeSync(item);
|
|
34751
34515
|
});
|
|
34752
34516
|
}
|
|
@@ -34764,7 +34528,7 @@ var require_file2 = __commonJS({
|
|
|
34764
34528
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
34765
34529
|
"use strict";
|
|
34766
34530
|
var u = require_universalify2().fromCallback;
|
|
34767
|
-
var
|
|
34531
|
+
var path = __require("path");
|
|
34768
34532
|
var fs5 = require_graceful_fs();
|
|
34769
34533
|
var mkdir2 = require_mkdirs3();
|
|
34770
34534
|
var pathExists2 = require_path_exists2().pathExists;
|
|
@@ -34779,7 +34543,7 @@ var require_file2 = __commonJS({
|
|
|
34779
34543
|
fs5.stat(file, (err, stats) => {
|
|
34780
34544
|
if (!err && stats.isFile())
|
|
34781
34545
|
return callback();
|
|
34782
|
-
const dir =
|
|
34546
|
+
const dir = path.dirname(file);
|
|
34783
34547
|
pathExists2(dir, (err2, dirExists) => {
|
|
34784
34548
|
if (err2)
|
|
34785
34549
|
return callback(err2);
|
|
@@ -34801,7 +34565,7 @@ var require_file2 = __commonJS({
|
|
|
34801
34565
|
}
|
|
34802
34566
|
if (stats && stats.isFile())
|
|
34803
34567
|
return;
|
|
34804
|
-
const dir =
|
|
34568
|
+
const dir = path.dirname(file);
|
|
34805
34569
|
if (!fs5.existsSync(dir)) {
|
|
34806
34570
|
mkdir2.mkdirsSync(dir);
|
|
34807
34571
|
}
|
|
@@ -34819,7 +34583,7 @@ var require_link2 = __commonJS({
|
|
|
34819
34583
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
34820
34584
|
"use strict";
|
|
34821
34585
|
var u = require_universalify2().fromCallback;
|
|
34822
|
-
var
|
|
34586
|
+
var path = __require("path");
|
|
34823
34587
|
var fs5 = require_graceful_fs();
|
|
34824
34588
|
var mkdir2 = require_mkdirs3();
|
|
34825
34589
|
var pathExists2 = require_path_exists2().pathExists;
|
|
@@ -34841,7 +34605,7 @@ var require_link2 = __commonJS({
|
|
|
34841
34605
|
err2.message = err2.message.replace("lstat", "ensureLink");
|
|
34842
34606
|
return callback(err2);
|
|
34843
34607
|
}
|
|
34844
|
-
const dir =
|
|
34608
|
+
const dir = path.dirname(dstpath);
|
|
34845
34609
|
pathExists2(dir, (err3, dirExists) => {
|
|
34846
34610
|
if (err3)
|
|
34847
34611
|
return callback(err3);
|
|
@@ -34866,7 +34630,7 @@ var require_link2 = __commonJS({
|
|
|
34866
34630
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34867
34631
|
throw err;
|
|
34868
34632
|
}
|
|
34869
|
-
const dir =
|
|
34633
|
+
const dir = path.dirname(dstpath);
|
|
34870
34634
|
const dirExists = fs5.existsSync(dir);
|
|
34871
34635
|
if (dirExists)
|
|
34872
34636
|
return fs5.linkSync(srcpath, dstpath);
|
|
@@ -34884,11 +34648,11 @@ var require_link2 = __commonJS({
|
|
|
34884
34648
|
var require_symlink_paths2 = __commonJS({
|
|
34885
34649
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
34886
34650
|
"use strict";
|
|
34887
|
-
var
|
|
34651
|
+
var path = __require("path");
|
|
34888
34652
|
var fs5 = require_graceful_fs();
|
|
34889
34653
|
var pathExists2 = require_path_exists2().pathExists;
|
|
34890
34654
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
34891
|
-
if (
|
|
34655
|
+
if (path.isAbsolute(srcpath)) {
|
|
34892
34656
|
return fs5.lstat(srcpath, (err) => {
|
|
34893
34657
|
if (err) {
|
|
34894
34658
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -34900,8 +34664,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34900
34664
|
});
|
|
34901
34665
|
});
|
|
34902
34666
|
} else {
|
|
34903
|
-
const dstdir =
|
|
34904
|
-
const relativeToDst =
|
|
34667
|
+
const dstdir = path.dirname(dstpath);
|
|
34668
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34905
34669
|
return pathExists2(relativeToDst, (err, exists) => {
|
|
34906
34670
|
if (err)
|
|
34907
34671
|
return callback(err);
|
|
@@ -34918,7 +34682,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34918
34682
|
}
|
|
34919
34683
|
return callback(null, {
|
|
34920
34684
|
"toCwd": srcpath,
|
|
34921
|
-
"toDst":
|
|
34685
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
34922
34686
|
});
|
|
34923
34687
|
});
|
|
34924
34688
|
}
|
|
@@ -34927,7 +34691,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34927
34691
|
}
|
|
34928
34692
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34929
34693
|
let exists;
|
|
34930
|
-
if (
|
|
34694
|
+
if (path.isAbsolute(srcpath)) {
|
|
34931
34695
|
exists = fs5.existsSync(srcpath);
|
|
34932
34696
|
if (!exists)
|
|
34933
34697
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -34936,8 +34700,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34936
34700
|
"toDst": srcpath
|
|
34937
34701
|
};
|
|
34938
34702
|
} else {
|
|
34939
|
-
const dstdir =
|
|
34940
|
-
const relativeToDst =
|
|
34703
|
+
const dstdir = path.dirname(dstpath);
|
|
34704
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34941
34705
|
exists = fs5.existsSync(relativeToDst);
|
|
34942
34706
|
if (exists) {
|
|
34943
34707
|
return {
|
|
@@ -34950,7 +34714,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
34950
34714
|
throw new Error("relative srcpath does not exist");
|
|
34951
34715
|
return {
|
|
34952
34716
|
"toCwd": srcpath,
|
|
34953
|
-
"toDst":
|
|
34717
|
+
"toDst": path.relative(dstdir, srcpath)
|
|
34954
34718
|
};
|
|
34955
34719
|
}
|
|
34956
34720
|
}
|
|
@@ -35002,7 +34766,7 @@ var require_symlink2 = __commonJS({
|
|
|
35002
34766
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
35003
34767
|
"use strict";
|
|
35004
34768
|
var u = require_universalify2().fromCallback;
|
|
35005
|
-
var
|
|
34769
|
+
var path = __require("path");
|
|
35006
34770
|
var fs5 = require_graceful_fs();
|
|
35007
34771
|
var _mkdirs = require_mkdirs3();
|
|
35008
34772
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -35029,7 +34793,7 @@ var require_symlink2 = __commonJS({
|
|
|
35029
34793
|
symlinkType(relative2.toCwd, type, (err3, type2) => {
|
|
35030
34794
|
if (err3)
|
|
35031
34795
|
return callback(err3);
|
|
35032
|
-
const dir =
|
|
34796
|
+
const dir = path.dirname(dstpath);
|
|
35033
34797
|
pathExists2(dir, (err4, dirExists) => {
|
|
35034
34798
|
if (err4)
|
|
35035
34799
|
return callback(err4);
|
|
@@ -35052,7 +34816,7 @@ var require_symlink2 = __commonJS({
|
|
|
35052
34816
|
const relative2 = symlinkPathsSync(srcpath, dstpath);
|
|
35053
34817
|
srcpath = relative2.toDst;
|
|
35054
34818
|
type = symlinkTypeSync(relative2.toCwd, type);
|
|
35055
|
-
const dir =
|
|
34819
|
+
const dir = path.dirname(dstpath);
|
|
35056
34820
|
const exists = fs5.existsSync(dir);
|
|
35057
34821
|
if (exists)
|
|
35058
34822
|
return fs5.symlinkSync(srcpath, dstpath, type);
|
|
@@ -35230,7 +34994,7 @@ var require_jsonfile4 = __commonJS({
|
|
|
35230
34994
|
var require_output_json2 = __commonJS({
|
|
35231
34995
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/json/output-json.js"(exports, module) {
|
|
35232
34996
|
"use strict";
|
|
35233
|
-
var
|
|
34997
|
+
var path = __require("path");
|
|
35234
34998
|
var mkdir2 = require_mkdirs3();
|
|
35235
34999
|
var pathExists2 = require_path_exists2().pathExists;
|
|
35236
35000
|
var jsonFile = require_jsonfile4();
|
|
@@ -35239,7 +35003,7 @@ var require_output_json2 = __commonJS({
|
|
|
35239
35003
|
callback = options;
|
|
35240
35004
|
options = {};
|
|
35241
35005
|
}
|
|
35242
|
-
const dir =
|
|
35006
|
+
const dir = path.dirname(file);
|
|
35243
35007
|
pathExists2(dir, (err, itDoes) => {
|
|
35244
35008
|
if (err)
|
|
35245
35009
|
return callback(err);
|
|
@@ -35261,11 +35025,11 @@ var require_output_json_sync2 = __commonJS({
|
|
|
35261
35025
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) {
|
|
35262
35026
|
"use strict";
|
|
35263
35027
|
var fs5 = require_graceful_fs();
|
|
35264
|
-
var
|
|
35028
|
+
var path = __require("path");
|
|
35265
35029
|
var mkdir2 = require_mkdirs3();
|
|
35266
35030
|
var jsonFile = require_jsonfile4();
|
|
35267
35031
|
function outputJsonSync(file, data, options) {
|
|
35268
|
-
const dir =
|
|
35032
|
+
const dir = path.dirname(file);
|
|
35269
35033
|
if (!fs5.existsSync(dir)) {
|
|
35270
35034
|
mkdir2.mkdirsSync(dir);
|
|
35271
35035
|
}
|
|
@@ -35298,7 +35062,7 @@ var require_move_sync3 = __commonJS({
|
|
|
35298
35062
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module) {
|
|
35299
35063
|
"use strict";
|
|
35300
35064
|
var fs5 = __require("fs");
|
|
35301
|
-
var
|
|
35065
|
+
var path = __require("path");
|
|
35302
35066
|
var copySync = require_copy_sync4().copySync;
|
|
35303
35067
|
var removeSync = require_remove2().removeSync;
|
|
35304
35068
|
var mkdirpSync = require_mkdirs3().mkdirpSync;
|
|
@@ -35308,7 +35072,7 @@ var require_move_sync3 = __commonJS({
|
|
|
35308
35072
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
35309
35073
|
const { srcStat } = stat2.checkPathsSync(src, dest, "move");
|
|
35310
35074
|
stat2.checkParentPathsSync(src, srcStat, dest, "move");
|
|
35311
|
-
mkdirpSync(
|
|
35075
|
+
mkdirpSync(path.dirname(dest));
|
|
35312
35076
|
return doRename(src, dest, overwrite);
|
|
35313
35077
|
}
|
|
35314
35078
|
function doRename(src, dest, overwrite) {
|
|
@@ -35356,7 +35120,7 @@ var require_move3 = __commonJS({
|
|
|
35356
35120
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
35357
35121
|
"use strict";
|
|
35358
35122
|
var fs5 = __require("fs");
|
|
35359
|
-
var
|
|
35123
|
+
var path = __require("path");
|
|
35360
35124
|
var copy = require_copy4().copy;
|
|
35361
35125
|
var remove = require_remove2().remove;
|
|
35362
35126
|
var mkdirp = require_mkdirs3().mkdirp;
|
|
@@ -35375,7 +35139,7 @@ var require_move3 = __commonJS({
|
|
|
35375
35139
|
stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
|
|
35376
35140
|
if (err2)
|
|
35377
35141
|
return cb(err2);
|
|
35378
|
-
mkdirp(
|
|
35142
|
+
mkdirp(path.dirname(dest), (err3) => {
|
|
35379
35143
|
if (err3)
|
|
35380
35144
|
return cb(err3);
|
|
35381
35145
|
return doRename(src, dest, overwrite, cb);
|
|
@@ -35440,7 +35204,7 @@ var require_output2 = __commonJS({
|
|
|
35440
35204
|
"use strict";
|
|
35441
35205
|
var u = require_universalify2().fromCallback;
|
|
35442
35206
|
var fs5 = require_graceful_fs();
|
|
35443
|
-
var
|
|
35207
|
+
var path = __require("path");
|
|
35444
35208
|
var mkdir2 = require_mkdirs3();
|
|
35445
35209
|
var pathExists2 = require_path_exists2().pathExists;
|
|
35446
35210
|
function outputFile2(file, data, encoding, callback) {
|
|
@@ -35448,7 +35212,7 @@ var require_output2 = __commonJS({
|
|
|
35448
35212
|
callback = encoding;
|
|
35449
35213
|
encoding = "utf8";
|
|
35450
35214
|
}
|
|
35451
|
-
const dir =
|
|
35215
|
+
const dir = path.dirname(file);
|
|
35452
35216
|
pathExists2(dir, (err, itDoes) => {
|
|
35453
35217
|
if (err)
|
|
35454
35218
|
return callback(err);
|
|
@@ -35462,7 +35226,7 @@ var require_output2 = __commonJS({
|
|
|
35462
35226
|
});
|
|
35463
35227
|
}
|
|
35464
35228
|
function outputFileSync(file, ...args) {
|
|
35465
|
-
const dir =
|
|
35229
|
+
const dir = path.dirname(file);
|
|
35466
35230
|
if (fs5.existsSync(dir)) {
|
|
35467
35231
|
return fs5.writeFileSync(file, ...args);
|
|
35468
35232
|
}
|
|
@@ -35477,7 +35241,7 @@ var require_output2 = __commonJS({
|
|
|
35477
35241
|
});
|
|
35478
35242
|
|
|
35479
35243
|
// ../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/index.js
|
|
35480
|
-
var
|
|
35244
|
+
var require_lib5 = __commonJS({
|
|
35481
35245
|
"../../node_modules/.pnpm/fs-extra@8.0.1/node_modules/fs-extra/lib/index.js"(exports, module) {
|
|
35482
35246
|
"use strict";
|
|
35483
35247
|
module.exports = Object.assign(
|
|
@@ -35509,7 +35273,7 @@ var require_lib7 = __commonJS({
|
|
|
35509
35273
|
});
|
|
35510
35274
|
|
|
35511
35275
|
// ../../node_modules/.pnpm/async-sema@3.0.0/node_modules/async-sema/lib/index.js
|
|
35512
|
-
var
|
|
35276
|
+
var require_lib6 = __commonJS({
|
|
35513
35277
|
"../../node_modules/.pnpm/async-sema@3.0.0/node_modules/async-sema/lib/index.js"(exports) {
|
|
35514
35278
|
"use strict";
|
|
35515
35279
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -35709,8 +35473,8 @@ var require_hashes = __commonJS({
|
|
|
35709
35473
|
});
|
|
35710
35474
|
module.exports = __toCommonJS2(hashes_exports);
|
|
35711
35475
|
var import_crypto = __require("crypto");
|
|
35712
|
-
var import_fs_extra9 = __toESM2(
|
|
35713
|
-
var import_async_sema =
|
|
35476
|
+
var import_fs_extra9 = __toESM2(require_lib5());
|
|
35477
|
+
var import_async_sema = require_lib6();
|
|
35714
35478
|
function hash(buf) {
|
|
35715
35479
|
return (0, import_crypto.createHash)("sha1").update(Uint8Array.from(buf)).digest("hex");
|
|
35716
35480
|
}
|
|
@@ -35886,7 +35650,7 @@ var require_cjs = __commonJS({
|
|
|
35886
35650
|
});
|
|
35887
35651
|
|
|
35888
35652
|
// ../../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js
|
|
35889
|
-
var
|
|
35653
|
+
var require_lib7 = __commonJS({
|
|
35890
35654
|
"../../node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.js"(exports, module) {
|
|
35891
35655
|
"use strict";
|
|
35892
35656
|
var conversions = {};
|
|
@@ -36622,14 +36386,14 @@ var require_url_state_machine = __commonJS({
|
|
|
36622
36386
|
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
36623
36387
|
}
|
|
36624
36388
|
function shortenPath(url) {
|
|
36625
|
-
const
|
|
36626
|
-
if (
|
|
36389
|
+
const path = url.path;
|
|
36390
|
+
if (path.length === 0) {
|
|
36627
36391
|
return;
|
|
36628
36392
|
}
|
|
36629
|
-
if (url.scheme === "file" &&
|
|
36393
|
+
if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
|
|
36630
36394
|
return;
|
|
36631
36395
|
}
|
|
36632
|
-
|
|
36396
|
+
path.pop();
|
|
36633
36397
|
}
|
|
36634
36398
|
function includesCredentials(url) {
|
|
36635
36399
|
return url.username !== "" || url.password !== "";
|
|
@@ -37465,7 +37229,7 @@ var require_URL_impl = __commonJS({
|
|
|
37465
37229
|
var require_URL = __commonJS({
|
|
37466
37230
|
"../../node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.js"(exports, module) {
|
|
37467
37231
|
"use strict";
|
|
37468
|
-
var conversions =
|
|
37232
|
+
var conversions = require_lib7();
|
|
37469
37233
|
var utils = require_utils4();
|
|
37470
37234
|
var Impl = require_URL_impl();
|
|
37471
37235
|
var impl = utils.implSymbol;
|
|
@@ -37661,7 +37425,7 @@ var require_public_api = __commonJS({
|
|
|
37661
37425
|
});
|
|
37662
37426
|
|
|
37663
37427
|
// ../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js
|
|
37664
|
-
var
|
|
37428
|
+
var require_lib8 = __commonJS({
|
|
37665
37429
|
"../../node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.js"(exports, module) {
|
|
37666
37430
|
"use strict";
|
|
37667
37431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -39091,34 +38855,34 @@ var require_ignore = __commonJS({
|
|
|
39091
38855
|
}
|
|
39092
38856
|
}
|
|
39093
38857
|
filter(paths) {
|
|
39094
|
-
return make_array(paths).filter((
|
|
38858
|
+
return make_array(paths).filter((path) => this._filter(path));
|
|
39095
38859
|
}
|
|
39096
38860
|
createFilter() {
|
|
39097
|
-
return (
|
|
38861
|
+
return (path) => this._filter(path);
|
|
39098
38862
|
}
|
|
39099
|
-
ignores(
|
|
39100
|
-
return !this._filter(
|
|
38863
|
+
ignores(path) {
|
|
38864
|
+
return !this._filter(path);
|
|
39101
38865
|
}
|
|
39102
38866
|
// @returns `Boolean` true if the `path` is NOT ignored
|
|
39103
|
-
_filter(
|
|
39104
|
-
if (!
|
|
38867
|
+
_filter(path, slices) {
|
|
38868
|
+
if (!path) {
|
|
39105
38869
|
return false;
|
|
39106
38870
|
}
|
|
39107
|
-
if (
|
|
39108
|
-
return this._cache[
|
|
38871
|
+
if (path in this._cache) {
|
|
38872
|
+
return this._cache[path];
|
|
39109
38873
|
}
|
|
39110
38874
|
if (!slices) {
|
|
39111
|
-
slices =
|
|
38875
|
+
slices = path.split(SLASH);
|
|
39112
38876
|
}
|
|
39113
38877
|
slices.pop();
|
|
39114
|
-
return this._cache[
|
|
38878
|
+
return this._cache[path] = slices.length ? this._filter(slices.join(SLASH) + SLASH, slices) && this._test(path) : this._test(path);
|
|
39115
38879
|
}
|
|
39116
38880
|
// @returns {Boolean} true if a file is NOT ignored
|
|
39117
|
-
_test(
|
|
38881
|
+
_test(path) {
|
|
39118
38882
|
let matched = 0;
|
|
39119
38883
|
this._rules.forEach((rule) => {
|
|
39120
38884
|
if (!(matched ^ rule.negative)) {
|
|
39121
|
-
matched = rule.negative ^ rule.regex.test(
|
|
38885
|
+
matched = rule.negative ^ rule.regex.test(path);
|
|
39122
38886
|
}
|
|
39123
38887
|
});
|
|
39124
38888
|
return !matched;
|
|
@@ -39130,9 +38894,9 @@ var require_ignore = __commonJS({
|
|
|
39130
38894
|
) {
|
|
39131
38895
|
const filter = IgnoreBase.prototype._filter;
|
|
39132
38896
|
const make_posix = (str) => /^\\\\\?\\/.test(str) || /[^\x00-\x80]+/.test(str) ? str : str.replace(/\\/g, "/");
|
|
39133
|
-
IgnoreBase.prototype._filter = function filterWin32(
|
|
39134
|
-
|
|
39135
|
-
return filter.call(this,
|
|
38897
|
+
IgnoreBase.prototype._filter = function filterWin32(path, slices) {
|
|
38898
|
+
path = make_posix(path);
|
|
38899
|
+
return filter.call(this, path, slices);
|
|
39136
38900
|
};
|
|
39137
38901
|
}
|
|
39138
38902
|
module.exports = (options) => new IgnoreBase(options);
|
|
@@ -39144,7 +38908,7 @@ var require_package = __commonJS({
|
|
|
39144
38908
|
"../client/package.json"(exports, module) {
|
|
39145
38909
|
module.exports = {
|
|
39146
38910
|
name: "@vercel/client",
|
|
39147
|
-
version: "17.4.
|
|
38911
|
+
version: "17.4.1",
|
|
39148
38912
|
main: "dist/index.js",
|
|
39149
38913
|
typings: "dist/index.d.ts",
|
|
39150
38914
|
homepage: "https://vercel.com",
|
|
@@ -39267,12 +39031,12 @@ var require_readdir_recursive = __commonJS({
|
|
|
39267
39031
|
});
|
|
39268
39032
|
module.exports = __toCommonJS2(readdir_recursive_exports);
|
|
39269
39033
|
var import_fs4 = __toESM2(__require("fs"));
|
|
39270
|
-
var
|
|
39034
|
+
var import_path11 = __toESM2(__require("path"));
|
|
39271
39035
|
var import_minimatch = __toESM2(require_minimatch2());
|
|
39272
39036
|
function patternMatcher(pattern) {
|
|
39273
|
-
return function(
|
|
39037
|
+
return function(path, stats) {
|
|
39274
39038
|
const minimatcher = new import_minimatch.default.Minimatch(pattern, { matchBase: true });
|
|
39275
|
-
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(
|
|
39039
|
+
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(path);
|
|
39276
39040
|
};
|
|
39277
39041
|
}
|
|
39278
39042
|
function toMatcherFunction(ignoreEntry) {
|
|
@@ -39282,11 +39046,11 @@ var require_readdir_recursive = __commonJS({
|
|
|
39282
39046
|
return patternMatcher(ignoreEntry);
|
|
39283
39047
|
}
|
|
39284
39048
|
}
|
|
39285
|
-
function readdir(
|
|
39049
|
+
function readdir(path, ignores) {
|
|
39286
39050
|
ignores = ignores.map(toMatcherFunction);
|
|
39287
39051
|
let list2 = [];
|
|
39288
39052
|
return new Promise(function(resolve4, reject) {
|
|
39289
|
-
import_fs4.default.readdir(
|
|
39053
|
+
import_fs4.default.readdir(path, function(err, files) {
|
|
39290
39054
|
if (err) {
|
|
39291
39055
|
return reject(err);
|
|
39292
39056
|
}
|
|
@@ -39295,7 +39059,7 @@ var require_readdir_recursive = __commonJS({
|
|
|
39295
39059
|
return resolve4(list2);
|
|
39296
39060
|
}
|
|
39297
39061
|
files.forEach(function(file) {
|
|
39298
|
-
const filePath =
|
|
39062
|
+
const filePath = import_path11.default.join(path, file);
|
|
39299
39063
|
import_fs4.default.lstat(filePath, function(_err, stats) {
|
|
39300
39064
|
if (_err) {
|
|
39301
39065
|
return reject(_err);
|
|
@@ -40245,12 +40009,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
|
40245
40009
|
}
|
|
40246
40010
|
return result;
|
|
40247
40011
|
}
|
|
40248
|
-
function findNodeAtLocation(root,
|
|
40012
|
+
function findNodeAtLocation(root, path) {
|
|
40249
40013
|
if (!root) {
|
|
40250
40014
|
return void 0;
|
|
40251
40015
|
}
|
|
40252
40016
|
let node = root;
|
|
40253
|
-
for (let segment of
|
|
40017
|
+
for (let segment of path) {
|
|
40254
40018
|
if (typeof segment === "string") {
|
|
40255
40019
|
if (node.type !== "object" || !Array.isArray(node.children)) {
|
|
40256
40020
|
return void 0;
|
|
@@ -40280,17 +40044,17 @@ function getNodePath(node) {
|
|
|
40280
40044
|
if (!node.parent || !node.parent.children) {
|
|
40281
40045
|
return [];
|
|
40282
40046
|
}
|
|
40283
|
-
const
|
|
40047
|
+
const path = getNodePath(node.parent);
|
|
40284
40048
|
if (node.parent.type === "property") {
|
|
40285
40049
|
const key = node.parent.children[0].value;
|
|
40286
|
-
|
|
40050
|
+
path.push(key);
|
|
40287
40051
|
} else if (node.parent.type === "array") {
|
|
40288
40052
|
const index = node.parent.children.indexOf(node);
|
|
40289
40053
|
if (index !== -1) {
|
|
40290
|
-
|
|
40054
|
+
path.push(index);
|
|
40291
40055
|
}
|
|
40292
40056
|
}
|
|
40293
|
-
return
|
|
40057
|
+
return path;
|
|
40294
40058
|
}
|
|
40295
40059
|
function getNodeValue(node) {
|
|
40296
40060
|
switch (node.type) {
|
|
@@ -40693,14 +40457,14 @@ var init_parser = __esm({
|
|
|
40693
40457
|
|
|
40694
40458
|
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
40695
40459
|
function setProperty(text, originalPath, value, options) {
|
|
40696
|
-
const
|
|
40460
|
+
const path = originalPath.slice();
|
|
40697
40461
|
const errors = [];
|
|
40698
40462
|
const root = parseTree(text, errors);
|
|
40699
40463
|
let parent = void 0;
|
|
40700
40464
|
let lastSegment = void 0;
|
|
40701
|
-
while (
|
|
40702
|
-
lastSegment =
|
|
40703
|
-
parent = findNodeAtLocation(root,
|
|
40465
|
+
while (path.length > 0) {
|
|
40466
|
+
lastSegment = path.pop();
|
|
40467
|
+
parent = findNodeAtLocation(root, path);
|
|
40704
40468
|
if (parent === void 0 && value !== void 0) {
|
|
40705
40469
|
if (typeof lastSegment === "string") {
|
|
40706
40470
|
value = { [lastSegment]: value };
|
|
@@ -40903,8 +40667,8 @@ function printParseErrorCode(code2) {
|
|
|
40903
40667
|
function format2(documentText, range, options) {
|
|
40904
40668
|
return format(documentText, range, options);
|
|
40905
40669
|
}
|
|
40906
|
-
function modify(text,
|
|
40907
|
-
return setProperty(text,
|
|
40670
|
+
function modify(text, path, value, options) {
|
|
40671
|
+
return setProperty(text, path, value, options);
|
|
40908
40672
|
}
|
|
40909
40673
|
function applyEdits(text, edits) {
|
|
40910
40674
|
let sortedEdits = edits.slice(0).sort((a, b) => {
|
|
@@ -41065,7 +40829,7 @@ var require_path2 = __commonJS({
|
|
|
41065
40829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41066
40830
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
41067
40831
|
var os2 = __require("os");
|
|
41068
|
-
var
|
|
40832
|
+
var path = __require("path");
|
|
41069
40833
|
var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
|
|
41070
40834
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
41071
40835
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
@@ -41077,7 +40841,7 @@ var require_path2 = __commonJS({
|
|
|
41077
40841
|
}
|
|
41078
40842
|
exports.unixify = unixify;
|
|
41079
40843
|
function makeAbsolute(cwd, filepath) {
|
|
41080
|
-
return
|
|
40844
|
+
return path.resolve(cwd, filepath);
|
|
41081
40845
|
}
|
|
41082
40846
|
exports.makeAbsolute = makeAbsolute;
|
|
41083
40847
|
function removeLeadingDotSegment(entry) {
|
|
@@ -42403,7 +42167,7 @@ var require_braces = __commonJS({
|
|
|
42403
42167
|
var require_constants2 = __commonJS({
|
|
42404
42168
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
42405
42169
|
"use strict";
|
|
42406
|
-
var
|
|
42170
|
+
var path = __require("path");
|
|
42407
42171
|
var WIN_SLASH = "\\\\/";
|
|
42408
42172
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
42409
42173
|
var DOT_LITERAL = "\\.";
|
|
@@ -42573,7 +42337,7 @@ var require_constants2 = __commonJS({
|
|
|
42573
42337
|
/* | */
|
|
42574
42338
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
42575
42339
|
/* \uFEFF */
|
|
42576
|
-
SEP:
|
|
42340
|
+
SEP: path.sep,
|
|
42577
42341
|
/**
|
|
42578
42342
|
* Create EXTGLOB_CHARS
|
|
42579
42343
|
*/
|
|
@@ -42600,7 +42364,7 @@ var require_constants2 = __commonJS({
|
|
|
42600
42364
|
var require_utils6 = __commonJS({
|
|
42601
42365
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
42602
42366
|
"use strict";
|
|
42603
|
-
var
|
|
42367
|
+
var path = __require("path");
|
|
42604
42368
|
var win32 = process.platform === "win32";
|
|
42605
42369
|
var {
|
|
42606
42370
|
REGEX_BACKSLASH,
|
|
@@ -42629,7 +42393,7 @@ var require_utils6 = __commonJS({
|
|
|
42629
42393
|
if (options && typeof options.windows === "boolean") {
|
|
42630
42394
|
return options.windows;
|
|
42631
42395
|
}
|
|
42632
|
-
return win32 === true ||
|
|
42396
|
+
return win32 === true || path.sep === "\\";
|
|
42633
42397
|
};
|
|
42634
42398
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
42635
42399
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -43777,7 +43541,7 @@ var require_parse3 = __commonJS({
|
|
|
43777
43541
|
var require_picomatch = __commonJS({
|
|
43778
43542
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
43779
43543
|
"use strict";
|
|
43780
|
-
var
|
|
43544
|
+
var path = __require("path");
|
|
43781
43545
|
var scan = require_scan();
|
|
43782
43546
|
var parse3 = require_parse3();
|
|
43783
43547
|
var utils = require_utils6();
|
|
@@ -43863,7 +43627,7 @@ var require_picomatch = __commonJS({
|
|
|
43863
43627
|
};
|
|
43864
43628
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
43865
43629
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
43866
|
-
return regex.test(
|
|
43630
|
+
return regex.test(path.basename(input));
|
|
43867
43631
|
};
|
|
43868
43632
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
43869
43633
|
picomatch.parse = (pattern, options) => {
|
|
@@ -44098,7 +43862,7 @@ var require_pattern2 = __commonJS({
|
|
|
44098
43862
|
"use strict";
|
|
44099
43863
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44100
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;
|
|
44101
|
-
var
|
|
43865
|
+
var path = __require("path");
|
|
44102
43866
|
var globParent = require_glob_parent();
|
|
44103
43867
|
var micromatch = require_micromatch();
|
|
44104
43868
|
var GLOBSTAR = "**";
|
|
@@ -44193,7 +43957,7 @@ var require_pattern2 = __commonJS({
|
|
|
44193
43957
|
}
|
|
44194
43958
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
44195
43959
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
44196
|
-
const basename4 =
|
|
43960
|
+
const basename4 = path.basename(pattern);
|
|
44197
43961
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename4);
|
|
44198
43962
|
}
|
|
44199
43963
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -44251,7 +44015,7 @@ var require_pattern2 = __commonJS({
|
|
|
44251
44015
|
}
|
|
44252
44016
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
44253
44017
|
function isAbsolute(pattern) {
|
|
44254
|
-
return
|
|
44018
|
+
return path.isAbsolute(pattern);
|
|
44255
44019
|
}
|
|
44256
44020
|
exports.isAbsolute = isAbsolute;
|
|
44257
44021
|
}
|
|
@@ -44428,8 +44192,8 @@ var require_utils7 = __commonJS({
|
|
|
44428
44192
|
exports.errno = errno;
|
|
44429
44193
|
var fs5 = require_fs4();
|
|
44430
44194
|
exports.fs = fs5;
|
|
44431
|
-
var
|
|
44432
|
-
exports.path =
|
|
44195
|
+
var path = require_path2();
|
|
44196
|
+
exports.path = path;
|
|
44433
44197
|
var pattern = require_pattern2();
|
|
44434
44198
|
exports.pattern = pattern;
|
|
44435
44199
|
var stream = require_stream();
|
|
@@ -44541,8 +44305,8 @@ var require_async2 = __commonJS({
|
|
|
44541
44305
|
"use strict";
|
|
44542
44306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44543
44307
|
exports.read = void 0;
|
|
44544
|
-
function read(
|
|
44545
|
-
settings.fs.lstat(
|
|
44308
|
+
function read(path, settings, callback) {
|
|
44309
|
+
settings.fs.lstat(path, (lstatError, lstat2) => {
|
|
44546
44310
|
if (lstatError !== null) {
|
|
44547
44311
|
callFailureCallback(callback, lstatError);
|
|
44548
44312
|
return;
|
|
@@ -44551,7 +44315,7 @@ var require_async2 = __commonJS({
|
|
|
44551
44315
|
callSuccessCallback(callback, lstat2);
|
|
44552
44316
|
return;
|
|
44553
44317
|
}
|
|
44554
|
-
settings.fs.stat(
|
|
44318
|
+
settings.fs.stat(path, (statError, stat2) => {
|
|
44555
44319
|
if (statError !== null) {
|
|
44556
44320
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
44557
44321
|
callFailureCallback(callback, statError);
|
|
@@ -44583,13 +44347,13 @@ var require_sync2 = __commonJS({
|
|
|
44583
44347
|
"use strict";
|
|
44584
44348
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44585
44349
|
exports.read = void 0;
|
|
44586
|
-
function read(
|
|
44587
|
-
const lstat2 = settings.fs.lstatSync(
|
|
44350
|
+
function read(path, settings) {
|
|
44351
|
+
const lstat2 = settings.fs.lstatSync(path);
|
|
44588
44352
|
if (!lstat2.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
44589
44353
|
return lstat2;
|
|
44590
44354
|
}
|
|
44591
44355
|
try {
|
|
44592
|
-
const stat2 = settings.fs.statSync(
|
|
44356
|
+
const stat2 = settings.fs.statSync(path);
|
|
44593
44357
|
if (settings.markSymbolicLink) {
|
|
44594
44358
|
stat2.isSymbolicLink = () => true;
|
|
44595
44359
|
}
|
|
@@ -44660,17 +44424,17 @@ var require_out = __commonJS({
|
|
|
44660
44424
|
var sync = require_sync2();
|
|
44661
44425
|
var settings_1 = require_settings();
|
|
44662
44426
|
exports.Settings = settings_1.default;
|
|
44663
|
-
function stat2(
|
|
44427
|
+
function stat2(path, optionsOrSettingsOrCallback, callback) {
|
|
44664
44428
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
44665
|
-
async.read(
|
|
44429
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
44666
44430
|
return;
|
|
44667
44431
|
}
|
|
44668
|
-
async.read(
|
|
44432
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
44669
44433
|
}
|
|
44670
44434
|
exports.stat = stat2;
|
|
44671
|
-
function statSync(
|
|
44435
|
+
function statSync(path, optionsOrSettings) {
|
|
44672
44436
|
const settings = getSettings(optionsOrSettings);
|
|
44673
|
-
return sync.read(
|
|
44437
|
+
return sync.read(path, settings);
|
|
44674
44438
|
}
|
|
44675
44439
|
exports.statSync = statSync;
|
|
44676
44440
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -44889,16 +44653,16 @@ var require_async3 = __commonJS({
|
|
|
44889
44653
|
return;
|
|
44890
44654
|
}
|
|
44891
44655
|
const tasks = names.map((name) => {
|
|
44892
|
-
const
|
|
44656
|
+
const path = common2.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
44893
44657
|
return (done) => {
|
|
44894
|
-
fsStat.stat(
|
|
44658
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
44895
44659
|
if (error !== null) {
|
|
44896
44660
|
done(error);
|
|
44897
44661
|
return;
|
|
44898
44662
|
}
|
|
44899
44663
|
const entry = {
|
|
44900
44664
|
name,
|
|
44901
|
-
path
|
|
44665
|
+
path,
|
|
44902
44666
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
44903
44667
|
};
|
|
44904
44668
|
if (settings.stats) {
|
|
@@ -45016,7 +44780,7 @@ var require_settings2 = __commonJS({
|
|
|
45016
44780
|
"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
45017
44781
|
"use strict";
|
|
45018
44782
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45019
|
-
var
|
|
44783
|
+
var path = __require("path");
|
|
45020
44784
|
var fsStat = require_out();
|
|
45021
44785
|
var fs5 = require_fs7();
|
|
45022
44786
|
var Settings = class {
|
|
@@ -45024,7 +44788,7 @@ var require_settings2 = __commonJS({
|
|
|
45024
44788
|
this._options = _options;
|
|
45025
44789
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
45026
44790
|
this.fs = fs5.createFileSystemAdapter(this._options.fs);
|
|
45027
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
44791
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
45028
44792
|
this.stats = this._getValue(this._options.stats, false);
|
|
45029
44793
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
45030
44794
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -45051,17 +44815,17 @@ var require_out2 = __commonJS({
|
|
|
45051
44815
|
var sync = require_sync3();
|
|
45052
44816
|
var settings_1 = require_settings2();
|
|
45053
44817
|
exports.Settings = settings_1.default;
|
|
45054
|
-
function scandir(
|
|
44818
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
45055
44819
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45056
|
-
async.read(
|
|
44820
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
45057
44821
|
return;
|
|
45058
44822
|
}
|
|
45059
|
-
async.read(
|
|
44823
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45060
44824
|
}
|
|
45061
44825
|
exports.scandir = scandir;
|
|
45062
|
-
function scandirSync(
|
|
44826
|
+
function scandirSync(path, optionsOrSettings) {
|
|
45063
44827
|
const settings = getSettings(optionsOrSettings);
|
|
45064
|
-
return sync.read(
|
|
44828
|
+
return sync.read(path, settings);
|
|
45065
44829
|
}
|
|
45066
44830
|
exports.scandirSync = scandirSync;
|
|
45067
44831
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -45688,7 +45452,7 @@ var require_settings3 = __commonJS({
|
|
|
45688
45452
|
"../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
45689
45453
|
"use strict";
|
|
45690
45454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45691
|
-
var
|
|
45455
|
+
var path = __require("path");
|
|
45692
45456
|
var fsScandir = require_out2();
|
|
45693
45457
|
var Settings = class {
|
|
45694
45458
|
constructor(_options = {}) {
|
|
@@ -45698,7 +45462,7 @@ var require_settings3 = __commonJS({
|
|
|
45698
45462
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
45699
45463
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
45700
45464
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
45701
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
45465
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
45702
45466
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
45703
45467
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
45704
45468
|
fs: this._options.fs,
|
|
@@ -45760,7 +45524,7 @@ var require_reader2 = __commonJS({
|
|
|
45760
45524
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
45761
45525
|
"use strict";
|
|
45762
45526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45763
|
-
var
|
|
45527
|
+
var path = __require("path");
|
|
45764
45528
|
var fsStat = require_out();
|
|
45765
45529
|
var utils = require_utils7();
|
|
45766
45530
|
var Reader = class {
|
|
@@ -45773,7 +45537,7 @@ var require_reader2 = __commonJS({
|
|
|
45773
45537
|
});
|
|
45774
45538
|
}
|
|
45775
45539
|
_getFullEntryPath(filepath) {
|
|
45776
|
-
return
|
|
45540
|
+
return path.resolve(this._settings.cwd, filepath);
|
|
45777
45541
|
}
|
|
45778
45542
|
_makeEntry(stats, pattern) {
|
|
45779
45543
|
const entry = {
|
|
@@ -46189,7 +45953,7 @@ var require_provider = __commonJS({
|
|
|
46189
45953
|
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
46190
45954
|
"use strict";
|
|
46191
45955
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46192
|
-
var
|
|
45956
|
+
var path = __require("path");
|
|
46193
45957
|
var deep_1 = require_deep();
|
|
46194
45958
|
var entry_1 = require_entry();
|
|
46195
45959
|
var error_1 = require_error();
|
|
@@ -46203,7 +45967,7 @@ var require_provider = __commonJS({
|
|
|
46203
45967
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
46204
45968
|
}
|
|
46205
45969
|
_getRootDirectory(task) {
|
|
46206
|
-
return
|
|
45970
|
+
return path.resolve(this._settings.cwd, task.base);
|
|
46207
45971
|
}
|
|
46208
45972
|
_getReaderOptions(task) {
|
|
46209
45973
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -46576,7 +46340,7 @@ var require_utils9 = __commonJS({
|
|
|
46576
46340
|
inferMicrofrontendsLocation: () => inferMicrofrontendsLocation
|
|
46577
46341
|
});
|
|
46578
46342
|
module.exports = __toCommonJS2(utils_exports);
|
|
46579
|
-
var
|
|
46343
|
+
var import_node_fs2 = __toESM2(__require("fs"), 1);
|
|
46580
46344
|
var import_node_path2 = __require("path");
|
|
46581
46345
|
var CONFIGURATION_FILENAMES = [
|
|
46582
46346
|
"microfrontends.jsonc",
|
|
@@ -46585,14 +46349,14 @@ var require_utils9 = __commonJS({
|
|
|
46585
46349
|
function findConfig({ dir }) {
|
|
46586
46350
|
for (const filename of CONFIGURATION_FILENAMES) {
|
|
46587
46351
|
const maybeConfig = (0, import_node_path2.join)(dir, filename);
|
|
46588
|
-
if (
|
|
46352
|
+
if (import_node_fs2.default.existsSync(maybeConfig)) {
|
|
46589
46353
|
return maybeConfig;
|
|
46590
46354
|
}
|
|
46591
46355
|
}
|
|
46592
46356
|
return null;
|
|
46593
46357
|
}
|
|
46594
46358
|
var import_node_path22 = __require("path");
|
|
46595
|
-
var
|
|
46359
|
+
var import_node_fs22 = __require("fs");
|
|
46596
46360
|
var import_jsonc_parser = (init_main(), __toCommonJS(main_exports));
|
|
46597
46361
|
var import_fast_glob = __toESM2(require_out4(), 1);
|
|
46598
46362
|
var MicrofrontendError = class extends Error {
|
|
@@ -46704,7 +46468,7 @@ var require_utils9 = __commonJS({
|
|
|
46704
46468
|
const matchingPaths = [];
|
|
46705
46469
|
for (const microfrontendsJsonPath of microfrontendsJsonPaths) {
|
|
46706
46470
|
try {
|
|
46707
|
-
const microfrontendsJsonContent = (0,
|
|
46471
|
+
const microfrontendsJsonContent = (0, import_node_fs22.readFileSync)(
|
|
46708
46472
|
microfrontendsJsonPath,
|
|
46709
46473
|
"utf-8"
|
|
46710
46474
|
);
|
|
@@ -46804,14 +46568,14 @@ var require_utils10 = __commonJS({
|
|
|
46804
46568
|
prepareFiles: () => prepareFiles
|
|
46805
46569
|
});
|
|
46806
46570
|
module.exports = __toCommonJS2(utils_exports);
|
|
46807
|
-
var import_node_fetch = __toESM2(
|
|
46808
|
-
var
|
|
46571
|
+
var import_node_fetch = __toESM2(require_lib8());
|
|
46572
|
+
var import_path11 = __require("path");
|
|
46809
46573
|
var import_url4 = __require("url");
|
|
46810
46574
|
var import_ignore = __toESM2(require_ignore());
|
|
46811
46575
|
var import_pkg = require_pkg();
|
|
46812
46576
|
var import_build_utils5 = __require("@vercel/build-utils");
|
|
46813
|
-
var import_async_sema =
|
|
46814
|
-
var import_fs_extra9 =
|
|
46577
|
+
var import_async_sema = require_lib6();
|
|
46578
|
+
var import_fs_extra9 = require_lib5();
|
|
46815
46579
|
var import_readdir_recursive = __toESM2(require_readdir_recursive());
|
|
46816
46580
|
var import_utils4 = require_utils9();
|
|
46817
46581
|
var semaphore = new import_async_sema.Sema(10);
|
|
@@ -46859,14 +46623,14 @@ var require_utils10 = __commonJS({
|
|
|
46859
46623
|
return {};
|
|
46860
46624
|
}
|
|
46861
46625
|
}
|
|
46862
|
-
var maybeRead = async function(
|
|
46626
|
+
var maybeRead = async function(path, default_) {
|
|
46863
46627
|
try {
|
|
46864
|
-
return await (0, import_fs_extra9.readFile)(
|
|
46628
|
+
return await (0, import_fs_extra9.readFile)(path, "utf8");
|
|
46865
46629
|
} catch (_err) {
|
|
46866
46630
|
return default_;
|
|
46867
46631
|
}
|
|
46868
46632
|
};
|
|
46869
|
-
async function buildFileTree2(
|
|
46633
|
+
async function buildFileTree2(path, {
|
|
46870
46634
|
isDirectory: isDirectory2,
|
|
46871
46635
|
prebuilt,
|
|
46872
46636
|
vercelOutputDir,
|
|
@@ -46876,23 +46640,23 @@ var require_utils10 = __commonJS({
|
|
|
46876
46640
|
}, debug) {
|
|
46877
46641
|
const ignoreList = [];
|
|
46878
46642
|
let fileList;
|
|
46879
|
-
let { ig, ignores } = await getVercelIgnore2(
|
|
46643
|
+
let { ig, ignores } = await getVercelIgnore2(path, prebuilt, vercelOutputDir);
|
|
46880
46644
|
debug(`Found ${ignores.length} rules in .vercelignore`);
|
|
46881
46645
|
debug("Building file tree...");
|
|
46882
|
-
if (isDirectory2 && !Array.isArray(
|
|
46646
|
+
if (isDirectory2 && !Array.isArray(path)) {
|
|
46883
46647
|
const ignores2 = (absPath) => {
|
|
46884
|
-
const rel = (0,
|
|
46648
|
+
const rel = (0, import_path11.relative)(path, absPath);
|
|
46885
46649
|
const ignored = ig.ignores(rel);
|
|
46886
46650
|
if (ignored) {
|
|
46887
46651
|
ignoreList.push(rel);
|
|
46888
46652
|
}
|
|
46889
46653
|
return ignored;
|
|
46890
46654
|
};
|
|
46891
|
-
fileList = await (0, import_readdir_recursive.default)(
|
|
46655
|
+
fileList = await (0, import_readdir_recursive.default)(path, [ignores2]);
|
|
46892
46656
|
const refs = /* @__PURE__ */ new Set();
|
|
46893
46657
|
if (prebuilt) {
|
|
46894
46658
|
const vcConfigFilePaths = fileList.filter(
|
|
46895
|
-
(file) => (0,
|
|
46659
|
+
(file) => (0, import_path11.basename)(file) === ".vc-config.json"
|
|
46896
46660
|
);
|
|
46897
46661
|
await Promise.all(
|
|
46898
46662
|
vcConfigFilePaths.map(async (p) => {
|
|
@@ -46901,18 +46665,18 @@ var require_utils10 = __commonJS({
|
|
|
46901
46665
|
if (!config.filePathMap)
|
|
46902
46666
|
return;
|
|
46903
46667
|
for (const v of Object.values(config.filePathMap)) {
|
|
46904
|
-
refs.add((0,
|
|
46668
|
+
refs.add((0, import_path11.join)(path, v));
|
|
46905
46669
|
}
|
|
46906
46670
|
})
|
|
46907
46671
|
);
|
|
46908
46672
|
try {
|
|
46909
46673
|
let microfrontendConfigPath = (0, import_utils4.findConfig)({
|
|
46910
|
-
dir: (0,
|
|
46674
|
+
dir: (0, import_path11.join)(path, rootDirectory || "")
|
|
46911
46675
|
});
|
|
46912
46676
|
if (!microfrontendConfigPath && !rootDirectory && projectName) {
|
|
46913
46677
|
microfrontendConfigPath = (0, import_utils4.findConfig)({
|
|
46914
46678
|
dir: (0, import_utils4.inferMicrofrontendsLocation)({
|
|
46915
|
-
repositoryRoot:
|
|
46679
|
+
repositoryRoot: path,
|
|
46916
46680
|
applicationName: projectName
|
|
46917
46681
|
})
|
|
46918
46682
|
});
|
|
@@ -46925,7 +46689,7 @@ var require_utils10 = __commonJS({
|
|
|
46925
46689
|
}
|
|
46926
46690
|
}
|
|
46927
46691
|
try {
|
|
46928
|
-
const routesJsonPath = (0,
|
|
46692
|
+
const routesJsonPath = (0, import_path11.join)(path, ".vercel", "routes.json");
|
|
46929
46693
|
const routesJsonContent = await maybeRead(routesJsonPath, null);
|
|
46930
46694
|
if (routesJsonContent !== null) {
|
|
46931
46695
|
refs.add(routesJsonPath);
|
|
@@ -46936,13 +46700,13 @@ var require_utils10 = __commonJS({
|
|
|
46936
46700
|
}
|
|
46937
46701
|
if (prebuilt && bulkRedirectsPath) {
|
|
46938
46702
|
try {
|
|
46939
|
-
const projectRoot =
|
|
46940
|
-
const bulkRedirectsFullPath = (0,
|
|
46703
|
+
const projectRoot = path;
|
|
46704
|
+
const bulkRedirectsFullPath = (0, import_path11.join)(
|
|
46941
46705
|
projectRoot,
|
|
46942
46706
|
rootDirectory || "",
|
|
46943
46707
|
bulkRedirectsPath
|
|
46944
46708
|
);
|
|
46945
|
-
const relativeFromRoot = (0,
|
|
46709
|
+
const relativeFromRoot = (0, import_path11.relative)(projectRoot, bulkRedirectsFullPath);
|
|
46946
46710
|
if (relativeFromRoot.startsWith("..")) {
|
|
46947
46711
|
debug(
|
|
46948
46712
|
`Skipping bulk redirects path "${bulkRedirectsPath}" - path traversal detected (resolves outside project root)`
|
|
@@ -46976,11 +46740,11 @@ var require_utils10 = __commonJS({
|
|
|
46976
46740
|
fileList = fileList.concat(Array.from(refs));
|
|
46977
46741
|
}
|
|
46978
46742
|
debug(`Found ${fileList.length} files in the specified directory`);
|
|
46979
|
-
} else if (Array.isArray(
|
|
46980
|
-
fileList =
|
|
46743
|
+
} else if (Array.isArray(path)) {
|
|
46744
|
+
fileList = path;
|
|
46981
46745
|
debug(`Assigned ${fileList.length} files provided explicitly`);
|
|
46982
46746
|
} else {
|
|
46983
|
-
fileList = [
|
|
46747
|
+
fileList = [path];
|
|
46984
46748
|
debug(`Deploying the provided path as single file`);
|
|
46985
46749
|
}
|
|
46986
46750
|
return { fileList, ignoreList };
|
|
@@ -46997,9 +46761,9 @@ var require_utils10 = __commonJS({
|
|
|
46997
46761
|
if (typeof cwd !== "string") {
|
|
46998
46762
|
throw new Error(`\`cwd\` must be a "string"`);
|
|
46999
46763
|
}
|
|
47000
|
-
const relOutputDir = (0,
|
|
46764
|
+
const relOutputDir = (0, import_path11.relative)(cwd, vercelOutputDir);
|
|
47001
46765
|
ignores = ["*"];
|
|
47002
|
-
const parts = relOutputDir.split(
|
|
46766
|
+
const parts = relOutputDir.split(import_path11.sep);
|
|
47003
46767
|
parts.forEach((_, i) => {
|
|
47004
46768
|
const level = parts.slice(0, i + 1).join("/");
|
|
47005
46769
|
ignores.push(`!${level}`);
|
|
@@ -47039,8 +46803,8 @@ var require_utils10 = __commonJS({
|
|
|
47039
46803
|
const files = await Promise.all(
|
|
47040
46804
|
cwds.map(async (cwd2) => {
|
|
47041
46805
|
const [vercelignore, nowignore] = await Promise.all([
|
|
47042
|
-
maybeRead((0,
|
|
47043
|
-
maybeRead((0,
|
|
46806
|
+
maybeRead((0, import_path11.join)(cwd2, ".vercelignore"), ""),
|
|
46807
|
+
maybeRead((0, import_path11.join)(cwd2, ".nowignore"), "")
|
|
47044
46808
|
]);
|
|
47045
46809
|
if (vercelignore && nowignore) {
|
|
47046
46810
|
throw new import_build_utils5.NowBuildError({
|
|
@@ -47099,9 +46863,9 @@ ${clearRelative(ignoreFile)}`);
|
|
|
47099
46863
|
for (const name of file.names) {
|
|
47100
46864
|
let fileName;
|
|
47101
46865
|
if (clientOptions.isDirectory) {
|
|
47102
|
-
fileName = typeof clientOptions.path === "string" ? (0,
|
|
46866
|
+
fileName = typeof clientOptions.path === "string" ? (0, import_path11.relative)(clientOptions.path, name) : name;
|
|
47103
46867
|
} else {
|
|
47104
|
-
const segments = name.split(
|
|
46868
|
+
const segments = name.split(import_path11.sep);
|
|
47105
46869
|
fileName = segments[segments.length - 1];
|
|
47106
46870
|
}
|
|
47107
46871
|
preparedFiles.push({
|
|
@@ -47474,10 +47238,10 @@ var require_deploy = __commonJS({
|
|
|
47474
47238
|
}
|
|
47475
47239
|
function getDefaultName(files, clientOptions) {
|
|
47476
47240
|
const debug = (0, import_utils4.createDebug)(clientOptions.debug);
|
|
47477
|
-
const { isDirectory: isDirectory2, path
|
|
47478
|
-
if (isDirectory2 && typeof
|
|
47241
|
+
const { isDirectory: isDirectory2, path } = clientOptions;
|
|
47242
|
+
if (isDirectory2 && typeof path === "string") {
|
|
47479
47243
|
debug("Provided path is a directory. Using last segment as default name");
|
|
47480
|
-
return
|
|
47244
|
+
return path.split("/").pop() || path;
|
|
47481
47245
|
} else {
|
|
47482
47246
|
debug(
|
|
47483
47247
|
"Provided path is not a directory. Using last segment of the first file as default name"
|
|
@@ -47777,7 +47541,7 @@ var require_retry2 = __commonJS({
|
|
|
47777
47541
|
});
|
|
47778
47542
|
|
|
47779
47543
|
// ../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js
|
|
47780
|
-
var
|
|
47544
|
+
var require_lib9 = __commonJS({
|
|
47781
47545
|
"../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports, module) {
|
|
47782
47546
|
var retrier = require_retry2();
|
|
47783
47547
|
function retry(fn, opts) {
|
|
@@ -47897,8 +47661,8 @@ var require_upload = __commonJS({
|
|
|
47897
47661
|
var import_https = __toESM2(__require("https"));
|
|
47898
47662
|
var import_stream = __require("stream");
|
|
47899
47663
|
var import_node_events = __require("events");
|
|
47900
|
-
var import_async_retry = __toESM2(
|
|
47901
|
-
var import_async_sema =
|
|
47664
|
+
var import_async_retry = __toESM2(require_lib9());
|
|
47665
|
+
var import_async_sema = require_lib6();
|
|
47902
47666
|
var import_utils4 = require_utils10();
|
|
47903
47667
|
var import_errors3 = require_errors();
|
|
47904
47668
|
var import_deploy = require_deploy();
|
|
@@ -48119,46 +47883,46 @@ var require_chownr = __commonJS({
|
|
|
48119
47883
|
"../../node_modules/.pnpm/chownr@1.1.4/node_modules/chownr/chownr.js"(exports, module) {
|
|
48120
47884
|
"use strict";
|
|
48121
47885
|
var fs5 = __require("fs");
|
|
48122
|
-
var
|
|
47886
|
+
var path = __require("path");
|
|
48123
47887
|
var LCHOWN = fs5.lchown ? "lchown" : "chown";
|
|
48124
47888
|
var LCHOWNSYNC = fs5.lchownSync ? "lchownSync" : "chownSync";
|
|
48125
47889
|
var needEISDIRHandled = fs5.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
48126
|
-
var lchownSync = (
|
|
47890
|
+
var lchownSync = (path2, uid, gid) => {
|
|
48127
47891
|
try {
|
|
48128
|
-
return fs5[LCHOWNSYNC](
|
|
47892
|
+
return fs5[LCHOWNSYNC](path2, uid, gid);
|
|
48129
47893
|
} catch (er) {
|
|
48130
47894
|
if (er.code !== "ENOENT")
|
|
48131
47895
|
throw er;
|
|
48132
47896
|
}
|
|
48133
47897
|
};
|
|
48134
|
-
var chownSync = (
|
|
47898
|
+
var chownSync = (path2, uid, gid) => {
|
|
48135
47899
|
try {
|
|
48136
|
-
return fs5.chownSync(
|
|
47900
|
+
return fs5.chownSync(path2, uid, gid);
|
|
48137
47901
|
} catch (er) {
|
|
48138
47902
|
if (er.code !== "ENOENT")
|
|
48139
47903
|
throw er;
|
|
48140
47904
|
}
|
|
48141
47905
|
};
|
|
48142
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
47906
|
+
var handleEISDIR = needEISDIRHandled ? (path2, uid, gid, cb) => (er) => {
|
|
48143
47907
|
if (!er || er.code !== "EISDIR")
|
|
48144
47908
|
cb(er);
|
|
48145
47909
|
else
|
|
48146
|
-
fs5.chown(
|
|
47910
|
+
fs5.chown(path2, uid, gid, cb);
|
|
48147
47911
|
} : (_, __, ___, cb) => cb;
|
|
48148
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
47912
|
+
var handleEISDirSync = needEISDIRHandled ? (path2, uid, gid) => {
|
|
48149
47913
|
try {
|
|
48150
|
-
return lchownSync(
|
|
47914
|
+
return lchownSync(path2, uid, gid);
|
|
48151
47915
|
} catch (er) {
|
|
48152
47916
|
if (er.code !== "EISDIR")
|
|
48153
47917
|
throw er;
|
|
48154
|
-
chownSync(
|
|
47918
|
+
chownSync(path2, uid, gid);
|
|
48155
47919
|
}
|
|
48156
|
-
} : (
|
|
47920
|
+
} : (path2, uid, gid) => lchownSync(path2, uid, gid);
|
|
48157
47921
|
var nodeVersion = process.version;
|
|
48158
|
-
var readdir = (
|
|
48159
|
-
var readdirSync = (
|
|
47922
|
+
var readdir = (path2, options, cb) => fs5.readdir(path2, options, cb);
|
|
47923
|
+
var readdirSync = (path2, options) => fs5.readdirSync(path2, options);
|
|
48160
47924
|
if (/^v4\./.test(nodeVersion))
|
|
48161
|
-
readdir = (
|
|
47925
|
+
readdir = (path2, options, cb) => fs5.readdir(path2, cb);
|
|
48162
47926
|
var chown = (cpath, uid, gid, cb) => {
|
|
48163
47927
|
fs5[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
48164
47928
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
@@ -48166,21 +47930,21 @@ var require_chownr = __commonJS({
|
|
|
48166
47930
|
};
|
|
48167
47931
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
48168
47932
|
if (typeof child === "string")
|
|
48169
|
-
return fs5.lstat(
|
|
47933
|
+
return fs5.lstat(path.resolve(p, child), (er, stats) => {
|
|
48170
47934
|
if (er)
|
|
48171
47935
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
48172
47936
|
stats.name = child;
|
|
48173
47937
|
chownrKid(p, stats, uid, gid, cb);
|
|
48174
47938
|
});
|
|
48175
47939
|
if (child.isDirectory()) {
|
|
48176
|
-
chownr(
|
|
47940
|
+
chownr(path.resolve(p, child.name), uid, gid, (er) => {
|
|
48177
47941
|
if (er)
|
|
48178
47942
|
return cb(er);
|
|
48179
|
-
const cpath =
|
|
47943
|
+
const cpath = path.resolve(p, child.name);
|
|
48180
47944
|
chown(cpath, uid, gid, cb);
|
|
48181
47945
|
});
|
|
48182
47946
|
} else {
|
|
48183
|
-
const cpath =
|
|
47947
|
+
const cpath = path.resolve(p, child.name);
|
|
48184
47948
|
chown(cpath, uid, gid, cb);
|
|
48185
47949
|
}
|
|
48186
47950
|
};
|
|
@@ -48210,7 +47974,7 @@ var require_chownr = __commonJS({
|
|
|
48210
47974
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
48211
47975
|
if (typeof child === "string") {
|
|
48212
47976
|
try {
|
|
48213
|
-
const stats = fs5.lstatSync(
|
|
47977
|
+
const stats = fs5.lstatSync(path.resolve(p, child));
|
|
48214
47978
|
stats.name = child;
|
|
48215
47979
|
child = stats;
|
|
48216
47980
|
} catch (er) {
|
|
@@ -48221,8 +47985,8 @@ var require_chownr = __commonJS({
|
|
|
48221
47985
|
}
|
|
48222
47986
|
}
|
|
48223
47987
|
if (child.isDirectory())
|
|
48224
|
-
chownrSync(
|
|
48225
|
-
handleEISDirSync(
|
|
47988
|
+
chownrSync(path.resolve(p, child.name), uid, gid);
|
|
47989
|
+
handleEISDirSync(path.resolve(p, child.name), uid, gid);
|
|
48226
47990
|
};
|
|
48227
47991
|
var chownrSync = (p, uid, gid) => {
|
|
48228
47992
|
let children;
|
|
@@ -51707,7 +51471,7 @@ var require_pump = __commonJS({
|
|
|
51707
51471
|
// ../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js
|
|
51708
51472
|
var require_mkdirp = __commonJS({
|
|
51709
51473
|
"../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js"(exports, module) {
|
|
51710
|
-
var
|
|
51474
|
+
var path = __require("path");
|
|
51711
51475
|
var fs5 = __require("fs");
|
|
51712
51476
|
var _0777 = parseInt("0777", 8);
|
|
51713
51477
|
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
@@ -51728,7 +51492,7 @@ var require_mkdirp = __commonJS({
|
|
|
51728
51492
|
var cb = f || /* istanbul ignore next */
|
|
51729
51493
|
function() {
|
|
51730
51494
|
};
|
|
51731
|
-
p =
|
|
51495
|
+
p = path.resolve(p);
|
|
51732
51496
|
xfs.mkdir(p, mode, function(er) {
|
|
51733
51497
|
if (!er) {
|
|
51734
51498
|
made = made || p;
|
|
@@ -51736,9 +51500,9 @@ var require_mkdirp = __commonJS({
|
|
|
51736
51500
|
}
|
|
51737
51501
|
switch (er.code) {
|
|
51738
51502
|
case "ENOENT":
|
|
51739
|
-
if (
|
|
51503
|
+
if (path.dirname(p) === p)
|
|
51740
51504
|
return cb(er);
|
|
51741
|
-
mkdirP(
|
|
51505
|
+
mkdirP(path.dirname(p), opts, function(er2, made2) {
|
|
51742
51506
|
if (er2)
|
|
51743
51507
|
cb(er2, made2);
|
|
51744
51508
|
else
|
|
@@ -51767,14 +51531,14 @@ var require_mkdirp = __commonJS({
|
|
|
51767
51531
|
}
|
|
51768
51532
|
if (!made)
|
|
51769
51533
|
made = null;
|
|
51770
|
-
p =
|
|
51534
|
+
p = path.resolve(p);
|
|
51771
51535
|
try {
|
|
51772
51536
|
xfs.mkdirSync(p, mode);
|
|
51773
51537
|
made = made || p;
|
|
51774
51538
|
} catch (err0) {
|
|
51775
51539
|
switch (err0.code) {
|
|
51776
51540
|
case "ENOENT":
|
|
51777
|
-
made = sync(
|
|
51541
|
+
made = sync(path.dirname(p), opts, made);
|
|
51778
51542
|
sync(p, opts, made);
|
|
51779
51543
|
break;
|
|
51780
51544
|
default:
|
|
@@ -51802,7 +51566,7 @@ var require_tar_fs = __commonJS({
|
|
|
51802
51566
|
var pump = require_pump();
|
|
51803
51567
|
var mkdirp = require_mkdirp();
|
|
51804
51568
|
var fs5 = __require("fs");
|
|
51805
|
-
var
|
|
51569
|
+
var path = __require("path");
|
|
51806
51570
|
var os2 = __require("os");
|
|
51807
51571
|
var win32 = os2.platform() === "win32";
|
|
51808
51572
|
var noop = function() {
|
|
@@ -51819,7 +51583,7 @@ var require_tar_fs = __commonJS({
|
|
|
51819
51583
|
if (!queue.length)
|
|
51820
51584
|
return callback();
|
|
51821
51585
|
var next = queue.shift();
|
|
51822
|
-
var nextAbs =
|
|
51586
|
+
var nextAbs = path.join(cwd, next);
|
|
51823
51587
|
stat2(nextAbs, function(err, stat3) {
|
|
51824
51588
|
if (err)
|
|
51825
51589
|
return callback(err);
|
|
@@ -51831,8 +51595,8 @@ var require_tar_fs = __commonJS({
|
|
|
51831
51595
|
if (sort)
|
|
51832
51596
|
files.sort();
|
|
51833
51597
|
for (var i = 0; i < files.length; i++) {
|
|
51834
|
-
if (!ignore(
|
|
51835
|
-
queue.push(
|
|
51598
|
+
if (!ignore(path.join(cwd, next, files[i])))
|
|
51599
|
+
queue.push(path.join(next, files[i]));
|
|
51836
51600
|
}
|
|
51837
51601
|
callback(null, next, stat3);
|
|
51838
51602
|
});
|
|
@@ -51843,7 +51607,7 @@ var require_tar_fs = __commonJS({
|
|
|
51843
51607
|
return function(header) {
|
|
51844
51608
|
header.name = header.name.split("/").slice(level).join("/");
|
|
51845
51609
|
var linkname = header.linkname;
|
|
51846
|
-
if (linkname && (header.type === "link" ||
|
|
51610
|
+
if (linkname && (header.type === "link" || path.isAbsolute(linkname))) {
|
|
51847
51611
|
header.linkname = linkname.split("/").slice(level).join("/");
|
|
51848
51612
|
}
|
|
51849
51613
|
return map(header);
|
|
@@ -51876,7 +51640,7 @@ var require_tar_fs = __commonJS({
|
|
|
51876
51640
|
fmode |= parseInt(222, 8);
|
|
51877
51641
|
}
|
|
51878
51642
|
var onsymlink = function(filename, header) {
|
|
51879
|
-
xfs.readlink(
|
|
51643
|
+
xfs.readlink(path.join(cwd, filename), function(err, linkname) {
|
|
51880
51644
|
if (err)
|
|
51881
51645
|
return pack.destroy(err);
|
|
51882
51646
|
header.linkname = normalize(linkname);
|
|
@@ -51923,7 +51687,7 @@ var require_tar_fs = __commonJS({
|
|
|
51923
51687
|
var entry = pack.entry(header, onnextentry);
|
|
51924
51688
|
if (!entry)
|
|
51925
51689
|
return;
|
|
51926
|
-
var rs = mapStream(xfs.createReadStream(
|
|
51690
|
+
var rs = mapStream(xfs.createReadStream(path.join(cwd, filename)), header);
|
|
51927
51691
|
rs.on("error", function(err2) {
|
|
51928
51692
|
entry.destroy(err2);
|
|
51929
51693
|
});
|
|
@@ -52014,7 +51778,7 @@ var require_tar_fs = __commonJS({
|
|
|
52014
51778
|
extract.on("entry", function(header, stream, next) {
|
|
52015
51779
|
header = map(header) || header;
|
|
52016
51780
|
header.name = normalize(header.name);
|
|
52017
|
-
var name =
|
|
51781
|
+
var name = path.join(cwd, path.join("/", header.name));
|
|
52018
51782
|
if (ignore(name, header)) {
|
|
52019
51783
|
stream.resume();
|
|
52020
51784
|
return next();
|
|
@@ -52041,7 +51805,7 @@ var require_tar_fs = __commonJS({
|
|
|
52041
51805
|
if (win32)
|
|
52042
51806
|
return next();
|
|
52043
51807
|
xfs.unlink(name, function() {
|
|
52044
|
-
var srcpath =
|
|
51808
|
+
var srcpath = path.join(cwd, path.join("/", header.linkname));
|
|
52045
51809
|
xfs.link(srcpath, name, function(err) {
|
|
52046
51810
|
if (err && err.code === "EPERM" && opts.hardlinkAsFilesFallback) {
|
|
52047
51811
|
stream = xfs.createReadStream(srcpath);
|
|
@@ -52072,8 +51836,8 @@ var require_tar_fs = __commonJS({
|
|
|
52072
51836
|
gid: header.gid
|
|
52073
51837
|
}, stat2);
|
|
52074
51838
|
}
|
|
52075
|
-
var dir =
|
|
52076
|
-
validate2(xfs, dir,
|
|
51839
|
+
var dir = path.dirname(name);
|
|
51840
|
+
validate2(xfs, dir, path.join(cwd, "."), function(err, valid) {
|
|
52077
51841
|
if (err)
|
|
52078
51842
|
return next(err);
|
|
52079
51843
|
if (!valid)
|
|
@@ -52112,7 +51876,7 @@ var require_tar_fs = __commonJS({
|
|
|
52112
51876
|
if (err && err.code !== "ENOENT")
|
|
52113
51877
|
return cb(err);
|
|
52114
51878
|
if (err || st.isDirectory())
|
|
52115
|
-
return validate2(fs6,
|
|
51879
|
+
return validate2(fs6, path.join(name, ".."), root, cb);
|
|
52116
51880
|
cb(null, false);
|
|
52117
51881
|
});
|
|
52118
51882
|
}
|
|
@@ -52217,8 +51981,8 @@ var require_create_deployment = __commonJS({
|
|
|
52217
51981
|
default: () => buildCreateDeployment
|
|
52218
51982
|
});
|
|
52219
51983
|
module.exports = __toCommonJS2(create_deployment_exports);
|
|
52220
|
-
var import_fs_extra9 =
|
|
52221
|
-
var
|
|
51984
|
+
var import_fs_extra9 = require_lib5();
|
|
51985
|
+
var import_path11 = __require("path");
|
|
52222
51986
|
var import_hashes = require_hashes();
|
|
52223
51987
|
var import_deploy = require_deploy();
|
|
52224
51988
|
var import_upload = require_upload();
|
|
@@ -52228,12 +51992,12 @@ var require_create_deployment = __commonJS({
|
|
|
52228
51992
|
var import_archive = require_archive();
|
|
52229
51993
|
function buildCreateDeployment() {
|
|
52230
51994
|
return async function* createDeployment(clientOptions, deploymentOptions = {}) {
|
|
52231
|
-
const { path
|
|
51995
|
+
const { path } = clientOptions;
|
|
52232
51996
|
const debug = (0, import_utils4.createDebug)(clientOptions.debug);
|
|
52233
51997
|
debug("Creating deployment...");
|
|
52234
|
-
if (typeof
|
|
51998
|
+
if (typeof path !== "string" && !Array.isArray(path)) {
|
|
52235
51999
|
debug(
|
|
52236
|
-
`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}`
|
|
52237
52001
|
);
|
|
52238
52002
|
throw new import_errors3.DeploymentError({
|
|
52239
52003
|
code: "missing_path",
|
|
@@ -52265,30 +52029,30 @@ var require_create_deployment = __commonJS({
|
|
|
52265
52029
|
yield* (0, import_deploy.deploy)(/* @__PURE__ */ new Map(), clientOptions, deploymentOptions);
|
|
52266
52030
|
return;
|
|
52267
52031
|
}
|
|
52268
|
-
clientOptions.isDirectory = !Array.isArray(
|
|
52269
|
-
if (Array.isArray(
|
|
52270
|
-
for (const filePath of
|
|
52271
|
-
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)) {
|
|
52272
52036
|
throw new import_errors3.DeploymentError({
|
|
52273
52037
|
code: "invalid_path",
|
|
52274
52038
|
message: `Provided path ${filePath} is not absolute`
|
|
52275
52039
|
});
|
|
52276
52040
|
}
|
|
52277
52041
|
}
|
|
52278
|
-
} else if (!(0,
|
|
52042
|
+
} else if (!(0, import_path11.isAbsolute)(path)) {
|
|
52279
52043
|
throw new import_errors3.DeploymentError({
|
|
52280
52044
|
code: "invalid_path",
|
|
52281
|
-
message: `Provided path ${
|
|
52045
|
+
message: `Provided path ${path} is not absolute`
|
|
52282
52046
|
});
|
|
52283
52047
|
}
|
|
52284
|
-
if (clientOptions.isDirectory && !Array.isArray(
|
|
52048
|
+
if (clientOptions.isDirectory && !Array.isArray(path)) {
|
|
52285
52049
|
debug(`Provided 'path' is a directory.`);
|
|
52286
|
-
} else if (Array.isArray(
|
|
52050
|
+
} else if (Array.isArray(path)) {
|
|
52287
52051
|
debug(`Provided 'path' is an array of file paths`);
|
|
52288
52052
|
} else {
|
|
52289
52053
|
debug(`Provided 'path' is a single file`);
|
|
52290
52054
|
}
|
|
52291
|
-
const { fileList } = await (0, import_utils4.buildFileTree)(
|
|
52055
|
+
const { fileList } = await (0, import_utils4.buildFileTree)(path, clientOptions, debug);
|
|
52292
52056
|
if (fileList.length === 0) {
|
|
52293
52057
|
debug("Deployment path has no files. Yielding a warning event");
|
|
52294
52058
|
yield {
|
|
@@ -52296,7 +52060,7 @@ var require_create_deployment = __commonJS({
|
|
|
52296
52060
|
payload: "There are no files inside your deployment."
|
|
52297
52061
|
};
|
|
52298
52062
|
}
|
|
52299
|
-
const workPath = typeof
|
|
52063
|
+
const workPath = typeof path === "string" ? path : path[0];
|
|
52300
52064
|
let files;
|
|
52301
52065
|
try {
|
|
52302
52066
|
if (clientOptions.archive === "tgz") {
|
|
@@ -52306,9 +52070,9 @@ var require_create_deployment = __commonJS({
|
|
|
52306
52070
|
}
|
|
52307
52071
|
} catch (err) {
|
|
52308
52072
|
if (clientOptions.prebuilt && (0, import_error_utils5.isErrnoException)(err) && err.code === "ENOENT" && err.path) {
|
|
52309
|
-
const errPath = (0,
|
|
52310
|
-
err.message = `File does not exist: "${(0,
|
|
52311
|
-
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")) {
|
|
52312
52076
|
err.message = `Please ensure project dependencies have been installed:
|
|
52313
52077
|
${err.message}`;
|
|
52314
52078
|
}
|
|
@@ -52371,8 +52135,8 @@ var require_continue = __commonJS({
|
|
|
52371
52135
|
continueDeployment: () => continueDeployment2
|
|
52372
52136
|
});
|
|
52373
52137
|
module.exports = __toCommonJS2(continue_exports);
|
|
52374
|
-
var
|
|
52375
|
-
var import_fs_extra9 = __toESM2(
|
|
52138
|
+
var import_path11 = __require("path");
|
|
52139
|
+
var import_fs_extra9 = __toESM2(require_lib5());
|
|
52376
52140
|
var import_check_deployment_status = require_check_deployment_status();
|
|
52377
52141
|
var import_utils4 = require_utils10();
|
|
52378
52142
|
var import_hashes = require_hashes();
|
|
@@ -52383,7 +52147,7 @@ var require_continue = __commonJS({
|
|
|
52383
52147
|
async function* continueDeployment2(options) {
|
|
52384
52148
|
const debug = (0, import_utils4.createDebug)(options.debug);
|
|
52385
52149
|
debug(`Continuing deployment: ${options.deploymentId}`);
|
|
52386
|
-
const outputDir = options.vercelOutputDir || (0,
|
|
52150
|
+
const outputDir = options.vercelOutputDir || (0, import_path11.join)(options.path, ".vercel", "output");
|
|
52387
52151
|
if (!await import_fs_extra9.default.pathExists(outputDir)) {
|
|
52388
52152
|
return yield {
|
|
52389
52153
|
type: "error",
|
|
@@ -52398,7 +52162,7 @@ var require_continue = __commonJS({
|
|
|
52398
52162
|
{ isDirectory: true, prebuilt: true, vercelOutputDir: outputDir },
|
|
52399
52163
|
debug
|
|
52400
52164
|
);
|
|
52401
|
-
const provisionJsonPath = (0,
|
|
52165
|
+
const provisionJsonPath = (0, import_path11.join)(outputDir, "provision.json");
|
|
52402
52166
|
const unbundledFiles = fileList.filter((f) => f === provisionJsonPath);
|
|
52403
52167
|
let files;
|
|
52404
52168
|
if (options.archive === "tgz") {
|
|
@@ -52724,33 +52488,15 @@ async function getTeamById(client, teamId) {
|
|
|
52724
52488
|
return team;
|
|
52725
52489
|
}
|
|
52726
52490
|
|
|
52727
|
-
// src/util/
|
|
52728
|
-
var import_xdg_app_paths = __toESM(require_xdg_app_paths(), 1);
|
|
52729
|
-
import { homedir } from "os";
|
|
52491
|
+
// src/util/fs.ts
|
|
52730
52492
|
import fs from "fs";
|
|
52731
|
-
|
|
52732
|
-
var isDirectory = (path2) => {
|
|
52493
|
+
function isDirectory(targetPath) {
|
|
52733
52494
|
try {
|
|
52734
|
-
return fs.lstatSync(
|
|
52735
|
-
} catch
|
|
52495
|
+
return fs.lstatSync(targetPath).isDirectory();
|
|
52496
|
+
} catch {
|
|
52736
52497
|
return false;
|
|
52737
52498
|
}
|
|
52738
|
-
}
|
|
52739
|
-
var getGlobalPathConfig = () => {
|
|
52740
|
-
const argv = getArgs(process.argv.slice(2), {}, { permissive: true });
|
|
52741
|
-
const customPath = argv["--global-config"];
|
|
52742
|
-
const vercelDirectories = (0, import_xdg_app_paths.default)("com.vercel.cli").dataDirs();
|
|
52743
|
-
const possibleConfigPaths = [
|
|
52744
|
-
...vercelDirectories,
|
|
52745
|
-
// latest vercel directory
|
|
52746
|
-
path.join(homedir(), ".now"),
|
|
52747
|
-
// legacy config in user's home directory
|
|
52748
|
-
...(0, import_xdg_app_paths.default)("now").dataDirs()
|
|
52749
|
-
// legacy XDG directory
|
|
52750
|
-
];
|
|
52751
|
-
return customPath && path.resolve(customPath) || possibleConfigPaths.find((configPath) => isDirectory(configPath)) || vercelDirectories[0];
|
|
52752
|
-
};
|
|
52753
|
-
var global_path_default = getGlobalPathConfig;
|
|
52499
|
+
}
|
|
52754
52500
|
|
|
52755
52501
|
// src/util/projects/link.ts
|
|
52756
52502
|
import { NowBuildError as NowBuildError2, getPlatformEnv } from "@vercel/build-utils";
|
|
@@ -53120,7 +52866,7 @@ var CancelablePromise = class _CancelablePromise extends Promise {
|
|
|
53120
52866
|
};
|
|
53121
52867
|
|
|
53122
52868
|
// ../../node_modules/.pnpm/@inquirer+core@7.1.3/node_modules/@inquirer/core/dist/esm/lib/create-prompt.mjs
|
|
53123
|
-
var import_mute_stream = __toESM(
|
|
52869
|
+
var import_mute_stream = __toESM(require_lib3(), 1);
|
|
53124
52870
|
|
|
53125
52871
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
53126
52872
|
var signals = [];
|
|
@@ -53982,16 +53728,16 @@ ${error}${import_ansi_escapes2.default.cursorHide}`;
|
|
|
53982
53728
|
var import_pluralize = __toESM(require_pluralize(), 1);
|
|
53983
53729
|
var import_slugify = __toESM(require_slugify(), 1);
|
|
53984
53730
|
var import_fs_extra3 = __toESM(require_lib2(), 1);
|
|
53985
|
-
import { homedir as
|
|
53731
|
+
import { homedir as homedir2 } from "os";
|
|
53986
53732
|
import { basename, join as join5 } from "path";
|
|
53987
53733
|
import { normalizePath, traverseUpDirectories } from "@vercel/build-utils";
|
|
53988
53734
|
|
|
53989
53735
|
// src/util/humanize-path.ts
|
|
53990
|
-
import { homedir
|
|
53736
|
+
import { homedir } from "os";
|
|
53991
53737
|
import { resolve } from "path";
|
|
53992
|
-
function humanizePath(
|
|
53993
|
-
const resolved = resolve(
|
|
53994
|
-
const _homedir =
|
|
53738
|
+
function humanizePath(path) {
|
|
53739
|
+
const resolved = resolve(path);
|
|
53740
|
+
const _homedir = homedir();
|
|
53995
53741
|
return resolved.indexOf(_homedir) === 0 ? `~${resolved.slice(_homedir.length)}` : resolved;
|
|
53996
53742
|
}
|
|
53997
53743
|
|
|
@@ -54250,10 +53996,10 @@ async function selectOrg(client, question, autoConfirm) {
|
|
|
54250
53996
|
var import_fs_extra2 = __toESM(require_lib2(), 1);
|
|
54251
53997
|
import os from "os";
|
|
54252
53998
|
import { join as join2 } from "path";
|
|
54253
|
-
async function addToGitIgnore(
|
|
53999
|
+
async function addToGitIgnore(path, ignore = VERCEL_DIR) {
|
|
54254
54000
|
let isGitIgnoreUpdated = false;
|
|
54255
54001
|
try {
|
|
54256
|
-
const gitIgnorePath = join2(
|
|
54002
|
+
const gitIgnorePath = join2(path, ".gitignore");
|
|
54257
54003
|
let gitIgnore = await (0, import_fs_extra2.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
|
|
54258
54004
|
const EOL = gitIgnore.includes("\r\n") ? "\r\n" : os.EOL;
|
|
54259
54005
|
let contentModified = false;
|
|
@@ -54797,7 +54543,7 @@ function getGitConfigPath(opts) {
|
|
|
54797
54543
|
}
|
|
54798
54544
|
|
|
54799
54545
|
// src/util/link/repo.ts
|
|
54800
|
-
var home =
|
|
54546
|
+
var home = homedir2();
|
|
54801
54547
|
async function getRepoLink(client, cwd) {
|
|
54802
54548
|
const rootPath = await findRepoRoot(cwd);
|
|
54803
54549
|
if (!rootPath)
|
|
@@ -54811,38 +54557,14 @@ async function getRepoLink(client, cwd) {
|
|
|
54811
54557
|
);
|
|
54812
54558
|
return { rootPath, repoConfig, repoConfigPath };
|
|
54813
54559
|
}
|
|
54814
|
-
async function
|
|
54560
|
+
async function resolveGitRemote(client, rootPath, {
|
|
54815
54561
|
yes,
|
|
54816
|
-
existingProjectIds,
|
|
54817
|
-
existingDirectories,
|
|
54818
54562
|
existingRemoteName
|
|
54819
54563
|
}) {
|
|
54820
|
-
const detectedProjectsPromise = detectProjects(rootPath).catch((err) => {
|
|
54821
|
-
output_manager_default.debug(`Failed to detect local projects: ${err}`);
|
|
54822
|
-
return /* @__PURE__ */ new Map();
|
|
54823
|
-
});
|
|
54824
|
-
const promptAction = existingRemoteName ? "add" : "link";
|
|
54825
|
-
const confirmMessage = promptAction === "add" ? `Add Project(s) for Git repository at ${import_chalk6.default.cyan(
|
|
54826
|
-
`"${humanizePath(rootPath)}"`
|
|
54827
|
-
)}?` : `Link Git repository at ${import_chalk6.default.cyan(
|
|
54828
|
-
`"${humanizePath(rootPath)}"`
|
|
54829
|
-
)} to your Project(s)?`;
|
|
54830
|
-
const shouldLink = yes || await client.input.confirm(confirmMessage, true);
|
|
54831
|
-
if (!shouldLink) {
|
|
54832
|
-
output_manager_default.print(`Canceled. Repository not linked.
|
|
54833
|
-
`);
|
|
54834
|
-
return;
|
|
54835
|
-
}
|
|
54836
|
-
const org = await selectOrg(
|
|
54837
|
-
client,
|
|
54838
|
-
"Which scope should contain your Project(s)?",
|
|
54839
|
-
yes
|
|
54840
|
-
);
|
|
54841
|
-
client.config.currentTeam = org.type === "team" ? org.id : void 0;
|
|
54842
54564
|
const gitConfigPath = getGitConfigPath({ cwd: rootPath }) ?? join5(rootPath, ".git/config");
|
|
54843
54565
|
const remoteUrls = await getRemoteUrls(gitConfigPath);
|
|
54844
54566
|
if (!remoteUrls) {
|
|
54845
|
-
|
|
54567
|
+
return void 0;
|
|
54846
54568
|
}
|
|
54847
54569
|
let remoteName;
|
|
54848
54570
|
if (existingRemoteName) {
|
|
@@ -54871,7 +54593,96 @@ async function discoverRepoProjects(client, rootPath, {
|
|
|
54871
54593
|
}
|
|
54872
54594
|
}
|
|
54873
54595
|
}
|
|
54874
|
-
|
|
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;
|
|
54875
54686
|
const parsedRepoUrl = parseRepoUrl(repoUrl);
|
|
54876
54687
|
if (!parsedRepoUrl) {
|
|
54877
54688
|
throw new Error(`Failed to parse Git URL: ${repoUrl}`);
|
|
@@ -54882,16 +54693,8 @@ async function discoverRepoProjects(client, rootPath, {
|
|
|
54882
54693
|
output_manager_default.spinner(
|
|
54883
54694
|
`Fetching Projects for ${repoUrlLink} under ${import_chalk6.default.bold(org.slug)}\u2026`
|
|
54884
54695
|
);
|
|
54885
|
-
let projects = [];
|
|
54886
|
-
const query = new URLSearchParams({ repoUrl });
|
|
54887
|
-
const projectsIterator = client.fetchPaginated(`/v9/projects?${query}`);
|
|
54888
54696
|
const detectedProjects = await detectedProjectsPromise;
|
|
54889
|
-
|
|
54890
|
-
projects = projects.concat(chunk.projects);
|
|
54891
|
-
if (chunk.pagination.next) {
|
|
54892
|
-
output_manager_default.spinner(`Found ${import_chalk6.default.bold(projects.length)} Projects\u2026`, 0);
|
|
54893
|
-
}
|
|
54894
|
-
}
|
|
54697
|
+
let projects = await fetchProjectsForRepoUrl(client, repoUrl, org.id);
|
|
54895
54698
|
if (existingProjectIds || existingDirectories) {
|
|
54896
54699
|
projects = projects.filter((p) => {
|
|
54897
54700
|
if (existingProjectIds?.has(p.id))
|
|
@@ -55163,8 +54966,8 @@ function sortByDirectory(a, b) {
|
|
|
55163
54966
|
const bParts = b.directory.split("/");
|
|
55164
54967
|
return bParts.length - aParts.length;
|
|
55165
54968
|
}
|
|
55166
|
-
function findProjectsFromPath(projects,
|
|
55167
|
-
const normalizedPath = normalizePath(
|
|
54969
|
+
function findProjectsFromPath(projects, path) {
|
|
54970
|
+
const normalizedPath = normalizePath(path);
|
|
55168
54971
|
const matches = projects.slice().sort(sortByDirectory).filter((project) => {
|
|
55169
54972
|
if (project.directory === ".") {
|
|
55170
54973
|
return true;
|
|
@@ -55172,6 +54975,9 @@ function findProjectsFromPath(projects, path2) {
|
|
|
55172
54975
|
return normalizedPath === project.directory || normalizedPath.startsWith(`${project.directory}/`);
|
|
55173
54976
|
});
|
|
55174
54977
|
const firstMatch = matches[0];
|
|
54978
|
+
if (!firstMatch) {
|
|
54979
|
+
return [];
|
|
54980
|
+
}
|
|
55175
54981
|
return matches.filter((match) => match.directory === firstMatch.directory);
|
|
55176
54982
|
}
|
|
55177
54983
|
|
|
@@ -55774,9 +55580,9 @@ function parseTarget({
|
|
|
55774
55580
|
|
|
55775
55581
|
// src/commands/env/pull.ts
|
|
55776
55582
|
var CONTENTS_PREFIX = "# Created by Vercel CLI\n";
|
|
55777
|
-
function readHeadSync(
|
|
55583
|
+
function readHeadSync(path, length) {
|
|
55778
55584
|
const buffer = Buffer.alloc(length);
|
|
55779
|
-
const fd = openSync(
|
|
55585
|
+
const fd = openSync(path, "r");
|
|
55780
55586
|
try {
|
|
55781
55587
|
readSync(
|
|
55782
55588
|
fd,
|
|
@@ -55790,9 +55596,9 @@ function readHeadSync(path2, length) {
|
|
|
55790
55596
|
}
|
|
55791
55597
|
return buffer.toString();
|
|
55792
55598
|
}
|
|
55793
|
-
function tryReadHeadSync(
|
|
55599
|
+
function tryReadHeadSync(path, length) {
|
|
55794
55600
|
try {
|
|
55795
|
-
return readHeadSync(
|
|
55601
|
+
return readHeadSync(path, length);
|
|
55796
55602
|
} catch (err) {
|
|
55797
55603
|
if (!(0, import_error_utils2.isErrnoException)(err) || err.code !== "ENOENT") {
|
|
55798
55604
|
throw err;
|
|
@@ -56557,9 +56363,6 @@ async function prepareServicesConfigWrite(cwd, config) {
|
|
|
56557
56363
|
`Cannot automatically update ${compileResult.sourceFile ?? "the current Vercel config"}.`
|
|
56558
56364
|
);
|
|
56559
56365
|
}
|
|
56560
|
-
if (compileResult.configPath && basename2(compileResult.configPath) === "now.json") {
|
|
56561
|
-
throw new Error("Cannot automatically update now.json.");
|
|
56562
|
-
}
|
|
56563
56366
|
let existingConfig = {};
|
|
56564
56367
|
if (compileResult.configPath && basename2(compileResult.configPath) === "vercel.json") {
|
|
56565
56368
|
const result = await readJSONFile(configPath);
|
|
@@ -56653,7 +56456,7 @@ async function resolveProjectCwd(cwd) {
|
|
|
56653
56456
|
return cwd;
|
|
56654
56457
|
}
|
|
56655
56458
|
const result = await tryDetectServices(projectRoot);
|
|
56656
|
-
if (result && result.services
|
|
56459
|
+
if (result && (result.services?.length ?? 0) > 0) {
|
|
56657
56460
|
output_manager_default.debug(`Running from project root: ${import_chalk11.default.cyan(projectRoot)}`);
|
|
56658
56461
|
return projectRoot;
|
|
56659
56462
|
}
|
|
@@ -56698,21 +56501,21 @@ function getVercelDirectory(cwd) {
|
|
|
56698
56501
|
}
|
|
56699
56502
|
return existingDirs[0] || possibleDirs[0];
|
|
56700
56503
|
}
|
|
56701
|
-
async function getProjectLink(client,
|
|
56702
|
-
const dirLink = await getLinkFromDir(getVercelDirectory(
|
|
56504
|
+
async function getProjectLink(client, path, projectName) {
|
|
56505
|
+
const dirLink = await getLinkFromDir(getVercelDirectory(path));
|
|
56703
56506
|
if (dirLink) {
|
|
56704
56507
|
return dirLink;
|
|
56705
56508
|
}
|
|
56706
|
-
return await getProjectLinkFromRepoLink(client,
|
|
56509
|
+
return await getProjectLinkFromRepoLink(client, path, projectName);
|
|
56707
56510
|
}
|
|
56708
|
-
async function getProjectLinkFromRepoLink(client,
|
|
56709
|
-
const repoLink = await getRepoLink(client,
|
|
56511
|
+
async function getProjectLinkFromRepoLink(client, path, projectName) {
|
|
56512
|
+
const repoLink = await getRepoLink(client, path);
|
|
56710
56513
|
if (!repoLink?.repoConfig) {
|
|
56711
56514
|
return null;
|
|
56712
56515
|
}
|
|
56713
56516
|
const projects = findProjectsFromPath(
|
|
56714
56517
|
repoLink.repoConfig.projects,
|
|
56715
|
-
relative(repoLink.rootPath,
|
|
56518
|
+
relative(repoLink.rootPath, path)
|
|
56716
56519
|
);
|
|
56717
56520
|
let project;
|
|
56718
56521
|
if (projects.length === 1) {
|
|
@@ -56810,13 +56613,13 @@ async function getOrgById(client, orgId) {
|
|
|
56810
56613
|
return null;
|
|
56811
56614
|
return { type: "user", id: orgId, slug: user.username };
|
|
56812
56615
|
}
|
|
56813
|
-
async function hasProjectLink(client, projectLink,
|
|
56616
|
+
async function hasProjectLink(client, projectLink, path) {
|
|
56814
56617
|
const VERCEL_ORG_ID = getPlatformEnv("ORG_ID");
|
|
56815
56618
|
const VERCEL_PROJECT_ID = getPlatformEnv("PROJECT_ID");
|
|
56816
56619
|
if (VERCEL_ORG_ID === projectLink.orgId && VERCEL_PROJECT_ID === projectLink.projectId) {
|
|
56817
56620
|
return true;
|
|
56818
56621
|
}
|
|
56819
|
-
const repoLink = await getRepoLink(client,
|
|
56622
|
+
const repoLink = await getRepoLink(client, path);
|
|
56820
56623
|
if (repoLink?.repoConfig) {
|
|
56821
56624
|
const matchingProject = repoLink.repoConfig.projects.find(
|
|
56822
56625
|
(p) => p.id === projectLink.projectId
|
|
@@ -56833,14 +56636,14 @@ async function hasProjectLink(client, projectLink, path2) {
|
|
|
56833
56636
|
}
|
|
56834
56637
|
}
|
|
56835
56638
|
}
|
|
56836
|
-
const link = await getLinkFromDir(getVercelDirectory(
|
|
56639
|
+
const link = await getLinkFromDir(getVercelDirectory(path));
|
|
56837
56640
|
if (link && link.orgId === projectLink.orgId && link.projectId === projectLink.projectId) {
|
|
56838
56641
|
return true;
|
|
56839
56642
|
}
|
|
56840
56643
|
return false;
|
|
56841
56644
|
}
|
|
56842
|
-
async function getLinkedProject(client,
|
|
56843
|
-
|
|
56645
|
+
async function getLinkedProject(client, path = client.cwd, projectName) {
|
|
56646
|
+
path = await resolveProjectCwd(path);
|
|
56844
56647
|
const VERCEL_ORG_ID = getPlatformEnv("ORG_ID");
|
|
56845
56648
|
const VERCEL_PROJECT_ID = getPlatformEnv("PROJECT_ID");
|
|
56846
56649
|
const shouldUseEnv = Boolean(VERCEL_ORG_ID && VERCEL_PROJECT_ID);
|
|
@@ -56851,7 +56654,7 @@ async function getLinkedProject(client, path2 = client.cwd, projectName) {
|
|
|
56851
56654
|
);
|
|
56852
56655
|
return { status: "error", exitCode: 1 };
|
|
56853
56656
|
}
|
|
56854
|
-
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);
|
|
56855
56658
|
if (!link) {
|
|
56856
56659
|
return { status: "not_linked", org: null, project: null };
|
|
56857
56660
|
}
|
|
@@ -56929,18 +56732,18 @@ The "project.json" file contains:
|
|
|
56929
56732
|
No, you should not share the ".vercel" folder with anyone.
|
|
56930
56733
|
Upon creation, it will be automatically added to your ".gitignore" file.
|
|
56931
56734
|
`;
|
|
56932
|
-
async function writeReadme(
|
|
56735
|
+
async function writeReadme(path) {
|
|
56933
56736
|
await writeFile3(
|
|
56934
|
-
join8(
|
|
56737
|
+
join8(path, VERCEL_DIR, VERCEL_DIR_README),
|
|
56935
56738
|
VERCEL_DIR_README_CONTENT
|
|
56936
56739
|
);
|
|
56937
56740
|
}
|
|
56938
|
-
async function linkFolderToProject(client,
|
|
56939
|
-
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)) {
|
|
56940
56743
|
return;
|
|
56941
56744
|
}
|
|
56942
56745
|
try {
|
|
56943
|
-
await (0, import_fs_extra8.ensureDir)(join8(
|
|
56746
|
+
await (0, import_fs_extra8.ensureDir)(join8(path, VERCEL_DIR));
|
|
56944
56747
|
} catch (err) {
|
|
56945
56748
|
if ((0, import_error_utils4.isErrnoException)(err) && err.code === "ENOTDIR") {
|
|
56946
56749
|
return;
|
|
@@ -56948,14 +56751,14 @@ async function linkFolderToProject(client, path2, projectLink, projectName, orgS
|
|
|
56948
56751
|
throw err;
|
|
56949
56752
|
}
|
|
56950
56753
|
await writeFile3(
|
|
56951
|
-
join8(
|
|
56754
|
+
join8(path, VERCEL_DIR, VERCEL_DIR_PROJECT),
|
|
56952
56755
|
JSON.stringify({
|
|
56953
56756
|
...projectLink,
|
|
56954
56757
|
projectName
|
|
56955
56758
|
})
|
|
56956
56759
|
);
|
|
56957
|
-
await writeReadme(
|
|
56958
|
-
const isGitIgnoreUpdated = await addToGitIgnore(
|
|
56760
|
+
await writeReadme(path);
|
|
56761
|
+
const isGitIgnoreUpdated = await addToGitIgnore(path);
|
|
56959
56762
|
output_manager_default.print(
|
|
56960
56763
|
prependEmoji(
|
|
56961
56764
|
`Linked to ${import_chalk12.default.bold(
|
|
@@ -56977,7 +56780,7 @@ async function linkFolderToProject(client, path2, projectLink, projectName, orgS
|
|
|
56977
56780
|
if (pullEnvConfirmed) {
|
|
56978
56781
|
const originalCwd = client.cwd;
|
|
56979
56782
|
try {
|
|
56980
|
-
client.cwd =
|
|
56783
|
+
client.cwd = path;
|
|
56981
56784
|
const args = autoConfirm ? ["--yes"] : [];
|
|
56982
56785
|
const exitCode = await pull(client, args, "vercel-cli:link");
|
|
56983
56786
|
if (exitCode !== 0) {
|
|
@@ -57144,11 +56947,12 @@ async function compileVercelConfig(workPath) {
|
|
|
57144
56947
|
const vercelConfigPath = await findVercelConfigFile(workPath);
|
|
57145
56948
|
const vercelDir = join9(workPath, VERCEL_DIR);
|
|
57146
56949
|
const compiledConfigPath = join9(vercelDir, "vercel.json");
|
|
56950
|
+
if (hasNowJson) {
|
|
56951
|
+
throw new DeprecatedNowJson(nowJsonPath);
|
|
56952
|
+
}
|
|
57147
56953
|
const foundConfigs = [];
|
|
57148
56954
|
if (hasVercelJson)
|
|
57149
56955
|
foundConfigs.push(vercelJsonPath);
|
|
57150
|
-
if (hasNowJson)
|
|
57151
|
-
foundConfigs.push(nowJsonPath);
|
|
57152
56956
|
if (hasVercelToml)
|
|
57153
56957
|
foundConfigs.push(vercelTomlPath);
|
|
57154
56958
|
if (vercelConfigPath)
|
|
@@ -57167,12 +56971,6 @@ async function compileVercelConfig(workPath) {
|
|
|
57167
56971
|
wasCompiled: false
|
|
57168
56972
|
};
|
|
57169
56973
|
}
|
|
57170
|
-
if (hasNowJson) {
|
|
57171
|
-
return {
|
|
57172
|
-
configPath: nowJsonPath,
|
|
57173
|
-
wasCompiled: false
|
|
57174
|
-
};
|
|
57175
|
-
}
|
|
57176
56974
|
if (await fileExists(compiledConfigPath)) {
|
|
57177
56975
|
return {
|
|
57178
56976
|
configPath: compiledConfigPath,
|
|
@@ -57319,7 +57117,6 @@ async function compileVercelConfig(workPath) {
|
|
|
57319
57117
|
}
|
|
57320
57118
|
async function getVercelConfigPath(workPath) {
|
|
57321
57119
|
const vercelJsonPath = join9(workPath, "vercel.json");
|
|
57322
|
-
const nowJsonPath = join9(workPath, "now.json");
|
|
57323
57120
|
const vercelTomlPath = join9(workPath, "vercel.toml");
|
|
57324
57121
|
const compiledConfigPath = join9(workPath, VERCEL_DIR, "vercel.json");
|
|
57325
57122
|
if (await fileExists(vercelJsonPath)) {
|
|
@@ -57328,18 +57125,14 @@ async function getVercelConfigPath(workPath) {
|
|
|
57328
57125
|
if (isVercelTomlEnabled() && await fileExists(vercelTomlPath)) {
|
|
57329
57126
|
return vercelTomlPath;
|
|
57330
57127
|
}
|
|
57331
|
-
if (await fileExists(nowJsonPath)) {
|
|
57332
|
-
return nowJsonPath;
|
|
57333
|
-
}
|
|
57334
57128
|
if (await fileExists(compiledConfigPath)) {
|
|
57335
57129
|
return compiledConfigPath;
|
|
57336
57130
|
}
|
|
57337
|
-
return
|
|
57131
|
+
return vercelJsonPath;
|
|
57338
57132
|
}
|
|
57339
57133
|
|
|
57340
57134
|
export {
|
|
57341
57135
|
require_lib2 as require_lib,
|
|
57342
|
-
require_xdg_app_paths,
|
|
57343
57136
|
humanizePath,
|
|
57344
57137
|
envTargetChoices,
|
|
57345
57138
|
getEnvTargetPlaceholder,
|
|
@@ -57351,8 +57144,6 @@ export {
|
|
|
57351
57144
|
updateSubcommand,
|
|
57352
57145
|
envCommand,
|
|
57353
57146
|
param,
|
|
57354
|
-
isDirectory,
|
|
57355
|
-
global_path_default,
|
|
57356
57147
|
getUser,
|
|
57357
57148
|
getTeams,
|
|
57358
57149
|
isBackspaceKey,
|
|
@@ -57364,13 +57155,13 @@ export {
|
|
|
57364
57155
|
useKeypress,
|
|
57365
57156
|
require_cli_width,
|
|
57366
57157
|
require_wrap_ansi,
|
|
57367
|
-
|
|
57158
|
+
require_lib3 as require_lib2,
|
|
57368
57159
|
onExit,
|
|
57369
57160
|
createPrompt,
|
|
57370
57161
|
esm_default,
|
|
57371
57162
|
esm_default2,
|
|
57372
57163
|
esm_default3,
|
|
57373
|
-
|
|
57164
|
+
require_lib8 as require_lib3,
|
|
57374
57165
|
require_inherits,
|
|
57375
57166
|
require_once,
|
|
57376
57167
|
require_end_of_stream,
|
|
@@ -57380,6 +57171,7 @@ export {
|
|
|
57380
57171
|
require_ajv,
|
|
57381
57172
|
getProjectByNameOrId,
|
|
57382
57173
|
getTeamById,
|
|
57174
|
+
isDirectory,
|
|
57383
57175
|
require_pluralize,
|
|
57384
57176
|
require_slugify,
|
|
57385
57177
|
createGitMeta,
|
|
@@ -57400,8 +57192,12 @@ export {
|
|
|
57400
57192
|
selectAndParseRemoteUrl,
|
|
57401
57193
|
checkExistsAndConnect,
|
|
57402
57194
|
getRepoLink,
|
|
57195
|
+
resolveGitRemote,
|
|
57196
|
+
fetchProjectsForRepoUrl,
|
|
57197
|
+
linkRepoProject,
|
|
57403
57198
|
ensureRepoLink,
|
|
57404
57199
|
addRepoLink,
|
|
57200
|
+
findRepoRoot,
|
|
57405
57201
|
findProjectsFromPath,
|
|
57406
57202
|
getEnvRecords,
|
|
57407
57203
|
pullEnvRecords,
|