@bemoje/devkit 1.0.0 → 1.0.1
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/devkit.cjs +547 -343
- package/dist/devkit.cjs.map +4 -4
- package/package.json +2 -1
package/dist/devkit.cjs
CHANGED
|
@@ -26,6 +26,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
26
26
|
}
|
|
27
27
|
return to;
|
|
28
28
|
};
|
|
29
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
30
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
31
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
32
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -6554,7 +6555,7 @@ var require_upath = __commonJS({
|
|
|
6554
6555
|
var propName;
|
|
6555
6556
|
var propValue;
|
|
6556
6557
|
var toUnix;
|
|
6557
|
-
var
|
|
6558
|
+
var upath32;
|
|
6558
6559
|
var slice = [].slice;
|
|
6559
6560
|
var indexOf = [].indexOf || function(item) {
|
|
6560
6561
|
for (var i = 0, l = this.length; i < l; i++) {
|
|
@@ -6571,8 +6572,8 @@ var require_upath = __commonJS({
|
|
|
6571
6572
|
isString = /* @__PURE__ */ __name(function(val) {
|
|
6572
6573
|
return typeof val === "string" || !!val && typeof val === "object" && Object.prototype.toString.call(val) === "[object String]";
|
|
6573
6574
|
}, "isString");
|
|
6574
|
-
|
|
6575
|
-
|
|
6575
|
+
upath32 = exports2;
|
|
6576
|
+
upath32.VERSION = typeof VERSION !== "undefined" && VERSION !== null ? VERSION : "NO-VERSION";
|
|
6576
6577
|
toUnix = /* @__PURE__ */ __name(function(p) {
|
|
6577
6578
|
p = p.replace(/\\/g, "/");
|
|
6578
6579
|
p = p.replace(/(?<!^)\/+/g, "/");
|
|
@@ -6581,7 +6582,7 @@ var require_upath = __commonJS({
|
|
|
6581
6582
|
for (propName in path7) {
|
|
6582
6583
|
propValue = path7[propName];
|
|
6583
6584
|
if (isFunction2(propValue)) {
|
|
6584
|
-
|
|
6585
|
+
upath32[propName] = /* @__PURE__ */ function(propName2) {
|
|
6585
6586
|
return function() {
|
|
6586
6587
|
var args, result;
|
|
6587
6588
|
args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
|
|
@@ -6601,16 +6602,16 @@ var require_upath = __commonJS({
|
|
|
6601
6602
|
};
|
|
6602
6603
|
}(propName);
|
|
6603
6604
|
} else {
|
|
6604
|
-
|
|
6605
|
+
upath32[propName] = propValue;
|
|
6605
6606
|
}
|
|
6606
6607
|
}
|
|
6607
|
-
|
|
6608
|
+
upath32.sep = "/";
|
|
6608
6609
|
extraFunctions = {
|
|
6609
6610
|
toUnix,
|
|
6610
6611
|
normalizeSafe: /* @__PURE__ */ __name(function(p) {
|
|
6611
6612
|
var result;
|
|
6612
6613
|
p = toUnix(p);
|
|
6613
|
-
result =
|
|
6614
|
+
result = upath32.normalize(p);
|
|
6614
6615
|
if (p.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
|
|
6615
6616
|
result = "./" + result;
|
|
6616
6617
|
} else if (p.startsWith("//") && !result.startsWith("//")) {
|
|
@@ -6623,7 +6624,7 @@ var require_upath = __commonJS({
|
|
|
6623
6624
|
return result;
|
|
6624
6625
|
}, "normalizeSafe"),
|
|
6625
6626
|
normalizeTrim: /* @__PURE__ */ __name(function(p) {
|
|
6626
|
-
p =
|
|
6627
|
+
p = upath32.normalizeSafe(p);
|
|
6627
6628
|
if (p.endsWith("/")) {
|
|
6628
6629
|
return p.slice(0, +(p.length - 2) + 1 || 9e9);
|
|
6629
6630
|
} else {
|
|
@@ -6633,7 +6634,7 @@ var require_upath = __commonJS({
|
|
|
6633
6634
|
joinSafe: /* @__PURE__ */ __name(function() {
|
|
6634
6635
|
var p, p0, result;
|
|
6635
6636
|
p = 1 <= arguments.length ? slice.call(arguments, 0) : [];
|
|
6636
|
-
result =
|
|
6637
|
+
result = upath32.join.apply(null, p);
|
|
6637
6638
|
if (p.length > 0) {
|
|
6638
6639
|
p0 = toUnix(p[0]);
|
|
6639
6640
|
if (p0.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
|
|
@@ -6663,7 +6664,7 @@ var require_upath = __commonJS({
|
|
|
6663
6664
|
if (maxSize == null) {
|
|
6664
6665
|
maxSize = 7;
|
|
6665
6666
|
}
|
|
6666
|
-
oldExt =
|
|
6667
|
+
oldExt = upath32.extname(filename);
|
|
6667
6668
|
if (isValidExt(oldExt, ignoreExts, maxSize)) {
|
|
6668
6669
|
return filename.slice(0, +(filename.length - oldExt.length - 1) + 1 || 9e9);
|
|
6669
6670
|
} else {
|
|
@@ -6675,8 +6676,8 @@ var require_upath = __commonJS({
|
|
|
6675
6676
|
return filename;
|
|
6676
6677
|
} else {
|
|
6677
6678
|
ext2 = ext2[0] === "." ? ext2 : "." + ext2;
|
|
6678
|
-
if (
|
|
6679
|
-
return
|
|
6679
|
+
if (upath32.extname(filename) === ext2) {
|
|
6680
|
+
return upath32.trimExt(filename, [], ext2.length);
|
|
6680
6681
|
} else {
|
|
6681
6682
|
return filename;
|
|
6682
6683
|
}
|
|
@@ -6686,18 +6687,18 @@ var require_upath = __commonJS({
|
|
|
6686
6687
|
if (maxSize == null) {
|
|
6687
6688
|
maxSize = 7;
|
|
6688
6689
|
}
|
|
6689
|
-
return
|
|
6690
|
+
return upath32.trimExt(filename, ignoreExts, maxSize) + (!ext2 ? "" : ext2[0] === "." ? ext2 : "." + ext2);
|
|
6690
6691
|
}, "changeExt"),
|
|
6691
6692
|
defaultExt: /* @__PURE__ */ __name(function(filename, ext2, ignoreExts, maxSize) {
|
|
6692
6693
|
var oldExt;
|
|
6693
6694
|
if (maxSize == null) {
|
|
6694
6695
|
maxSize = 7;
|
|
6695
6696
|
}
|
|
6696
|
-
oldExt =
|
|
6697
|
+
oldExt = upath32.extname(filename);
|
|
6697
6698
|
if (isValidExt(oldExt, ignoreExts, maxSize)) {
|
|
6698
6699
|
return filename;
|
|
6699
6700
|
} else {
|
|
6700
|
-
return
|
|
6701
|
+
return upath32.addExt(filename, ext2);
|
|
6701
6702
|
}
|
|
6702
6703
|
}, "defaultExt")
|
|
6703
6704
|
};
|
|
@@ -6713,10 +6714,10 @@ var require_upath = __commonJS({
|
|
|
6713
6714
|
if (!hasProp.call(extraFunctions, name))
|
|
6714
6715
|
continue;
|
|
6715
6716
|
extraFn = extraFunctions[name];
|
|
6716
|
-
if (
|
|
6717
|
+
if (upath32[name] !== void 0) {
|
|
6717
6718
|
throw new Error("path." + name + " already exists.");
|
|
6718
6719
|
} else {
|
|
6719
|
-
|
|
6720
|
+
upath32[name] = extraFn;
|
|
6720
6721
|
}
|
|
6721
6722
|
}
|
|
6722
6723
|
}
|
|
@@ -6756,12 +6757,12 @@ var require_polyfills = __commonJS({
|
|
|
6756
6757
|
"use strict";
|
|
6757
6758
|
var constants = require("constants");
|
|
6758
6759
|
var origCwd = process.cwd;
|
|
6759
|
-
var
|
|
6760
|
+
var cwd3 = null;
|
|
6760
6761
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
6761
6762
|
process.cwd = function() {
|
|
6762
|
-
if (!
|
|
6763
|
-
|
|
6764
|
-
return
|
|
6763
|
+
if (!cwd3)
|
|
6764
|
+
cwd3 = origCwd.call(process);
|
|
6765
|
+
return cwd3;
|
|
6765
6766
|
};
|
|
6766
6767
|
try {
|
|
6767
6768
|
process.cwd();
|
|
@@ -6770,7 +6771,7 @@ var require_polyfills = __commonJS({
|
|
|
6770
6771
|
if (typeof process.chdir === "function") {
|
|
6771
6772
|
chdir = process.chdir;
|
|
6772
6773
|
process.chdir = function(d) {
|
|
6773
|
-
|
|
6774
|
+
cwd3 = null;
|
|
6774
6775
|
chdir.call(process, d);
|
|
6775
6776
|
};
|
|
6776
6777
|
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
@@ -19731,14 +19732,14 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
|
|
|
19731
19732
|
);
|
|
19732
19733
|
const nodes = [];
|
|
19733
19734
|
const edges = [];
|
|
19734
|
-
const
|
|
19735
|
+
const root2 = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
|
|
19735
19736
|
for (const node of nodes) {
|
|
19736
19737
|
node.text = renderFlowNode(node.flowNode, node.circular);
|
|
19737
19738
|
computeLevel(node);
|
|
19738
19739
|
}
|
|
19739
|
-
const height = computeHeight(
|
|
19740
|
+
const height = computeHeight(root2);
|
|
19740
19741
|
const columnWidths = computeColumnWidths(height);
|
|
19741
|
-
computeLanes(
|
|
19742
|
+
computeLanes(root2, 0);
|
|
19742
19743
|
return renderGraph();
|
|
19743
19744
|
function isFlowSwitchClause(f) {
|
|
19744
19745
|
return !!(f.flags & 128);
|
|
@@ -24663,10 +24664,10 @@ ${lanes.join("\n")}
|
|
|
24663
24664
|
}
|
|
24664
24665
|
__name(getAnyExtensionFromPath, "getAnyExtensionFromPath");
|
|
24665
24666
|
function pathComponents(path7, rootLength) {
|
|
24666
|
-
const
|
|
24667
|
+
const root2 = path7.substring(0, rootLength);
|
|
24667
24668
|
const rest = path7.substring(rootLength).split(directorySeparator);
|
|
24668
24669
|
if (rest.length && !lastOrUndefined(rest)) rest.pop();
|
|
24669
|
-
return [
|
|
24670
|
+
return [root2, ...rest];
|
|
24670
24671
|
}
|
|
24671
24672
|
__name(pathComponents, "pathComponents");
|
|
24672
24673
|
function getPathComponents(path7, currentDirectory = "") {
|
|
@@ -24676,8 +24677,8 @@ ${lanes.join("\n")}
|
|
|
24676
24677
|
__name(getPathComponents, "getPathComponents");
|
|
24677
24678
|
function getPathFromPathComponents(pathComponents2, length2) {
|
|
24678
24679
|
if (pathComponents2.length === 0) return "";
|
|
24679
|
-
const
|
|
24680
|
-
return
|
|
24680
|
+
const root2 = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]);
|
|
24681
|
+
return root2 + pathComponents2.slice(1, length2).join(directorySeparator);
|
|
24681
24682
|
}
|
|
24682
24683
|
__name(getPathFromPathComponents, "getPathFromPathComponents");
|
|
24683
24684
|
function normalizeSlashes(path7) {
|
|
@@ -36051,8 +36052,8 @@ ${lanes.join("\n")}
|
|
|
36051
36052
|
}
|
|
36052
36053
|
__name(isPushOrUnshiftIdentifier, "isPushOrUnshiftIdentifier");
|
|
36053
36054
|
function isPartOfParameterDeclaration(node) {
|
|
36054
|
-
const
|
|
36055
|
-
return
|
|
36055
|
+
const root2 = getRootDeclaration(node);
|
|
36056
|
+
return root2.kind === 169;
|
|
36056
36057
|
}
|
|
36057
36058
|
__name(isPartOfParameterDeclaration, "isPartOfParameterDeclaration");
|
|
36058
36059
|
function getRootDeclaration(node) {
|
|
@@ -38884,7 +38885,7 @@ ${lanes.join("\n")}
|
|
|
38884
38885
|
return true;
|
|
38885
38886
|
}
|
|
38886
38887
|
__name(hasZeroOrOneAsteriskCharacter, "hasZeroOrOneAsteriskCharacter");
|
|
38887
|
-
function createSymlinkCache(
|
|
38888
|
+
function createSymlinkCache(cwd3, getCanonicalFileName) {
|
|
38888
38889
|
let symlinkedDirectories;
|
|
38889
38890
|
let symlinkedDirectoriesByRealpath;
|
|
38890
38891
|
let symlinkedFiles;
|
|
@@ -38895,7 +38896,7 @@ ${lanes.join("\n")}
|
|
|
38895
38896
|
getSymlinkedDirectoriesByRealpath: /* @__PURE__ */ __name(() => symlinkedDirectoriesByRealpath, "getSymlinkedDirectoriesByRealpath"),
|
|
38896
38897
|
setSymlinkedFile: /* @__PURE__ */ __name((path7, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path7, real), "setSymlinkedFile"),
|
|
38897
38898
|
setSymlinkedDirectory: /* @__PURE__ */ __name((symlink, real) => {
|
|
38898
|
-
let symlinkPath = toPath2(symlink,
|
|
38899
|
+
let symlinkPath = toPath2(symlink, cwd3, getCanonicalFileName);
|
|
38899
38900
|
if (!containsIgnoredPath(symlinkPath)) {
|
|
38900
38901
|
symlinkPath = ensureTrailingDirectorySeparator(symlinkPath);
|
|
38901
38902
|
if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
|
|
@@ -38924,14 +38925,14 @@ ${lanes.join("\n")}
|
|
|
38924
38925
|
function processResolution(cache, resolution) {
|
|
38925
38926
|
if (!resolution || !resolution.originalPath || !resolution.resolvedFileName) return;
|
|
38926
38927
|
const { resolvedFileName, originalPath } = resolution;
|
|
38927
|
-
cache.setSymlinkedFile(toPath2(originalPath,
|
|
38928
|
-
const [commonResolved, commonOriginal] = guessDirectorySymlink(resolvedFileName, originalPath,
|
|
38928
|
+
cache.setSymlinkedFile(toPath2(originalPath, cwd3, getCanonicalFileName), resolvedFileName);
|
|
38929
|
+
const [commonResolved, commonOriginal] = guessDirectorySymlink(resolvedFileName, originalPath, cwd3, getCanonicalFileName) || emptyArray;
|
|
38929
38930
|
if (commonResolved && commonOriginal) {
|
|
38930
38931
|
cache.setSymlinkedDirectory(
|
|
38931
38932
|
commonOriginal,
|
|
38932
38933
|
{
|
|
38933
38934
|
real: ensureTrailingDirectorySeparator(commonResolved),
|
|
38934
|
-
realPath: ensureTrailingDirectorySeparator(toPath2(commonResolved,
|
|
38935
|
+
realPath: ensureTrailingDirectorySeparator(toPath2(commonResolved, cwd3, getCanonicalFileName))
|
|
38935
38936
|
}
|
|
38936
38937
|
);
|
|
38937
38938
|
}
|
|
@@ -38939,9 +38940,9 @@ ${lanes.join("\n")}
|
|
|
38939
38940
|
__name(processResolution, "processResolution");
|
|
38940
38941
|
}
|
|
38941
38942
|
__name(createSymlinkCache, "createSymlinkCache");
|
|
38942
|
-
function guessDirectorySymlink(a, b,
|
|
38943
|
-
const aParts = getPathComponents(getNormalizedAbsolutePath(a,
|
|
38944
|
-
const bParts = getPathComponents(getNormalizedAbsolutePath(b,
|
|
38943
|
+
function guessDirectorySymlink(a, b, cwd3, getCanonicalFileName) {
|
|
38944
|
+
const aParts = getPathComponents(getNormalizedAbsolutePath(a, cwd3));
|
|
38945
|
+
const bParts = getPathComponents(getNormalizedAbsolutePath(b, cwd3));
|
|
38945
38946
|
let isDirectory = false;
|
|
38946
38947
|
while (aParts.length >= 2 && bParts.length >= 2 && !isNodeModulesOrScopedPackageDirectory(aParts[aParts.length - 2], getCanonicalFileName) && !isNodeModulesOrScopedPackageDirectory(bParts[bParts.length - 2], getCanonicalFileName) && getCanonicalFileName(aParts[aParts.length - 1]) === getCanonicalFileName(bParts[bParts.length - 1])) {
|
|
38947
38948
|
aParts.pop();
|
|
@@ -40544,9 +40545,9 @@ ${lanes.join("\n")}
|
|
|
40544
40545
|
case 338:
|
|
40545
40546
|
case 340:
|
|
40546
40547
|
case 351:
|
|
40547
|
-
const
|
|
40548
|
-
if (
|
|
40549
|
-
location =
|
|
40548
|
+
const root2 = getJSDocRoot(location);
|
|
40549
|
+
if (root2) {
|
|
40550
|
+
location = root2.parent;
|
|
40550
40551
|
}
|
|
40551
40552
|
break;
|
|
40552
40553
|
case 169:
|
|
@@ -62720,16 +62721,16 @@ ${lanes.join("\n")}
|
|
|
62720
62721
|
return void 0;
|
|
62721
62722
|
}
|
|
62722
62723
|
const result = parseJsonText(configFileName, configFileText);
|
|
62723
|
-
const
|
|
62724
|
-
result.path = toPath2(configFileName,
|
|
62724
|
+
const cwd3 = host.getCurrentDirectory();
|
|
62725
|
+
result.path = toPath2(configFileName, cwd3, createGetCanonicalFileName(host.useCaseSensitiveFileNames));
|
|
62725
62726
|
result.resolvedPath = result.path;
|
|
62726
62727
|
result.originalFileName = result.fileName;
|
|
62727
62728
|
return parseJsonSourceFileConfigFileContent(
|
|
62728
62729
|
result,
|
|
62729
62730
|
host,
|
|
62730
|
-
getNormalizedAbsolutePath(getDirectoryPath(configFileName),
|
|
62731
|
+
getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd3),
|
|
62731
62732
|
optionsToExtend,
|
|
62732
|
-
getNormalizedAbsolutePath(configFileName,
|
|
62733
|
+
getNormalizedAbsolutePath(configFileName, cwd3),
|
|
62733
62734
|
/*resolutionStack*/
|
|
62734
62735
|
void 0,
|
|
62735
62736
|
extraFileExtensions,
|
|
@@ -64977,11 +64978,11 @@ ${lanes.join("\n")}
|
|
|
64977
64978
|
if (host.directoryExists && host.getDirectories) {
|
|
64978
64979
|
const typeRoots = getEffectiveTypeRoots(options, host);
|
|
64979
64980
|
if (typeRoots) {
|
|
64980
|
-
for (const
|
|
64981
|
-
if (host.directoryExists(
|
|
64982
|
-
for (const typeDirectivePath of host.getDirectories(
|
|
64981
|
+
for (const root2 of typeRoots) {
|
|
64982
|
+
if (host.directoryExists(root2)) {
|
|
64983
|
+
for (const typeDirectivePath of host.getDirectories(root2)) {
|
|
64983
64984
|
const normalized = normalizePath(typeDirectivePath);
|
|
64984
|
-
const packageJsonPath = combinePaths(
|
|
64985
|
+
const packageJsonPath = combinePaths(root2, normalized, "package.json");
|
|
64985
64986
|
const isNotNeededPackage = host.fileExists(packageJsonPath) && readJson2(packageJsonPath, host).typings === null;
|
|
64986
64987
|
if (!isNotNeededPackage) {
|
|
64987
64988
|
const baseFileName = getBaseFileName(normalized);
|
|
@@ -66808,8 +66809,8 @@ ${lanes.join("\n")}
|
|
|
66808
66809
|
return getNormalizedAbsolutePath(path7, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
|
|
66809
66810
|
}
|
|
66810
66811
|
__name(toAbsolutePath, "toAbsolutePath");
|
|
66811
|
-
function combineDirectoryPath(
|
|
66812
|
-
return ensureTrailingDirectorySeparator(combinePaths(
|
|
66812
|
+
function combineDirectoryPath(root2, dir) {
|
|
66813
|
+
return ensureTrailingDirectorySeparator(combinePaths(root2, dir));
|
|
66813
66814
|
}
|
|
66814
66815
|
__name(combineDirectoryPath, "combineDirectoryPath");
|
|
66815
66816
|
function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
|
|
@@ -71416,21 +71417,21 @@ ${lanes.join("\n")}
|
|
|
71416
71417
|
function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb2) {
|
|
71417
71418
|
var _a;
|
|
71418
71419
|
const getCanonicalFileName = hostGetCanonicalFileName(host);
|
|
71419
|
-
const
|
|
71420
|
+
const cwd3 = host.getCurrentDirectory();
|
|
71420
71421
|
const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0;
|
|
71421
|
-
const importedPath = toPath2(importedFileName,
|
|
71422
|
+
const importedPath = toPath2(importedFileName, cwd3, getCanonicalFileName);
|
|
71422
71423
|
const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray;
|
|
71423
71424
|
const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects];
|
|
71424
|
-
const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f,
|
|
71425
|
+
const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f, cwd3));
|
|
71425
71426
|
let shouldFilterIgnoredPaths = !every(targets, containsIgnoredPath);
|
|
71426
71427
|
if (!preferSymlinks) {
|
|
71427
71428
|
const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb2(p, referenceRedirect === p));
|
|
71428
71429
|
if (result2) return result2;
|
|
71429
71430
|
}
|
|
71430
71431
|
const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
71431
|
-
const fullImportedFileName = getNormalizedAbsolutePath(importedFileName,
|
|
71432
|
+
const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd3);
|
|
71432
71433
|
const result = symlinkedDirectories && forEachAncestorDirectory(getDirectoryPath(fullImportedFileName), (realPathDirectory) => {
|
|
71433
|
-
const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath2(realPathDirectory,
|
|
71434
|
+
const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath2(realPathDirectory, cwd3, getCanonicalFileName)));
|
|
71434
71435
|
if (!symlinkDirectories) return void 0;
|
|
71435
71436
|
if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) {
|
|
71436
71437
|
return false;
|
|
@@ -74089,10 +74090,10 @@ ${lanes.join("\n")}
|
|
|
74089
74090
|
}
|
|
74090
74091
|
if (associatedDeclarationForContainingInitializerOrBindingName && !withinDeferredContext && (meaning & 111551) === 111551) {
|
|
74091
74092
|
const candidate = getMergedSymbol(getLateBoundSymbol(result));
|
|
74092
|
-
const
|
|
74093
|
+
const root2 = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName);
|
|
74093
74094
|
if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) {
|
|
74094
74095
|
error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name));
|
|
74095
|
-
} else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos &&
|
|
74096
|
+
} else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root2.parent.locals && getSymbol2(root2.parent.locals, candidate.escapedName, meaning) === candidate) {
|
|
74096
74097
|
error2(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation));
|
|
74097
74098
|
}
|
|
74098
74099
|
}
|
|
@@ -74915,9 +74916,9 @@ ${lanes.join("\n")}
|
|
|
74915
74916
|
return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias);
|
|
74916
74917
|
}
|
|
74917
74918
|
}
|
|
74918
|
-
const
|
|
74919
|
-
const commonJSPropertyAccess = getCommonJSPropertyAccess(
|
|
74920
|
-
const resolved = getExternalModuleMember(
|
|
74919
|
+
const root2 = isBindingElement(node) ? getRootDeclaration(node) : node.parent.parent.parent;
|
|
74920
|
+
const commonJSPropertyAccess = getCommonJSPropertyAccess(root2);
|
|
74921
|
+
const resolved = getExternalModuleMember(root2, commonJSPropertyAccess || node, dontResolveAlias);
|
|
74921
74922
|
const name = node.propertyName || node.name;
|
|
74922
74923
|
if (commonJSPropertyAccess && resolved && isIdentifier(name)) {
|
|
74923
74924
|
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
|
|
@@ -77813,10 +77814,10 @@ ${lanes.join("\n")}
|
|
|
77813
77814
|
}
|
|
77814
77815
|
}
|
|
77815
77816
|
__name(typeReferenceToTypeNode, "typeReferenceToTypeNode");
|
|
77816
|
-
function appendReferenceToType(
|
|
77817
|
-
if (isImportTypeNode(
|
|
77818
|
-
let typeArguments =
|
|
77819
|
-
let qualifier =
|
|
77817
|
+
function appendReferenceToType(root2, ref) {
|
|
77818
|
+
if (isImportTypeNode(root2)) {
|
|
77819
|
+
let typeArguments = root2.typeArguments;
|
|
77820
|
+
let qualifier = root2.qualifier;
|
|
77820
77821
|
if (qualifier) {
|
|
77821
77822
|
if (isIdentifier(qualifier)) {
|
|
77822
77823
|
if (typeArguments !== getIdentifierTypeArguments(qualifier)) {
|
|
@@ -77834,16 +77835,16 @@ ${lanes.join("\n")}
|
|
|
77834
77835
|
qualifier = qualifier ? factory.createQualifiedName(qualifier, id) : id;
|
|
77835
77836
|
}
|
|
77836
77837
|
return factory.updateImportTypeNode(
|
|
77837
|
-
|
|
77838
|
-
|
|
77839
|
-
|
|
77838
|
+
root2,
|
|
77839
|
+
root2.argument,
|
|
77840
|
+
root2.attributes,
|
|
77840
77841
|
qualifier,
|
|
77841
77842
|
typeArguments,
|
|
77842
|
-
|
|
77843
|
+
root2.isTypeOf
|
|
77843
77844
|
);
|
|
77844
77845
|
} else {
|
|
77845
|
-
let typeArguments =
|
|
77846
|
-
let typeName =
|
|
77846
|
+
let typeArguments = root2.typeArguments;
|
|
77847
|
+
let typeName = root2.typeName;
|
|
77847
77848
|
if (isIdentifier(typeName)) {
|
|
77848
77849
|
if (typeArguments !== getIdentifierTypeArguments(typeName)) {
|
|
77849
77850
|
typeName = setIdentifierTypeArguments(factory.cloneNode(typeName), typeArguments);
|
|
@@ -77859,7 +77860,7 @@ ${lanes.join("\n")}
|
|
|
77859
77860
|
typeName = factory.createQualifiedName(typeName, id);
|
|
77860
77861
|
}
|
|
77861
77862
|
return factory.updateTypeReferenceNode(
|
|
77862
|
-
|
|
77863
|
+
root2,
|
|
77863
77864
|
typeName,
|
|
77864
77865
|
typeArguments
|
|
77865
77866
|
);
|
|
@@ -80076,10 +80077,10 @@ ${lanes.join("\n")}
|
|
|
80076
80077
|
if (accessibleResult.accessibility === 0) {
|
|
80077
80078
|
const chain = lookupSymbolChainWorker(sym, context, meaning);
|
|
80078
80079
|
if (!(sym.flags & 4)) {
|
|
80079
|
-
const
|
|
80080
|
+
const root2 = chain[0];
|
|
80080
80081
|
const contextFile = getSourceFileOfNode(oldcontext.enclosingDeclaration);
|
|
80081
|
-
if (some(
|
|
80082
|
-
includePrivateSymbol(
|
|
80082
|
+
if (some(root2.declarations, (d) => getSourceFileOfNode(d) === contextFile)) {
|
|
80083
|
+
includePrivateSymbol(root2);
|
|
80083
80084
|
}
|
|
80084
80085
|
}
|
|
80085
80086
|
} else if ((_b = oldcontext.tracker.inner) == null ? void 0 : _b.trackSymbol) {
|
|
@@ -83027,8 +83028,8 @@ ${lanes.join("\n")}
|
|
|
83027
83028
|
}
|
|
83028
83029
|
__name(widenTypeForVariableLikeDeclaration, "widenTypeForVariableLikeDeclaration");
|
|
83029
83030
|
function declarationBelongsToPrivateAmbientMember(declaration) {
|
|
83030
|
-
const
|
|
83031
|
-
const memberDeclaration =
|
|
83031
|
+
const root2 = getRootDeclaration(declaration);
|
|
83032
|
+
const memberDeclaration = root2.kind === 169 ? root2.parent : root2;
|
|
83032
83033
|
return isPrivateWithinAmbient(memberDeclaration);
|
|
83033
83034
|
}
|
|
83034
83035
|
__name(declarationBelongsToPrivateAmbientMember, "declarationBelongsToPrivateAmbientMember");
|
|
@@ -86648,9 +86649,9 @@ ${lanes.join("\n")}
|
|
|
86648
86649
|
}
|
|
86649
86650
|
const typeNode = getEffectiveReturnTypeNode(declaration);
|
|
86650
86651
|
if (isJSDocSignature(declaration)) {
|
|
86651
|
-
const
|
|
86652
|
-
if (
|
|
86653
|
-
return getDeclaredTypeOfClassOrInterface(getMergedSymbol(
|
|
86652
|
+
const root2 = getJSDocRoot(declaration);
|
|
86653
|
+
if (root2 && isConstructorDeclaration(root2.parent) && !typeNode) {
|
|
86654
|
+
return getDeclaredTypeOfClassOrInterface(getMergedSymbol(root2.parent.parent.symbol));
|
|
86654
86655
|
}
|
|
86655
86656
|
}
|
|
86656
86657
|
if (isJSDocConstructSignature(declaration)) {
|
|
@@ -89728,7 +89729,7 @@ ${lanes.join("\n")}
|
|
|
89728
89729
|
return isGenericType(type) || checkTuples && isTupleType(type) && some(getElementTypes(type), isGenericType);
|
|
89729
89730
|
}
|
|
89730
89731
|
__name(isDeferredType, "isDeferredType");
|
|
89731
|
-
function getConditionalType(
|
|
89732
|
+
function getConditionalType(root2, mapper, forConstraint, aliasSymbol, aliasTypeArguments) {
|
|
89732
89733
|
let result;
|
|
89733
89734
|
let extraTypes;
|
|
89734
89735
|
let tailCount = 0;
|
|
@@ -89737,22 +89738,22 @@ ${lanes.join("\n")}
|
|
|
89737
89738
|
error2(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);
|
|
89738
89739
|
return errorType;
|
|
89739
89740
|
}
|
|
89740
|
-
const checkType = instantiateType(getActualTypeVariable(
|
|
89741
|
-
const extendsType = instantiateType(
|
|
89741
|
+
const checkType = instantiateType(getActualTypeVariable(root2.checkType), mapper);
|
|
89742
|
+
const extendsType = instantiateType(root2.extendsType, mapper);
|
|
89742
89743
|
if (checkType === errorType || extendsType === errorType) {
|
|
89743
89744
|
return errorType;
|
|
89744
89745
|
}
|
|
89745
89746
|
if (checkType === wildcardType || extendsType === wildcardType) {
|
|
89746
89747
|
return wildcardType;
|
|
89747
89748
|
}
|
|
89748
|
-
const checkTypeNode = skipTypeParentheses(
|
|
89749
|
-
const extendsTypeNode = skipTypeParentheses(
|
|
89749
|
+
const checkTypeNode = skipTypeParentheses(root2.node.checkType);
|
|
89750
|
+
const extendsTypeNode = skipTypeParentheses(root2.node.extendsType);
|
|
89750
89751
|
const checkTuples = isSimpleTupleType(checkTypeNode) && isSimpleTupleType(extendsTypeNode) && length(checkTypeNode.elements) === length(extendsTypeNode.elements);
|
|
89751
89752
|
const checkTypeDeferred = isDeferredType(checkType, checkTuples);
|
|
89752
89753
|
let combinedMapper;
|
|
89753
|
-
if (
|
|
89754
|
+
if (root2.inferTypeParameters) {
|
|
89754
89755
|
const context = createInferenceContext(
|
|
89755
|
-
|
|
89756
|
+
root2.inferTypeParameters,
|
|
89756
89757
|
/*signature*/
|
|
89757
89758
|
void 0,
|
|
89758
89759
|
0
|
|
@@ -89772,17 +89773,17 @@ ${lanes.join("\n")}
|
|
|
89772
89773
|
}
|
|
89773
89774
|
combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;
|
|
89774
89775
|
}
|
|
89775
|
-
const inferredExtendsType = combinedMapper ? instantiateType(
|
|
89776
|
+
const inferredExtendsType = combinedMapper ? instantiateType(root2.extendsType, combinedMapper) : extendsType;
|
|
89776
89777
|
if (!checkTypeDeferred && !isDeferredType(inferredExtendsType, checkTuples)) {
|
|
89777
89778
|
if (!(inferredExtendsType.flags & 3) && (checkType.flags & 1 || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) {
|
|
89778
89779
|
if (checkType.flags & 1 || forConstraint && !(inferredExtendsType.flags & 131072) && someType(getPermissiveInstantiation(inferredExtendsType), (t) => isTypeAssignableTo(t, getPermissiveInstantiation(checkType)))) {
|
|
89779
|
-
(extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(
|
|
89780
|
+
(extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root2.node.trueType), combinedMapper || mapper));
|
|
89780
89781
|
}
|
|
89781
|
-
const falseType2 = getTypeFromTypeNode(
|
|
89782
|
+
const falseType2 = getTypeFromTypeNode(root2.node.falseType);
|
|
89782
89783
|
if (falseType2.flags & 16777216) {
|
|
89783
89784
|
const newRoot = falseType2.root;
|
|
89784
|
-
if (newRoot.node.parent ===
|
|
89785
|
-
|
|
89785
|
+
if (newRoot.node.parent === root2.node && (!newRoot.isDistributive || newRoot.checkType === root2.checkType)) {
|
|
89786
|
+
root2 = newRoot;
|
|
89786
89787
|
continue;
|
|
89787
89788
|
}
|
|
89788
89789
|
if (canTailRecurse(falseType2, mapper)) {
|
|
@@ -89793,7 +89794,7 @@ ${lanes.join("\n")}
|
|
|
89793
89794
|
break;
|
|
89794
89795
|
}
|
|
89795
89796
|
if (inferredExtendsType.flags & 3 || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) {
|
|
89796
|
-
const trueType2 = getTypeFromTypeNode(
|
|
89797
|
+
const trueType2 = getTypeFromTypeNode(root2.node.trueType);
|
|
89797
89798
|
const trueMapper = combinedMapper || mapper;
|
|
89798
89799
|
if (canTailRecurse(trueType2, trueMapper)) {
|
|
89799
89800
|
continue;
|
|
@@ -89806,13 +89807,13 @@ ${lanes.join("\n")}
|
|
|
89806
89807
|
16777216
|
|
89807
89808
|
/* Conditional */
|
|
89808
89809
|
);
|
|
89809
|
-
result.root =
|
|
89810
|
-
result.checkType = instantiateType(
|
|
89811
|
-
result.extendsType = instantiateType(
|
|
89810
|
+
result.root = root2;
|
|
89811
|
+
result.checkType = instantiateType(root2.checkType, mapper);
|
|
89812
|
+
result.extendsType = instantiateType(root2.extendsType, mapper);
|
|
89812
89813
|
result.mapper = mapper;
|
|
89813
89814
|
result.combinedMapper = combinedMapper;
|
|
89814
|
-
result.aliasSymbol = aliasSymbol ||
|
|
89815
|
-
result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(
|
|
89815
|
+
result.aliasSymbol = aliasSymbol || root2.aliasSymbol;
|
|
89816
|
+
result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root2.aliasTypeArguments, mapper);
|
|
89816
89817
|
break;
|
|
89817
89818
|
}
|
|
89818
89819
|
return extraTypes ? getUnionType(append(extraTypes, result)) : result;
|
|
@@ -89825,7 +89826,7 @@ ${lanes.join("\n")}
|
|
|
89825
89826
|
const newRootMapper = createTypeMapper(newRoot.outerTypeParameters, typeArguments);
|
|
89826
89827
|
const newCheckType = newRoot.isDistributive ? getMappedType(newRoot.checkType, newRootMapper) : void 0;
|
|
89827
89828
|
if (!newCheckType || newCheckType === newRoot.checkType || !(newCheckType.flags & (1048576 | 131072))) {
|
|
89828
|
-
|
|
89829
|
+
root2 = newRoot;
|
|
89829
89830
|
mapper = newRootMapper;
|
|
89830
89831
|
aliasSymbol = void 0;
|
|
89831
89832
|
aliasTypeArguments = void 0;
|
|
@@ -89865,8 +89866,8 @@ ${lanes.join("\n")}
|
|
|
89865
89866
|
return result;
|
|
89866
89867
|
}
|
|
89867
89868
|
__name(getInferTypeParameters, "getInferTypeParameters");
|
|
89868
|
-
function isDistributionDependent(
|
|
89869
|
-
return
|
|
89869
|
+
function isDistributionDependent(root2) {
|
|
89870
|
+
return root2.isDistributive && (isTypeParameterPossiblyReferenced(root2.checkType, root2.node.trueType) || isTypeParameterPossiblyReferenced(root2.checkType, root2.node.falseType));
|
|
89870
89871
|
}
|
|
89871
89872
|
__name(isDistributionDependent, "isDistributionDependent");
|
|
89872
89873
|
function getTypeFromConditionalTypeNode(node) {
|
|
@@ -89881,7 +89882,7 @@ ${lanes.join("\n")}
|
|
|
89881
89882
|
true
|
|
89882
89883
|
);
|
|
89883
89884
|
const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter2(allOuterTypeParameters, (tp) => isTypeParameterPossiblyReferenced(tp, node));
|
|
89884
|
-
const
|
|
89885
|
+
const root2 = {
|
|
89885
89886
|
node,
|
|
89886
89887
|
checkType,
|
|
89887
89888
|
extendsType: getTypeFromTypeNode(node.extendsType),
|
|
@@ -89893,15 +89894,15 @@ ${lanes.join("\n")}
|
|
|
89893
89894
|
aliasTypeArguments
|
|
89894
89895
|
};
|
|
89895
89896
|
links.resolvedType = getConditionalType(
|
|
89896
|
-
|
|
89897
|
+
root2,
|
|
89897
89898
|
/*mapper*/
|
|
89898
89899
|
void 0,
|
|
89899
89900
|
/*forConstraint*/
|
|
89900
89901
|
false
|
|
89901
89902
|
);
|
|
89902
89903
|
if (outerTypeParameters) {
|
|
89903
|
-
|
|
89904
|
-
|
|
89904
|
+
root2.instantiations = /* @__PURE__ */ new Map();
|
|
89905
|
+
root2.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
|
|
89905
89906
|
}
|
|
89906
89907
|
}
|
|
89907
89908
|
return links.resolvedType;
|
|
@@ -90844,17 +90845,17 @@ ${lanes.join("\n")}
|
|
|
90844
90845
|
}
|
|
90845
90846
|
__name(instantiateAnonymousType, "instantiateAnonymousType");
|
|
90846
90847
|
function getConditionalTypeInstantiation(type, mapper, forConstraint, aliasSymbol, aliasTypeArguments) {
|
|
90847
|
-
const
|
|
90848
|
-
if (
|
|
90849
|
-
const typeArguments = map3(
|
|
90848
|
+
const root2 = type.root;
|
|
90849
|
+
if (root2.outerTypeParameters) {
|
|
90850
|
+
const typeArguments = map3(root2.outerTypeParameters, (t) => getMappedType(t, mapper));
|
|
90850
90851
|
const id = (forConstraint ? "C" : "") + getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);
|
|
90851
|
-
let result =
|
|
90852
|
+
let result = root2.instantiations.get(id);
|
|
90852
90853
|
if (!result) {
|
|
90853
|
-
const newMapper = createTypeMapper(
|
|
90854
|
-
const checkType =
|
|
90855
|
-
const distributionType =
|
|
90856
|
-
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 | 131072) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(
|
|
90857
|
-
|
|
90854
|
+
const newMapper = createTypeMapper(root2.outerTypeParameters, typeArguments);
|
|
90855
|
+
const checkType = root2.checkType;
|
|
90856
|
+
const distributionType = root2.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
90857
|
+
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 | 131072) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root2, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root2, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
|
|
90858
|
+
root2.instantiations.set(id, result);
|
|
90858
90859
|
}
|
|
90859
90860
|
return result;
|
|
90860
90861
|
}
|
|
@@ -97962,10 +97963,10 @@ ${lanes.join("\n")}
|
|
|
97962
97963
|
}
|
|
97963
97964
|
__name(isEvolvingArrayTypeList, "isEvolvingArrayTypeList");
|
|
97964
97965
|
function isEvolvingArrayOperationTarget(node) {
|
|
97965
|
-
const
|
|
97966
|
-
const parent2 =
|
|
97966
|
+
const root2 = getReferenceRoot(node);
|
|
97967
|
+
const parent2 = root2.parent;
|
|
97967
97968
|
const isLengthPushOrUnshift = isPropertyAccessExpression(parent2) && (parent2.name.escapedText === "length" || parent2.parent.kind === 213 && isIdentifier(parent2.name) && isPushOrUnshiftIdentifier(parent2.name));
|
|
97968
|
-
const isElementAssignment = parent2.kind === 212 && parent2.expression ===
|
|
97969
|
+
const isElementAssignment = parent2.kind === 212 && parent2.expression === root2 && parent2.parent.kind === 226 && parent2.parent.operatorToken.kind === 64 && parent2.parent.left === parent2 && !isAssignmentTarget(parent2.parent) && isTypeAssignableToKind(
|
|
97969
97970
|
getTypeOfExpression(parent2.argumentExpression),
|
|
97970
97971
|
296
|
|
97971
97972
|
/* NumberLike */
|
|
@@ -112433,8 +112434,8 @@ ${lanes.join("\n")}
|
|
|
112433
112434
|
return false;
|
|
112434
112435
|
}
|
|
112435
112436
|
}
|
|
112436
|
-
const
|
|
112437
|
-
if (isParameter(
|
|
112437
|
+
const root2 = getRootDeclaration(node);
|
|
112438
|
+
if (isParameter(root2) && nodeIsMissing(root2.parent.body)) {
|
|
112438
112439
|
return false;
|
|
112439
112440
|
}
|
|
112440
112441
|
return true;
|
|
@@ -114114,8 +114115,8 @@ ${lanes.join("\n")}
|
|
|
114114
114115
|
__name(createCheckTypeParameterDiagnostic, "createCheckTypeParameterDiagnostic");
|
|
114115
114116
|
}
|
|
114116
114117
|
__name(checkTypeParameters, "checkTypeParameters");
|
|
114117
|
-
function checkTypeParametersNotReferenced(
|
|
114118
|
-
visit(
|
|
114118
|
+
function checkTypeParametersNotReferenced(root2, typeParameters, index) {
|
|
114119
|
+
visit(root2);
|
|
114119
114120
|
function visit(node) {
|
|
114120
114121
|
if (node.kind === 183) {
|
|
114121
114122
|
const type = getTypeFromTypeReference(node);
|
|
@@ -115044,10 +115045,10 @@ ${lanes.join("\n")}
|
|
|
115044
115045
|
}
|
|
115045
115046
|
__name(evaluateEntityNameExpression, "evaluateEntityNameExpression");
|
|
115046
115047
|
function evaluateElementAccessExpression(expr, location) {
|
|
115047
|
-
const
|
|
115048
|
-
if (isEntityNameExpression(
|
|
115048
|
+
const root2 = expr.expression;
|
|
115049
|
+
if (isEntityNameExpression(root2) && isStringLiteralLike(expr.argumentExpression)) {
|
|
115049
115050
|
const rootSymbol = resolveEntityName(
|
|
115050
|
-
|
|
115051
|
+
root2,
|
|
115051
115052
|
111551,
|
|
115052
115053
|
/*ignoreErrors*/
|
|
115053
115054
|
true
|
|
@@ -117518,11 +117519,11 @@ ${lanes.join("\n")}
|
|
|
117518
117519
|
default:
|
|
117519
117520
|
return Debug.assertNever(flag, `Unhandled node check flag calculation: ${Debug.formatNodeCheckFlags(flag)}`);
|
|
117520
117521
|
}
|
|
117521
|
-
function forEachNodeRecursively(
|
|
117522
|
-
const rootResult = cb2(
|
|
117522
|
+
function forEachNodeRecursively(root2, cb2) {
|
|
117523
|
+
const rootResult = cb2(root2, root2.parent);
|
|
117523
117524
|
if (rootResult === "skip") return void 0;
|
|
117524
117525
|
if (rootResult) return rootResult;
|
|
117525
|
-
return forEachChildRecursively(
|
|
117526
|
+
return forEachChildRecursively(root2, cb2);
|
|
117526
117527
|
}
|
|
117527
117528
|
__name(forEachNodeRecursively, "forEachNodeRecursively");
|
|
117528
117529
|
function checkSuperExpressions(node2) {
|
|
@@ -159464,9 +159465,9 @@ ${lanes.join("\n")}
|
|
|
159464
159465
|
function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host) {
|
|
159465
159466
|
return {
|
|
159466
159467
|
fileExists: /* @__PURE__ */ __name((f) => directoryStructureHost.fileExists(f), "fileExists"),
|
|
159467
|
-
readDirectory(
|
|
159468
|
+
readDirectory(root2, extensions, excludes, includes, depth) {
|
|
159468
159469
|
Debug.assertIsDefined(directoryStructureHost.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'");
|
|
159469
|
-
return directoryStructureHost.readDirectory(
|
|
159470
|
+
return directoryStructureHost.readDirectory(root2, extensions, excludes, includes, depth);
|
|
159470
159471
|
},
|
|
159471
159472
|
readFile: /* @__PURE__ */ __name((f) => directoryStructureHost.readFile(f), "readFile"),
|
|
159472
159473
|
directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
|
|
@@ -160520,7 +160521,7 @@ ${lanes.join("\n")}
|
|
|
160520
160521
|
const fileNames = [];
|
|
160521
160522
|
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
160522
160523
|
const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath2(f, currentDirectory, state.program.getCanonicalFileName)));
|
|
160523
|
-
const
|
|
160524
|
+
const root2 = [];
|
|
160524
160525
|
if (state.compilerOptions.outFile) {
|
|
160525
160526
|
const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
|
|
160526
160527
|
const fileId = toFileId(key);
|
|
@@ -160530,7 +160531,7 @@ ${lanes.join("\n")}
|
|
|
160530
160531
|
const program22 = {
|
|
160531
160532
|
fileNames,
|
|
160532
160533
|
fileInfos: fileInfos2,
|
|
160533
|
-
root,
|
|
160534
|
+
root: root2,
|
|
160534
160535
|
resolvedRoot: toResolvedRoot(),
|
|
160535
160536
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),
|
|
160536
160537
|
outSignature: state.outSignature,
|
|
@@ -160633,7 +160634,7 @@ ${lanes.join("\n")}
|
|
|
160633
160634
|
const program2 = {
|
|
160634
160635
|
fileNames,
|
|
160635
160636
|
fileInfos,
|
|
160636
|
-
root,
|
|
160637
|
+
root: root2,
|
|
160637
160638
|
resolvedRoot: toResolvedRoot(),
|
|
160638
160639
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),
|
|
160639
160640
|
fileIdsList,
|
|
@@ -160680,15 +160681,15 @@ ${lanes.join("\n")}
|
|
|
160680
160681
|
(r) => r.kind === 0
|
|
160681
160682
|
/* RootFile */
|
|
160682
160683
|
)) return;
|
|
160683
|
-
if (!
|
|
160684
|
-
const last2 =
|
|
160684
|
+
if (!root2.length) return root2.push(fileId);
|
|
160685
|
+
const last2 = root2[root2.length - 1];
|
|
160685
160686
|
const isLastStartEnd = isArray(last2);
|
|
160686
160687
|
if (isLastStartEnd && last2[1] === fileId - 1) return last2[1] = fileId;
|
|
160687
|
-
if (isLastStartEnd ||
|
|
160688
|
-
const lastButOne =
|
|
160689
|
-
if (!isNumber(lastButOne) || lastButOne !== last2 - 1) return
|
|
160690
|
-
|
|
160691
|
-
return
|
|
160688
|
+
if (isLastStartEnd || root2.length === 1 || last2 !== fileId - 1) return root2.push(fileId);
|
|
160689
|
+
const lastButOne = root2[root2.length - 2];
|
|
160690
|
+
if (!isNumber(lastButOne) || lastButOne !== last2 - 1) return root2.push(fileId);
|
|
160691
|
+
root2[root2.length - 2] = [lastButOne, fileId];
|
|
160692
|
+
return root2.length = root2.length - 1;
|
|
160692
160693
|
}
|
|
160693
160694
|
__name(tryAddRoot, "tryAddRoot");
|
|
160694
160695
|
function toResolvedRoot() {
|
|
@@ -161320,9 +161321,9 @@ ${lanes.join("\n")}
|
|
|
161320
161321
|
});
|
|
161321
161322
|
return { fileInfos, roots };
|
|
161322
161323
|
function addRoot(fileId, path7) {
|
|
161323
|
-
const
|
|
161324
|
-
if (
|
|
161325
|
-
roots.set(toPath2(program2.fileNames[
|
|
161324
|
+
const root2 = resolvedRoots.get(fileId);
|
|
161325
|
+
if (root2) {
|
|
161326
|
+
roots.set(toPath2(program2.fileNames[root2 - 1], buildInfoDirectory, getCanonicalFileName), path7);
|
|
161326
161327
|
} else {
|
|
161327
161328
|
roots.set(path7, void 0);
|
|
161328
161329
|
}
|
|
@@ -162697,15 +162698,15 @@ ${lanes.join("\n")}
|
|
|
162697
162698
|
return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes;
|
|
162698
162699
|
}
|
|
162699
162700
|
__name(getWatchErrorSummaryDiagnosticMessage, "getWatchErrorSummaryDiagnosticMessage");
|
|
162700
|
-
function prettyPathForFileError(error2,
|
|
162701
|
+
function prettyPathForFileError(error2, cwd3) {
|
|
162701
162702
|
const line = formatColorAndReset(
|
|
162702
162703
|
":" + error2.line,
|
|
162703
162704
|
"\x1B[90m"
|
|
162704
162705
|
/* Grey */
|
|
162705
162706
|
);
|
|
162706
|
-
if (pathIsAbsolute(error2.fileName) && pathIsAbsolute(
|
|
162707
|
+
if (pathIsAbsolute(error2.fileName) && pathIsAbsolute(cwd3)) {
|
|
162707
162708
|
return getRelativePathFromDirectory(
|
|
162708
|
-
|
|
162709
|
+
cwd3,
|
|
162709
162710
|
error2.fileName,
|
|
162710
162711
|
/*ignoreCase*/
|
|
162711
162712
|
false
|
|
@@ -164371,8 +164372,8 @@ ${lanes.join("\n")}
|
|
|
164371
164372
|
const circularityReportStack = [];
|
|
164372
164373
|
let buildOrder;
|
|
164373
164374
|
let circularDiagnostics;
|
|
164374
|
-
for (const
|
|
164375
|
-
visit(
|
|
164375
|
+
for (const root2 of roots) {
|
|
164376
|
+
visit(root2);
|
|
164376
164377
|
}
|
|
164377
164378
|
return circularDiagnostics ? { buildOrder: buildOrder || emptyArray, circularDiagnostics } : buildOrder || emptyArray;
|
|
164378
164379
|
function visit(configFileName, inCircularContext) {
|
|
@@ -168595,29 +168596,29 @@ ${lanes.join("\n")}
|
|
|
168595
168596
|
}
|
|
168596
168597
|
__name(isNamespaceReference, "isNamespaceReference");
|
|
168597
168598
|
function isQualifiedNameNamespaceReference(node) {
|
|
168598
|
-
let
|
|
168599
|
+
let root2 = node;
|
|
168599
168600
|
let isLastClause = true;
|
|
168600
|
-
if (
|
|
168601
|
-
while (
|
|
168602
|
-
|
|
168601
|
+
if (root2.parent.kind === 166) {
|
|
168602
|
+
while (root2.parent && root2.parent.kind === 166) {
|
|
168603
|
+
root2 = root2.parent;
|
|
168603
168604
|
}
|
|
168604
|
-
isLastClause =
|
|
168605
|
+
isLastClause = root2.right === node;
|
|
168605
168606
|
}
|
|
168606
|
-
return
|
|
168607
|
+
return root2.parent.kind === 183 && !isLastClause;
|
|
168607
168608
|
}
|
|
168608
168609
|
__name(isQualifiedNameNamespaceReference, "isQualifiedNameNamespaceReference");
|
|
168609
168610
|
function isPropertyAccessNamespaceReference(node) {
|
|
168610
|
-
let
|
|
168611
|
+
let root2 = node;
|
|
168611
168612
|
let isLastClause = true;
|
|
168612
|
-
if (
|
|
168613
|
-
while (
|
|
168614
|
-
|
|
168613
|
+
if (root2.parent.kind === 211) {
|
|
168614
|
+
while (root2.parent && root2.parent.kind === 211) {
|
|
168615
|
+
root2 = root2.parent;
|
|
168615
168616
|
}
|
|
168616
|
-
isLastClause =
|
|
168617
|
+
isLastClause = root2.name === node;
|
|
168617
168618
|
}
|
|
168618
|
-
if (!isLastClause &&
|
|
168619
|
-
const decl =
|
|
168620
|
-
return decl.kind === 263 &&
|
|
168619
|
+
if (!isLastClause && root2.parent.kind === 233 && root2.parent.parent.kind === 298) {
|
|
168620
|
+
const decl = root2.parent.parent.parent;
|
|
168621
|
+
return decl.kind === 263 && root2.parent.parent.token === 119 || decl.kind === 264 && root2.parent.parent.token === 96;
|
|
168621
168622
|
}
|
|
168622
168623
|
return false;
|
|
168623
168624
|
}
|
|
@@ -175581,14 +175582,14 @@ interface Symbol {
|
|
|
175581
175582
|
__name(pushChild, "pushChild");
|
|
175582
175583
|
function rootNavigationBarNode(sourceFile) {
|
|
175583
175584
|
Debug.assert(!parentsStack.length);
|
|
175584
|
-
const
|
|
175585
|
-
parent =
|
|
175585
|
+
const root2 = { node: sourceFile, name: void 0, additionalNodes: void 0, parent: void 0, children: void 0, indent: 0 };
|
|
175586
|
+
parent = root2;
|
|
175586
175587
|
for (const statement of sourceFile.statements) {
|
|
175587
175588
|
addChildrenRecursively(statement);
|
|
175588
175589
|
}
|
|
175589
175590
|
endNode();
|
|
175590
175591
|
Debug.assert(!parent && !parentsStack.length);
|
|
175591
|
-
return
|
|
175592
|
+
return root2;
|
|
175592
175593
|
}
|
|
175593
175594
|
__name(rootNavigationBarNode, "rootNavigationBarNode");
|
|
175594
175595
|
function addLeafNode(node, name) {
|
|
@@ -176162,7 +176163,7 @@ interface Symbol {
|
|
|
176162
176163
|
}
|
|
176163
176164
|
}
|
|
176164
176165
|
__name(getItemName, "getItemName");
|
|
176165
|
-
function primaryNavBarMenuItems(
|
|
176166
|
+
function primaryNavBarMenuItems(root2) {
|
|
176166
176167
|
const primaryNavBarMenuItems2 = [];
|
|
176167
176168
|
function recur(item) {
|
|
176168
176169
|
if (shouldAppearInPrimaryNavBarMenu(item)) {
|
|
@@ -176175,7 +176176,7 @@ interface Symbol {
|
|
|
176175
176176
|
}
|
|
176176
176177
|
}
|
|
176177
176178
|
__name(recur, "recur");
|
|
176178
|
-
recur(
|
|
176179
|
+
recur(root2);
|
|
176179
176180
|
return primaryNavBarMenuItems2;
|
|
176180
176181
|
function shouldAppearInPrimaryNavBarMenu(item) {
|
|
176181
176182
|
if (item.children) {
|
|
@@ -202990,12 +202991,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
202990
202991
|
function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) {
|
|
202991
202992
|
const seen = /* @__PURE__ */ new Map();
|
|
202992
202993
|
const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray;
|
|
202993
|
-
for (const
|
|
202994
|
-
getCompletionEntriesFromDirectories(
|
|
202994
|
+
for (const root2 of typeRoots) {
|
|
202995
|
+
getCompletionEntriesFromDirectories(root2);
|
|
202995
202996
|
}
|
|
202996
202997
|
if (getPnpApi(scriptPath)) {
|
|
202997
|
-
for (const
|
|
202998
|
-
getCompletionEntriesFromDirectories(
|
|
202998
|
+
for (const root2 of getPnpTypeRoots(scriptPath)) {
|
|
202999
|
+
getCompletionEntriesFromDirectories(root2);
|
|
202999
203000
|
}
|
|
203000
203001
|
} else {
|
|
203001
203002
|
for (const packageJson2 of findPackageJsons(scriptPath, host)) {
|
|
@@ -205554,13 +205555,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
205554
205555
|
checker,
|
|
205555
205556
|
isForRename,
|
|
205556
205557
|
!(isForRename && providePrefixAndSuffixText),
|
|
205557
|
-
(sym,
|
|
205558
|
+
(sym, root2, base) => {
|
|
205558
205559
|
if (base) {
|
|
205559
205560
|
if (isStaticSymbol(symbol) !== isStaticSymbol(base)) {
|
|
205560
205561
|
base = void 0;
|
|
205561
205562
|
}
|
|
205562
205563
|
}
|
|
205563
|
-
result.push(base ||
|
|
205564
|
+
result.push(base || root2 || sym);
|
|
205564
205565
|
},
|
|
205565
205566
|
// when try to find implementation, implementations is true, and not allowed to find base class
|
|
205566
205567
|
/*allowBaseTypes*/
|
|
@@ -219146,13 +219147,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
219146
219147
|
/** @internal */
|
|
219147
219148
|
installPackage(req) {
|
|
219148
219149
|
const { fileName, packageName, projectName, projectRootPath, id } = req;
|
|
219149
|
-
const
|
|
219150
|
+
const cwd3 = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
|
|
219150
219151
|
if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
|
|
219151
219152
|
return directory;
|
|
219152
219153
|
}
|
|
219153
219154
|
}) || projectRootPath;
|
|
219154
|
-
if (
|
|
219155
|
-
this.installWorker(-1, [packageName],
|
|
219155
|
+
if (cwd3) {
|
|
219156
|
+
this.installWorker(-1, [packageName], cwd3, (success) => {
|
|
219156
219157
|
const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
|
|
219157
219158
|
const response = {
|
|
219158
219159
|
kind: ActionPackageInstalled,
|
|
@@ -219385,8 +219386,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
219385
219386
|
kind: ActionSet
|
|
219386
219387
|
};
|
|
219387
219388
|
}
|
|
219388
|
-
installTypingsAsync(requestId, packageNames,
|
|
219389
|
-
this.pendingRunRequests.unshift({ requestId, packageNames, cwd:
|
|
219389
|
+
installTypingsAsync(requestId, packageNames, cwd3, onRequestCompleted) {
|
|
219390
|
+
this.pendingRunRequests.unshift({ requestId, packageNames, cwd: cwd3, onRequestCompleted });
|
|
219390
219391
|
this.executeWithThrottling();
|
|
219391
219392
|
}
|
|
219392
219393
|
executeWithThrottling() {
|
|
@@ -221059,9 +221060,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
221059
221060
|
this.closeWatchingTypingLocations();
|
|
221060
221061
|
this.cleanupProgram();
|
|
221061
221062
|
forEach(this.externalFiles, (externalFile) => this.detachScriptInfoIfNotRoot(externalFile));
|
|
221062
|
-
this.rootFilesMap.forEach((
|
|
221063
|
+
this.rootFilesMap.forEach((root2) => {
|
|
221063
221064
|
var _a2;
|
|
221064
|
-
return (_a2 =
|
|
221065
|
+
return (_a2 = root2.info) == null ? void 0 : _a2.detachFromProject(this);
|
|
221065
221066
|
});
|
|
221066
221067
|
this.projectService.pendingEnsureProjectForOpenFiles = true;
|
|
221067
221068
|
this.rootFilesMap = void 0;
|
|
@@ -226119,9 +226120,9 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
226119
226120
|
const normalizedNames = rootFiles.map((f) => normalizeSlashes(f.fileName));
|
|
226120
226121
|
for (const name of Object.keys(this.safelist)) {
|
|
226121
226122
|
const rule2 = this.safelist[name];
|
|
226122
|
-
for (const
|
|
226123
|
-
if (rule2.match.test(
|
|
226124
|
-
this.logger.info(`Excluding files based on rule ${name} matching file '${
|
|
226123
|
+
for (const root2 of normalizedNames) {
|
|
226124
|
+
if (rule2.match.test(root2)) {
|
|
226125
|
+
this.logger.info(`Excluding files based on rule ${name} matching file '${root2}'`);
|
|
226125
226126
|
if (rule2.types) {
|
|
226126
226127
|
for (const type of rule2.types) {
|
|
226127
226128
|
if (!typeAcqInclude.includes(type)) {
|
|
@@ -226131,7 +226132,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
226131
226132
|
}
|
|
226132
226133
|
if (rule2.exclude) {
|
|
226133
226134
|
for (const exclude of rule2.exclude) {
|
|
226134
|
-
const processedRule =
|
|
226135
|
+
const processedRule = root2.replace(rule2.match, (...groups) => {
|
|
226135
226136
|
return exclude.map((groupNumberOrString) => {
|
|
226136
226137
|
if (typeof groupNumberOrString === "number") {
|
|
226137
226138
|
if (!isString(groups[groupNumberOrString])) {
|
|
@@ -226148,7 +226149,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
226148
226149
|
}
|
|
226149
226150
|
}
|
|
226150
226151
|
} else {
|
|
226151
|
-
const escaped = _ProjectService2.escapeFilenameForRegex(
|
|
226152
|
+
const escaped = _ProjectService2.escapeFilenameForRegex(root2);
|
|
226152
226153
|
if (!excludeRules.includes(escaped)) {
|
|
226153
226154
|
excludeRules.push(escaped);
|
|
226154
226155
|
}
|
|
@@ -233872,7 +233873,7 @@ var {
|
|
|
233872
233873
|
} = import_index.default;
|
|
233873
233874
|
|
|
233874
233875
|
// src/core/version.ts
|
|
233875
|
-
var version_default = `1.0.
|
|
233876
|
+
var version_default = `1.0.1`;
|
|
233876
233877
|
|
|
233877
233878
|
// src/core/description.ts
|
|
233878
233879
|
var description_default = `Development utilities for the monorepo.`;
|
|
@@ -239653,9 +239654,9 @@ var ValueMutateError = class extends TypeBoxError {
|
|
|
239653
239654
|
super(message);
|
|
239654
239655
|
}
|
|
239655
239656
|
};
|
|
239656
|
-
function ObjectType5(
|
|
239657
|
+
function ObjectType5(root2, path7, current, next) {
|
|
239657
239658
|
if (!IsStandardObject2(current)) {
|
|
239658
|
-
pointer_exports.Set(
|
|
239659
|
+
pointer_exports.Set(root2, path7, Clone2(next));
|
|
239659
239660
|
} else {
|
|
239660
239661
|
const currentKeys = Object.getOwnPropertyNames(current);
|
|
239661
239662
|
const nextKeys = Object.getOwnPropertyNames(next);
|
|
@@ -239670,47 +239671,47 @@ function ObjectType5(root, path7, current, next) {
|
|
|
239670
239671
|
}
|
|
239671
239672
|
}
|
|
239672
239673
|
for (const nextKey of nextKeys) {
|
|
239673
|
-
Visit16(
|
|
239674
|
+
Visit16(root2, `${path7}/${nextKey}`, current[nextKey], next[nextKey]);
|
|
239674
239675
|
}
|
|
239675
239676
|
}
|
|
239676
239677
|
}
|
|
239677
239678
|
__name(ObjectType5, "ObjectType");
|
|
239678
|
-
function ArrayType5(
|
|
239679
|
+
function ArrayType5(root2, path7, current, next) {
|
|
239679
239680
|
if (!IsArray(current)) {
|
|
239680
|
-
pointer_exports.Set(
|
|
239681
|
+
pointer_exports.Set(root2, path7, Clone2(next));
|
|
239681
239682
|
} else {
|
|
239682
239683
|
for (let index = 0; index < next.length; index++) {
|
|
239683
|
-
Visit16(
|
|
239684
|
+
Visit16(root2, `${path7}/${index}`, current[index], next[index]);
|
|
239684
239685
|
}
|
|
239685
239686
|
current.splice(next.length);
|
|
239686
239687
|
}
|
|
239687
239688
|
}
|
|
239688
239689
|
__name(ArrayType5, "ArrayType");
|
|
239689
|
-
function TypedArrayType3(
|
|
239690
|
+
function TypedArrayType3(root2, path7, current, next) {
|
|
239690
239691
|
if (IsTypedArray(current) && current.length === next.length) {
|
|
239691
239692
|
for (let i = 0; i < current.length; i++) {
|
|
239692
239693
|
current[i] = next[i];
|
|
239693
239694
|
}
|
|
239694
239695
|
} else {
|
|
239695
|
-
pointer_exports.Set(
|
|
239696
|
+
pointer_exports.Set(root2, path7, Clone2(next));
|
|
239696
239697
|
}
|
|
239697
239698
|
}
|
|
239698
239699
|
__name(TypedArrayType3, "TypedArrayType");
|
|
239699
|
-
function ValueType3(
|
|
239700
|
+
function ValueType3(root2, path7, current, next) {
|
|
239700
239701
|
if (current === next)
|
|
239701
239702
|
return;
|
|
239702
|
-
pointer_exports.Set(
|
|
239703
|
+
pointer_exports.Set(root2, path7, next);
|
|
239703
239704
|
}
|
|
239704
239705
|
__name(ValueType3, "ValueType");
|
|
239705
|
-
function Visit16(
|
|
239706
|
+
function Visit16(root2, path7, current, next) {
|
|
239706
239707
|
if (IsArray(next))
|
|
239707
|
-
return ArrayType5(
|
|
239708
|
+
return ArrayType5(root2, path7, current, next);
|
|
239708
239709
|
if (IsTypedArray(next))
|
|
239709
|
-
return TypedArrayType3(
|
|
239710
|
+
return TypedArrayType3(root2, path7, current, next);
|
|
239710
239711
|
if (IsStandardObject2(next))
|
|
239711
|
-
return ObjectType5(
|
|
239712
|
+
return ObjectType5(root2, path7, current, next);
|
|
239712
239713
|
if (IsValueType(next))
|
|
239713
|
-
return ValueType3(
|
|
239714
|
+
return ValueType3(root2, path7, current, next);
|
|
239714
239715
|
}
|
|
239715
239716
|
__name(Visit16, "Visit");
|
|
239716
239717
|
function IsNonMutableValue(value) {
|
|
@@ -239961,12 +239962,12 @@ function FromProperties8(value) {
|
|
|
239961
239962
|
return Acc;
|
|
239962
239963
|
}
|
|
239963
239964
|
__name(FromProperties8, "FromProperties");
|
|
239964
|
-
function ConditionalReadonly(T,
|
|
239965
|
-
return
|
|
239965
|
+
function ConditionalReadonly(T, root2) {
|
|
239966
|
+
return root2 === true ? T : Readonly(T);
|
|
239966
239967
|
}
|
|
239967
239968
|
__name(ConditionalReadonly, "ConditionalReadonly");
|
|
239968
|
-
function FromValue2(value,
|
|
239969
|
-
return IsAsyncIterator2(value) ? ConditionalReadonly(Any(),
|
|
239969
|
+
function FromValue2(value, root2) {
|
|
239970
|
+
return IsAsyncIterator2(value) ? ConditionalReadonly(Any(), root2) : IsIterator2(value) ? ConditionalReadonly(Any(), root2) : IsArray2(value) ? Readonly(Tuple(FromArray15(value))) : IsUint8Array2(value) ? Uint8Array2() : IsDate2(value) ? Date2() : IsObject2(value) ? ConditionalReadonly(Object2(FromProperties8(value)), root2) : IsFunction2(value) ? ConditionalReadonly(Function2([], Unknown()), root2) : IsUndefined2(value) ? Undefined() : IsNull2(value) ? Null() : IsSymbol2(value) ? Symbol2() : IsBigInt2(value) ? BigInt2() : IsNumber2(value) ? Literal(value) : IsBoolean2(value) ? Literal(value) : IsString2(value) ? Literal(value) : Object2({});
|
|
239970
239971
|
}
|
|
239971
239972
|
__name(FromValue2, "FromValue");
|
|
239972
239973
|
function Const(T, options) {
|
|
@@ -241465,7 +241466,7 @@ var esm_default = {
|
|
|
241465
241466
|
};
|
|
241466
241467
|
|
|
241467
241468
|
// ../../libs/monorepo/src/MonoRepo.ts
|
|
241468
|
-
var
|
|
241469
|
+
var import_upath16 = __toESM(require_upath(), 1);
|
|
241469
241470
|
|
|
241470
241471
|
// ../../libs/composition/src/View.ts
|
|
241471
241472
|
var TARGET_SYMBOL = Symbol("target");
|
|
@@ -244343,7 +244344,7 @@ __name(createLazyPropDecorator, "createLazyPropDecorator");
|
|
|
244343
244344
|
// ../../libs/monorepo/src/repo/Workspace.ts
|
|
244344
244345
|
var import_node_child_process2 = require("node:child_process");
|
|
244345
244346
|
var import_node_util5 = require("node:util");
|
|
244346
|
-
var
|
|
244347
|
+
var import_upath15 = __toESM(require_upath(), 1);
|
|
244347
244348
|
|
|
244348
244349
|
// ../../node_modules/es-toolkit/dist/promise/semaphore.mjs
|
|
244349
244350
|
var Semaphore = class {
|
|
@@ -244428,7 +244429,67 @@ __name(countUniques, "countUniques");
|
|
|
244428
244429
|
|
|
244429
244430
|
// ../../libs/monorepo/src/file/File.ts
|
|
244430
244431
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
244432
|
+
|
|
244433
|
+
// ../../libs/path/src/index.ts
|
|
244434
|
+
var src_exports = {};
|
|
244435
|
+
__export(src_exports, {
|
|
244436
|
+
cwd: () => cwd,
|
|
244437
|
+
default: () => src_default,
|
|
244438
|
+
dirnameDeep: () => dirnameDeep,
|
|
244439
|
+
hasBasename: () => hasBasename,
|
|
244440
|
+
hasExtname: () => hasExtname,
|
|
244441
|
+
hasParentDirname: () => hasParentDirname,
|
|
244442
|
+
isDotFile: () => isDotFile,
|
|
244443
|
+
isExtValid: () => isExtValid,
|
|
244444
|
+
isRelative: () => isRelative,
|
|
244445
|
+
isUnc: () => isUnc,
|
|
244446
|
+
isValidWin32: () => isValidWin32,
|
|
244447
|
+
prefixFilename: () => prefixFilename,
|
|
244448
|
+
root: () => root,
|
|
244449
|
+
suffixFilename: () => suffixFilename,
|
|
244450
|
+
toCwdRelative: () => toCwdRelative,
|
|
244451
|
+
toWin32: () => toWin32
|
|
244452
|
+
});
|
|
244453
|
+
|
|
244454
|
+
// ../../libs/path/src/lib/cwd.ts
|
|
244455
|
+
var cwd_exports = {};
|
|
244456
|
+
__export(cwd_exports, {
|
|
244457
|
+
cwd: () => cwd
|
|
244458
|
+
});
|
|
244459
|
+
var import_upath5 = __toESM(require_upath(), 1);
|
|
244460
|
+
function cwd(...p) {
|
|
244461
|
+
return import_upath5.default.joinSafe(process.cwd(), ...p);
|
|
244462
|
+
}
|
|
244463
|
+
__name(cwd, "cwd");
|
|
244464
|
+
|
|
244465
|
+
// ../../libs/path/src/lib/dirnameDeep.ts
|
|
244466
|
+
var dirnameDeep_exports = {};
|
|
244467
|
+
__export(dirnameDeep_exports, {
|
|
244468
|
+
dirnameDeep: () => dirnameDeep
|
|
244469
|
+
});
|
|
244431
244470
|
var import_upath6 = __toESM(require_upath(), 1);
|
|
244471
|
+
function dirnameDeep(p, depth) {
|
|
244472
|
+
const parent = import_upath6.default.dirname(p);
|
|
244473
|
+
return depth && depth > 1 ? dirnameDeep(parent, depth - 1) : parent;
|
|
244474
|
+
}
|
|
244475
|
+
__name(dirnameDeep, "dirnameDeep");
|
|
244476
|
+
|
|
244477
|
+
// ../../libs/path/src/lib/hasBasename.ts
|
|
244478
|
+
var hasBasename_exports = {};
|
|
244479
|
+
__export(hasBasename_exports, {
|
|
244480
|
+
hasBasename: () => hasBasename
|
|
244481
|
+
});
|
|
244482
|
+
var import_upath7 = __toESM(require_upath(), 1);
|
|
244483
|
+
function hasBasename(tsFilepath, basenames) {
|
|
244484
|
+
return [basenames].flat(2).includes(import_upath7.default.basename(tsFilepath));
|
|
244485
|
+
}
|
|
244486
|
+
__name(hasBasename, "hasBasename");
|
|
244487
|
+
|
|
244488
|
+
// ../../libs/path/src/lib/hasExtname.ts
|
|
244489
|
+
var hasExtname_exports = {};
|
|
244490
|
+
__export(hasExtname_exports, {
|
|
244491
|
+
hasExtname: () => hasExtname
|
|
244492
|
+
});
|
|
244432
244493
|
|
|
244433
244494
|
// ../../libs/fn/src/preserveNameAndLength.ts
|
|
244434
244495
|
function preserveNameAndLength(source, target, adjustLengthBy = 0) {
|
|
@@ -244464,18 +244525,156 @@ hasExtname.markdown = bindArg(hasExtname, 1, ["md", "markdown"]);
|
|
|
244464
244525
|
hasExtname.ts = bindArg(hasExtname, 1, ["ts", "mts", "tsx"]);
|
|
244465
244526
|
|
|
244466
244527
|
// ../../libs/path/src/lib/hasParentDirname.ts
|
|
244528
|
+
var hasParentDirname_exports = {};
|
|
244529
|
+
__export(hasParentDirname_exports, {
|
|
244530
|
+
hasParentDirname: () => hasParentDirname
|
|
244531
|
+
});
|
|
244467
244532
|
function hasParentDirname(fspath, name) {
|
|
244468
244533
|
return new RegExp("(^|[/\\\\])" + name + "[/\\\\]").test(fspath);
|
|
244469
244534
|
}
|
|
244470
244535
|
__name(hasParentDirname, "hasParentDirname");
|
|
244471
244536
|
|
|
244537
|
+
// ../../libs/path/src/lib/isDotFile.ts
|
|
244538
|
+
var isDotFile_exports = {};
|
|
244539
|
+
__export(isDotFile_exports, {
|
|
244540
|
+
isDotFile: () => isDotFile
|
|
244541
|
+
});
|
|
244542
|
+
function isDotFile(filepath) {
|
|
244543
|
+
return /(?:^|[\\/])(\.(?!\.)[^\\/]+)$/.test(filepath);
|
|
244544
|
+
}
|
|
244545
|
+
__name(isDotFile, "isDotFile");
|
|
244546
|
+
|
|
244547
|
+
// ../../libs/path/src/lib/isExtValid.ts
|
|
244548
|
+
var isExtValid_exports = {};
|
|
244549
|
+
__export(isExtValid_exports, {
|
|
244550
|
+
isExtValid: () => isExtValid
|
|
244551
|
+
});
|
|
244552
|
+
function isExtValid(ext2) {
|
|
244553
|
+
return !!ext2 && ext2 !== "." && !/[<>"|?*:]/.test(ext2);
|
|
244554
|
+
}
|
|
244555
|
+
__name(isExtValid, "isExtValid");
|
|
244556
|
+
|
|
244557
|
+
// ../../libs/path/src/lib/isRelative.ts
|
|
244558
|
+
var isRelative_exports = {};
|
|
244559
|
+
__export(isRelative_exports, {
|
|
244560
|
+
isRelative: () => isRelative
|
|
244561
|
+
});
|
|
244562
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
244563
|
+
function isRelative(p) {
|
|
244564
|
+
return !import_node_path2.default.isAbsolute(p);
|
|
244565
|
+
}
|
|
244566
|
+
__name(isRelative, "isRelative");
|
|
244567
|
+
|
|
244568
|
+
// ../../libs/path/src/lib/isUnc.ts
|
|
244569
|
+
var isUnc_exports = {};
|
|
244570
|
+
__export(isUnc_exports, {
|
|
244571
|
+
isUnc: () => isUnc
|
|
244572
|
+
});
|
|
244573
|
+
function isUnc(filepath) {
|
|
244574
|
+
return /^[\\/]{2,}[^\\/]+[\\/]+[^\\/]+/.test(filepath);
|
|
244575
|
+
}
|
|
244576
|
+
__name(isUnc, "isUnc");
|
|
244577
|
+
|
|
244578
|
+
// ../../libs/path/src/lib/isValidWin32.ts
|
|
244579
|
+
var isValidWin32_exports = {};
|
|
244580
|
+
__export(isValidWin32_exports, {
|
|
244581
|
+
isValidWin32: () => isValidWin32
|
|
244582
|
+
});
|
|
244583
|
+
function isValidWin32(path7, options) {
|
|
244584
|
+
if (path7.length === 0) return false;
|
|
244585
|
+
if (path7.indexOf("/") !== -1 && path7.indexOf("\\") !== -1) return false;
|
|
244586
|
+
const maxLength = (options && options.extendedMaxLength ? 32767 : 260) - 12;
|
|
244587
|
+
if (path7.length > maxLength) return false;
|
|
244588
|
+
const noDriveLetter = /^\w:(\\|\/)/g.test(path7) ? path7.substring(2) : path7;
|
|
244589
|
+
if (/[<>"|?*:]/g.test(noDriveLetter)) return false;
|
|
244590
|
+
if (/(\\|\/)(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])((\\|\/)|$)/g.test(path7)) return false;
|
|
244591
|
+
return true;
|
|
244592
|
+
}
|
|
244593
|
+
__name(isValidWin32, "isValidWin32");
|
|
244594
|
+
|
|
244595
|
+
// ../../libs/path/src/lib/prefixFilename.ts
|
|
244596
|
+
var prefixFilename_exports = {};
|
|
244597
|
+
__export(prefixFilename_exports, {
|
|
244598
|
+
prefixFilename: () => prefixFilename
|
|
244599
|
+
});
|
|
244600
|
+
var import_upath8 = __toESM(require_upath(), 1);
|
|
244601
|
+
function prefixFilename(filePath, prefix) {
|
|
244602
|
+
const ext2 = import_upath8.default.extname(filePath);
|
|
244603
|
+
const fileNameWithoutExt = import_upath8.default.basename(filePath, ext2);
|
|
244604
|
+
return import_upath8.default.joinSafe(import_upath8.default.dirname(filePath), prefix + fileNameWithoutExt + ext2);
|
|
244605
|
+
}
|
|
244606
|
+
__name(prefixFilename, "prefixFilename");
|
|
244607
|
+
|
|
244608
|
+
// ../../libs/path/src/lib/root.ts
|
|
244609
|
+
var root_exports = {};
|
|
244610
|
+
__export(root_exports, {
|
|
244611
|
+
root: () => root
|
|
244612
|
+
});
|
|
244613
|
+
var import_upath9 = __toESM(require_upath(), 1);
|
|
244614
|
+
function root(p) {
|
|
244615
|
+
return import_upath9.default.parse(p).root;
|
|
244616
|
+
}
|
|
244617
|
+
__name(root, "root");
|
|
244618
|
+
|
|
244619
|
+
// ../../libs/path/src/lib/suffixFilename.ts
|
|
244620
|
+
var suffixFilename_exports = {};
|
|
244621
|
+
__export(suffixFilename_exports, {
|
|
244622
|
+
suffixFilename: () => suffixFilename
|
|
244623
|
+
});
|
|
244624
|
+
var import_upath10 = __toESM(require_upath(), 1);
|
|
244625
|
+
function suffixFilename(filePath, suffix) {
|
|
244626
|
+
const split = import_upath10.default.basename(filePath).split(".");
|
|
244627
|
+
split[0] += suffix;
|
|
244628
|
+
return import_upath10.default.joinSafe(import_upath10.default.dirname(filePath), split.join("."));
|
|
244629
|
+
}
|
|
244630
|
+
__name(suffixFilename, "suffixFilename");
|
|
244631
|
+
|
|
244472
244632
|
// ../../libs/path/src/lib/toCwdRelative.ts
|
|
244473
|
-
var
|
|
244633
|
+
var toCwdRelative_exports = {};
|
|
244634
|
+
__export(toCwdRelative_exports, {
|
|
244635
|
+
toCwdRelative: () => toCwdRelative
|
|
244636
|
+
});
|
|
244637
|
+
var import_upath11 = __toESM(require_upath(), 1);
|
|
244474
244638
|
function toCwdRelative(p) {
|
|
244475
|
-
return
|
|
244639
|
+
return import_upath11.default.relative(process.cwd(), p);
|
|
244476
244640
|
}
|
|
244477
244641
|
__name(toCwdRelative, "toCwdRelative");
|
|
244478
244642
|
|
|
244643
|
+
// ../../libs/path/src/lib/toWin32.ts
|
|
244644
|
+
var toWin32_exports = {};
|
|
244645
|
+
__export(toWin32_exports, {
|
|
244646
|
+
toWin32: () => toWin32
|
|
244647
|
+
});
|
|
244648
|
+
function toWin32(p) {
|
|
244649
|
+
return p.replace(/\//g, "\\");
|
|
244650
|
+
}
|
|
244651
|
+
__name(toWin32, "toWin32");
|
|
244652
|
+
|
|
244653
|
+
// ../../libs/path/src/lib/upath.ts
|
|
244654
|
+
var upath_exports = {};
|
|
244655
|
+
__reExport(upath_exports, __toESM(require_upath(), 1));
|
|
244656
|
+
|
|
244657
|
+
// ../../libs/path/src/index.ts
|
|
244658
|
+
__reExport(src_exports, upath_exports);
|
|
244659
|
+
var src_default = {
|
|
244660
|
+
...cwd_exports,
|
|
244661
|
+
...dirnameDeep_exports,
|
|
244662
|
+
...hasBasename_exports,
|
|
244663
|
+
...hasExtname_exports,
|
|
244664
|
+
...hasParentDirname_exports,
|
|
244665
|
+
...isDotFile_exports,
|
|
244666
|
+
...isExtValid_exports,
|
|
244667
|
+
...isRelative_exports,
|
|
244668
|
+
...isUnc_exports,
|
|
244669
|
+
...isValidWin32_exports,
|
|
244670
|
+
...prefixFilename_exports,
|
|
244671
|
+
...root_exports,
|
|
244672
|
+
...suffixFilename_exports,
|
|
244673
|
+
...toCwdRelative_exports,
|
|
244674
|
+
...toWin32_exports,
|
|
244675
|
+
...upath_exports
|
|
244676
|
+
};
|
|
244677
|
+
|
|
244479
244678
|
// ../../libs/monorepo/src/util/SemanticExtnamePrefix.ts
|
|
244480
244679
|
var SemanticExtnamePrefix = {
|
|
244481
244680
|
d: "d",
|
|
@@ -244500,19 +244699,19 @@ var File2 = class extends AbstractBase {
|
|
|
244500
244699
|
path;
|
|
244501
244700
|
constructor(parent, filepath) {
|
|
244502
244701
|
super(parent);
|
|
244503
|
-
this.path =
|
|
244702
|
+
this.path = src_default.normalize(filepath);
|
|
244504
244703
|
}
|
|
244505
244704
|
get stats() {
|
|
244506
244705
|
return import_node_fs.default.statSync(this.path);
|
|
244507
244706
|
}
|
|
244508
244707
|
get isTs() {
|
|
244509
|
-
return hasExtname(this.path, ["ts", "mts", "tsx"]);
|
|
244708
|
+
return src_default.hasExtname(this.path, ["ts", "mts", "tsx"]);
|
|
244510
244709
|
}
|
|
244511
244710
|
get isDotTs() {
|
|
244512
|
-
return hasExtname(this.path, "ts");
|
|
244711
|
+
return src_default.hasExtname(this.path, "ts");
|
|
244513
244712
|
}
|
|
244514
244713
|
get isDotTsx() {
|
|
244515
|
-
return hasExtname(this.path, "tsx");
|
|
244714
|
+
return src_default.hasExtname(this.path, "tsx");
|
|
244516
244715
|
}
|
|
244517
244716
|
get isExample() {
|
|
244518
244717
|
return hasExtnamePrefix(this.path, SemanticExtnamePrefix.examples);
|
|
@@ -244524,10 +244723,10 @@ var File2 = class extends AbstractBase {
|
|
|
244524
244723
|
return hasExtnamePrefix(this.path, SemanticExtnamePrefix.test);
|
|
244525
244724
|
}
|
|
244526
244725
|
get isIndexFile() {
|
|
244527
|
-
return
|
|
244726
|
+
return src_default.parse(this.path).name === "index";
|
|
244528
244727
|
}
|
|
244529
244728
|
get isSourceFile() {
|
|
244530
|
-
return hasParentDirname(this.path, "src") && !hasExtnamePrefix(this.path);
|
|
244729
|
+
return src_default.hasParentDirname(this.path, "src") && !hasExtnamePrefix(this.path);
|
|
244531
244730
|
}
|
|
244532
244731
|
/**
|
|
244533
244732
|
* Read the file contents.
|
|
@@ -244999,16 +245198,16 @@ TestFile = __decorateClass([
|
|
|
244999
245198
|
|
|
245000
245199
|
// ../../libs/fs/src/walkDirectory.ts
|
|
245001
245200
|
var import_fs_extra3 = __toESM(require_lib(), 1);
|
|
245002
|
-
var
|
|
245201
|
+
var import_upath12 = __toESM(require_upath(), 1);
|
|
245003
245202
|
var import_walkdir = __toESM(require_walkdir(), 1);
|
|
245004
245203
|
function walkDirectory(dirpath, options) {
|
|
245005
|
-
dirpath =
|
|
245204
|
+
dirpath = import_upath12.default.normalizeSafe(dirpath);
|
|
245006
245205
|
if (!options.stats && !options.only) {
|
|
245007
245206
|
return import_walkdir.default.sync(dirpath, {
|
|
245008
245207
|
...convertToWalkdirOptions(options),
|
|
245009
245208
|
//
|
|
245010
245209
|
return_object: false
|
|
245011
|
-
}).map((fspath) =>
|
|
245210
|
+
}).map((fspath) => import_upath12.default.normalizeSafe(fspath));
|
|
245012
245211
|
}
|
|
245013
245212
|
let entries = Object.entries(import_walkdir.default.sync(dirpath, convertToWalkdirOptions(options)));
|
|
245014
245213
|
if (options.only === "files") {
|
|
@@ -245016,7 +245215,7 @@ function walkDirectory(dirpath, options) {
|
|
|
245016
245215
|
} else if (options.only === "directories") {
|
|
245017
245216
|
entries = entries.filter(([_, stats]) => stats.isDirectory());
|
|
245018
245217
|
}
|
|
245019
|
-
entries = entries.map(([fspath, stats]) => [
|
|
245218
|
+
entries = entries.map(([fspath, stats]) => [import_upath12.default.normalizeSafe(fspath), stats]);
|
|
245020
245219
|
if (options.stats) {
|
|
245021
245220
|
return entries;
|
|
245022
245221
|
} else {
|
|
@@ -245036,7 +245235,7 @@ function convertToWalkdirOptions(options) {
|
|
|
245036
245235
|
if (options.filter) {
|
|
245037
245236
|
const filter2 = options.filter;
|
|
245038
245237
|
result.filter = (dirpath, files2) => {
|
|
245039
|
-
return filter2(
|
|
245238
|
+
return filter2(import_upath12.default.normalizeSafe(dirpath), import_upath12.default.basename(dirpath)) ? files2 : [];
|
|
245040
245239
|
};
|
|
245041
245240
|
}
|
|
245042
245241
|
return result;
|
|
@@ -245045,10 +245244,10 @@ __name(convertToWalkdirOptions, "convertToWalkdirOptions");
|
|
|
245045
245244
|
|
|
245046
245245
|
// ../../libs/monorepo/src/util/resolveModuleImportPath.ts
|
|
245047
245246
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
245048
|
-
var
|
|
245247
|
+
var import_upath14 = __toESM(require_upath(), 1);
|
|
245049
245248
|
|
|
245050
245249
|
// ../../libs/monorepo/src/util/getRepoRootDirpath.ts
|
|
245051
|
-
var
|
|
245250
|
+
var import_upath13 = __toESM(require_upath(), 1);
|
|
245052
245251
|
var import_fs_extra4 = __toESM(require_lib(), 1);
|
|
245053
245252
|
|
|
245054
245253
|
// ../../node_modules/mimic-function/index.js
|
|
@@ -245132,12 +245331,12 @@ var onetime_default = onetime;
|
|
|
245132
245331
|
// ../../libs/monorepo/src/util/getRepoRootDirpath.ts
|
|
245133
245332
|
var getRepoRootDirpath2 = onetime_default(/* @__PURE__ */ __name(function getRepoRootDirpath3() {
|
|
245134
245333
|
return (/* @__PURE__ */ __name(function recurse(dirpath = process.cwd()) {
|
|
245135
|
-
dirpath =
|
|
245136
|
-
const pkgpath =
|
|
245334
|
+
dirpath = import_upath13.default.normalizeSafe(dirpath);
|
|
245335
|
+
const pkgpath = import_upath13.default.joinSafe(dirpath, "package.json");
|
|
245137
245336
|
if (import_fs_extra4.default.existsSync(pkgpath) && import_fs_extra4.default.readJsonSync(pkgpath)?.workspaces) {
|
|
245138
245337
|
return dirpath;
|
|
245139
245338
|
}
|
|
245140
|
-
const parent =
|
|
245339
|
+
const parent = import_upath13.default.dirname(dirpath);
|
|
245141
245340
|
if (parent !== dirpath) return recurse(parent);
|
|
245142
245341
|
throw new Error("Could not find repo root from process.cwd(): " + process.cwd());
|
|
245143
245342
|
}, "recurse"))();
|
|
@@ -245150,7 +245349,7 @@ function resolveModuleImportPath(filepath, importFrom) {
|
|
|
245150
245349
|
importFrom,
|
|
245151
245350
|
filepath,
|
|
245152
245351
|
{
|
|
245153
|
-
paths: esm_default.readJsonSync(
|
|
245352
|
+
paths: esm_default.readJsonSync(import_upath14.default.joinSafe(rootdir, "tsconfig.paths.json")).compilerOptions.paths,
|
|
245154
245353
|
allowJs: true,
|
|
245155
245354
|
allowArbitraryExtensions: true,
|
|
245156
245355
|
allowImportingTsExtensions: true,
|
|
@@ -245161,7 +245360,7 @@ function resolveModuleImportPath(filepath, importFrom) {
|
|
|
245161
245360
|
(0, import_typescript.createCompilerHost)({}, true)
|
|
245162
245361
|
);
|
|
245163
245362
|
const f = result.resolvedModule?.resolvedFileName;
|
|
245164
|
-
if (f) result.resolvedModule.resolvedFileName =
|
|
245363
|
+
if (f) result.resolvedModule.resolvedFileName = import_upath14.default.relative(rootdir, f);
|
|
245165
245364
|
return result.resolvedModule;
|
|
245166
245365
|
}
|
|
245167
245366
|
__name(resolveModuleImportPath, "resolveModuleImportPath");
|
|
@@ -245178,14 +245377,14 @@ var Workspace = class extends AbstractBase {
|
|
|
245178
245377
|
path;
|
|
245179
245378
|
constructor(parent, dirpath) {
|
|
245180
245379
|
super(parent);
|
|
245181
|
-
this.path =
|
|
245182
|
-
this.origin =
|
|
245380
|
+
this.path = import_upath15.default.normalize(dirpath);
|
|
245381
|
+
this.origin = import_upath15.default.basename(import_upath15.default.dirname(this.path));
|
|
245183
245382
|
}
|
|
245184
245383
|
/**
|
|
245185
245384
|
* The workspace's package.json filepath.
|
|
245186
245385
|
*/
|
|
245187
245386
|
get packageJsonPath() {
|
|
245188
|
-
return
|
|
245387
|
+
return import_upath15.default.join(this.path, "package.json");
|
|
245189
245388
|
}
|
|
245190
245389
|
get packageJson() {
|
|
245191
245390
|
return readJsonSync(this.packageJsonPath);
|
|
@@ -245286,14 +245485,14 @@ var Workspace = class extends AbstractBase {
|
|
|
245286
245485
|
get importedDependenciesByFile() {
|
|
245287
245486
|
return new Map(
|
|
245288
245487
|
this.tsFiles.map((file) => {
|
|
245289
|
-
return [
|
|
245488
|
+
return [import_upath15.default.relative(process.cwd(), file.path), file.dependencies];
|
|
245290
245489
|
})
|
|
245291
245490
|
);
|
|
245292
245491
|
}
|
|
245293
245492
|
get importedTestDependenciesByFile() {
|
|
245294
245493
|
return new Map(
|
|
245295
245494
|
this.testFiles.map((file) => {
|
|
245296
|
-
return [
|
|
245495
|
+
return [import_upath15.default.relative(process.cwd(), file.path), file.dependencies];
|
|
245297
245496
|
})
|
|
245298
245497
|
);
|
|
245299
245498
|
}
|
|
@@ -245343,7 +245542,7 @@ var Workspace = class extends AbstractBase {
|
|
|
245343
245542
|
results.push({
|
|
245344
245543
|
filepath: file.path,
|
|
245345
245544
|
replaceValue: imp.module.from,
|
|
245346
|
-
withValue: resolvedFileName.endsWith("index.ts") ? "./" + imp.specifiers?.importedNamesArray[0] : "./" +
|
|
245545
|
+
withValue: resolvedFileName.endsWith("index.ts") ? "./" + imp.specifiers?.importedNamesArray[0] : "./" + import_upath15.default.relative(import_upath15.default.dirname(file.path), resolvedFileName)
|
|
245347
245546
|
});
|
|
245348
245547
|
}
|
|
245349
245548
|
}
|
|
@@ -245405,7 +245604,7 @@ var Workspace = class extends AbstractBase {
|
|
|
245405
245604
|
* Returns the workspace's cwd-relative path.
|
|
245406
245605
|
*/
|
|
245407
245606
|
toString() {
|
|
245408
|
-
return
|
|
245607
|
+
return import_upath15.default.relative(process.cwd(), this.path);
|
|
245409
245608
|
}
|
|
245410
245609
|
};
|
|
245411
245610
|
__name(Workspace, "Workspace");
|
|
@@ -245447,10 +245646,10 @@ var MonoRepo = class extends AbstractBase {
|
|
|
245447
245646
|
return super.findParentDeep((m) => m instanceof MonoRepo) || this;
|
|
245448
245647
|
}
|
|
245449
245648
|
get packageJsonPath() {
|
|
245450
|
-
return
|
|
245649
|
+
return import_upath16.default.join(this.path, "package.json");
|
|
245451
245650
|
}
|
|
245452
245651
|
get tsconfigBaseJsonPath() {
|
|
245453
|
-
return
|
|
245652
|
+
return import_upath16.default.join(this.path, "tsconfig.json");
|
|
245454
245653
|
}
|
|
245455
245654
|
get tsconfigBase() {
|
|
245456
245655
|
const o = readJsonSync(this.tsconfigBaseJsonPath);
|
|
@@ -245459,7 +245658,7 @@ var MonoRepo = class extends AbstractBase {
|
|
|
245459
245658
|
return o;
|
|
245460
245659
|
}
|
|
245461
245660
|
get tsconfigBasePathsJsonPath() {
|
|
245462
|
-
return
|
|
245661
|
+
return import_upath16.default.join(this.path, "tsconfig.paths.json");
|
|
245463
245662
|
}
|
|
245464
245663
|
get tsconfigBasePaths() {
|
|
245465
245664
|
if (!import_node_fs2.default.existsSync(this.tsconfigBasePathsJsonPath)) return {};
|
|
@@ -245479,7 +245678,7 @@ var MonoRepo = class extends AbstractBase {
|
|
|
245479
245678
|
throw new Error(`MonoRepo package.json missing 'workspaces' field: ${this.packageJsonPath}`);
|
|
245480
245679
|
}
|
|
245481
245680
|
return this.packageJson.workspaces.map((workspacePath) => {
|
|
245482
|
-
return
|
|
245681
|
+
return import_upath16.default.join(this.path, workspacePath.replace(/\*$/, ""));
|
|
245483
245682
|
});
|
|
245484
245683
|
}
|
|
245485
245684
|
get workspacePaths() {
|
|
@@ -245487,7 +245686,7 @@ var MonoRepo = class extends AbstractBase {
|
|
|
245487
245686
|
return import_node_fs2.default.readdirSync(workspacePath, { withFileTypes: true }).filter((dirent) => {
|
|
245488
245687
|
return dirent.isDirectory();
|
|
245489
245688
|
}).map((dirent) => {
|
|
245490
|
-
return
|
|
245689
|
+
return import_upath16.default.join(workspacePath, dirent.name);
|
|
245491
245690
|
});
|
|
245492
245691
|
}).flat();
|
|
245493
245692
|
}
|
|
@@ -248497,7 +248696,7 @@ var LRUCache = class _LRUCache {
|
|
|
248497
248696
|
};
|
|
248498
248697
|
|
|
248499
248698
|
// ../../node_modules/path-scurry/dist/esm/index.js
|
|
248500
|
-
var
|
|
248699
|
+
var import_node_path3 = require("node:path");
|
|
248501
248700
|
var import_node_url = require("node:url");
|
|
248502
248701
|
var import_fs2 = require("fs");
|
|
248503
248702
|
var actualFS = __toESM(require("node:fs"), 1);
|
|
@@ -249625,13 +249824,13 @@ var PathBase = class {
|
|
|
249625
249824
|
*
|
|
249626
249825
|
* @internal
|
|
249627
249826
|
*/
|
|
249628
|
-
constructor(name, type = UNKNOWN,
|
|
249827
|
+
constructor(name, type = UNKNOWN, root2, roots, nocase, children, opts) {
|
|
249629
249828
|
this.name = name;
|
|
249630
249829
|
this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
|
|
249631
249830
|
this.#type = type & TYPEMASK;
|
|
249632
249831
|
this.nocase = nocase;
|
|
249633
249832
|
this.roots = roots;
|
|
249634
|
-
this.root =
|
|
249833
|
+
this.root = root2 || this;
|
|
249635
249834
|
this.#children = children;
|
|
249636
249835
|
this.#fullpath = opts.fullpath;
|
|
249637
249836
|
this.#relative = opts.relative;
|
|
@@ -250412,8 +250611,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
250412
250611
|
*
|
|
250413
250612
|
* @internal
|
|
250414
250613
|
*/
|
|
250415
|
-
constructor(name, type = UNKNOWN,
|
|
250416
|
-
super(name, type,
|
|
250614
|
+
constructor(name, type = UNKNOWN, root2, roots, nocase, children, opts) {
|
|
250615
|
+
super(name, type, root2, roots, nocase, children, opts);
|
|
250417
250616
|
}
|
|
250418
250617
|
/**
|
|
250419
250618
|
* @internal
|
|
@@ -250425,7 +250624,7 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
250425
250624
|
* @internal
|
|
250426
250625
|
*/
|
|
250427
250626
|
getRootString(path7) {
|
|
250428
|
-
return
|
|
250627
|
+
return import_node_path3.win32.parse(path7).root;
|
|
250429
250628
|
}
|
|
250430
250629
|
/**
|
|
250431
250630
|
* @internal
|
|
@@ -250435,9 +250634,9 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
250435
250634
|
if (rootPath === this.root.name) {
|
|
250436
250635
|
return this.root;
|
|
250437
250636
|
}
|
|
250438
|
-
for (const [compare,
|
|
250637
|
+
for (const [compare, root2] of Object.entries(this.roots)) {
|
|
250439
250638
|
if (this.sameRoot(rootPath, compare)) {
|
|
250440
|
-
return this.roots[rootPath] =
|
|
250639
|
+
return this.roots[rootPath] = root2;
|
|
250441
250640
|
}
|
|
250442
250641
|
}
|
|
250443
250642
|
return this.roots[rootPath] = new PathScurryWin32(rootPath, this).root;
|
|
@@ -250468,8 +250667,8 @@ var PathPosix = class _PathPosix extends PathBase {
|
|
|
250468
250667
|
*
|
|
250469
250668
|
* @internal
|
|
250470
250669
|
*/
|
|
250471
|
-
constructor(name, type = UNKNOWN,
|
|
250472
|
-
super(name, type,
|
|
250670
|
+
constructor(name, type = UNKNOWN, root2, roots, nocase, children, opts) {
|
|
250671
|
+
super(name, type, root2, roots, nocase, children, opts);
|
|
250473
250672
|
}
|
|
250474
250673
|
/**
|
|
250475
250674
|
* @internal
|
|
@@ -250527,12 +250726,12 @@ var PathScurryBase = class {
|
|
|
250527
250726
|
*
|
|
250528
250727
|
* @internal
|
|
250529
250728
|
*/
|
|
250530
|
-
constructor(
|
|
250729
|
+
constructor(cwd3 = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs29 = defaultFS } = {}) {
|
|
250531
250730
|
this.#fs = fsFromOption(fs29);
|
|
250532
|
-
if (
|
|
250533
|
-
|
|
250731
|
+
if (cwd3 instanceof URL || cwd3.startsWith("file://")) {
|
|
250732
|
+
cwd3 = (0, import_node_url.fileURLToPath)(cwd3);
|
|
250534
250733
|
}
|
|
250535
|
-
const cwdPath = pathImpl.resolve(
|
|
250734
|
+
const cwdPath = pathImpl.resolve(cwd3);
|
|
250536
250735
|
this.roots = /* @__PURE__ */ Object.create(null);
|
|
250537
250736
|
this.rootPath = this.parseRootPath(cwdPath);
|
|
250538
250737
|
this.#resolveCache = new ResolveCache();
|
|
@@ -251072,9 +251271,9 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
251072
251271
|
* separator for generating path strings
|
|
251073
251272
|
*/
|
|
251074
251273
|
sep = "\\";
|
|
251075
|
-
constructor(
|
|
251274
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
251076
251275
|
const { nocase = true } = opts;
|
|
251077
|
-
super(
|
|
251276
|
+
super(cwd3, import_node_path3.win32, "\\", { ...opts, nocase });
|
|
251078
251277
|
this.nocase = nocase;
|
|
251079
251278
|
for (let p = this.cwd; p; p = p.parent) {
|
|
251080
251279
|
p.nocase = this.nocase;
|
|
@@ -251084,7 +251283,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
251084
251283
|
* @internal
|
|
251085
251284
|
*/
|
|
251086
251285
|
parseRootPath(dir) {
|
|
251087
|
-
return
|
|
251286
|
+
return import_node_path3.win32.parse(dir).root.toUpperCase();
|
|
251088
251287
|
}
|
|
251089
251288
|
/**
|
|
251090
251289
|
* @internal
|
|
@@ -251107,9 +251306,9 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
251107
251306
|
* separator for generating path strings
|
|
251108
251307
|
*/
|
|
251109
251308
|
sep = "/";
|
|
251110
|
-
constructor(
|
|
251309
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
251111
251310
|
const { nocase = false } = opts;
|
|
251112
|
-
super(
|
|
251311
|
+
super(cwd3, import_node_path3.posix, "/", { ...opts, nocase });
|
|
251113
251312
|
this.nocase = nocase;
|
|
251114
251313
|
}
|
|
251115
251314
|
/**
|
|
@@ -251135,9 +251334,9 @@ var PathScurryDarwin = class extends PathScurryPosix {
|
|
|
251135
251334
|
static {
|
|
251136
251335
|
__name(this, "PathScurryDarwin");
|
|
251137
251336
|
}
|
|
251138
|
-
constructor(
|
|
251337
|
+
constructor(cwd3 = process.cwd(), opts = {}) {
|
|
251139
251338
|
const { nocase = true } = opts;
|
|
251140
|
-
super(
|
|
251339
|
+
super(cwd3, { ...opts, nocase });
|
|
251141
251340
|
}
|
|
251142
251341
|
};
|
|
251143
251342
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
@@ -251497,10 +251696,10 @@ var Processor = class _Processor {
|
|
|
251497
251696
|
const processingSet = patterns.map((p) => [target, p]);
|
|
251498
251697
|
for (let [t, pattern] of processingSet) {
|
|
251499
251698
|
this.hasWalkedCache.storeWalked(t, pattern);
|
|
251500
|
-
const
|
|
251699
|
+
const root2 = pattern.root();
|
|
251501
251700
|
const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
|
|
251502
|
-
if (
|
|
251503
|
-
t = t.resolve(
|
|
251701
|
+
if (root2) {
|
|
251702
|
+
t = t.resolve(root2 === "/" && this.opts.root !== void 0 ? this.opts.root : root2);
|
|
251504
251703
|
const rest2 = pattern.rest();
|
|
251505
251704
|
if (!rest2) {
|
|
251506
251705
|
this.matches.add(t, true, false);
|
|
@@ -252350,10 +252549,10 @@ var import_fs_extra6 = __toESM(require_lib(), 1);
|
|
|
252350
252549
|
var import_strip_comments2 = __toESM(require_strip_comments(), 1);
|
|
252351
252550
|
|
|
252352
252551
|
// src/lib/topImports.ts
|
|
252353
|
-
var
|
|
252552
|
+
var import_upath17 = __toESM(require_upath(), 1);
|
|
252354
252553
|
function topImports(repo, n = 50, normalize2 = (line) => line) {
|
|
252355
252554
|
const imports = getAllImports(repo);
|
|
252356
|
-
const counters = imports.filter((imp) =>
|
|
252555
|
+
const counters = imports.filter((imp) => import_upath17.default.parse(imp.path).name !== "index").filter((imp) => imp.module.isDependency).flatMap((imp) => {
|
|
252357
252556
|
return imp.split().map((s) => {
|
|
252358
252557
|
return normalize2(s.replace(/^import type /, "import ").replace("import * as ", "import "));
|
|
252359
252558
|
});
|
|
@@ -252445,17 +252644,17 @@ __name(list_imported_files, "list_imported_files");
|
|
|
252445
252644
|
|
|
252446
252645
|
// src/lib/importLibs.ts
|
|
252447
252646
|
var import_fs_extra7 = __toESM(require_lib(), 1);
|
|
252448
|
-
var
|
|
252647
|
+
var import_upath18 = __toESM(require_upath(), 1);
|
|
252449
252648
|
var import_meta2 = {};
|
|
252450
252649
|
async function importLibs(libDirnames) {
|
|
252451
252650
|
if (!libDirnames) {
|
|
252452
|
-
const libsDir =
|
|
252651
|
+
const libsDir = import_upath18.default.joinSafe(getRepoRootDirpath(), "libs");
|
|
252453
252652
|
libDirnames = await import_fs_extra7.default.readdir(libsDir);
|
|
252454
252653
|
}
|
|
252455
252654
|
const promises = libDirnames.map(async (ws) => {
|
|
252456
|
-
const absPath =
|
|
252655
|
+
const absPath = import_upath18.default.joinSafe(getRepoRootDirpath(), ".dist", "libs", ws + ".cjs");
|
|
252457
252656
|
const currentDir = typeof import_meta2 !== "undefined" && import_meta2.dirname || typeof __dirname !== "undefined" && __dirname || process.cwd();
|
|
252458
|
-
let importPath =
|
|
252657
|
+
let importPath = import_upath18.default.relative(currentDir, absPath);
|
|
252459
252658
|
if (!importPath.startsWith(".")) importPath = "./" + importPath;
|
|
252460
252659
|
return [ws, await import(importPath)];
|
|
252461
252660
|
});
|
|
@@ -252509,12 +252708,12 @@ __name(fix_dash_chars, "fix_dash_chars");
|
|
|
252509
252708
|
|
|
252510
252709
|
// src/commands/missing_coverage_files.ts
|
|
252511
252710
|
var import_fs_extra9 = __toESM(require_lib(), 1);
|
|
252512
|
-
var
|
|
252711
|
+
var import_upath19 = __toESM(require_upath(), 1);
|
|
252513
252712
|
function missing_coverage_files() {
|
|
252514
252713
|
return new Command("missing-coverage-files").alias("mcf").description("Show files with missing test coverage.").option("--check", "Exit with error code if files with missing coverage are found.").action(async (opts) => {
|
|
252515
252714
|
await timer(["missing-coverage-files", "Checking library exports for missing coverage..."], async (log) => {
|
|
252516
252715
|
const repoRoot = getRepoRootDirpath();
|
|
252517
|
-
const vitestConfigFilepath =
|
|
252716
|
+
const vitestConfigFilepath = import_upath19.default.join(repoRoot, "vitest.config.js");
|
|
252518
252717
|
if (!import_fs_extra9.default.existsSync(vitestConfigFilepath)) {
|
|
252519
252718
|
console.error(`Vitest config file not found at ${vitestConfigFilepath}`);
|
|
252520
252719
|
process.exit(1);
|
|
@@ -252524,7 +252723,7 @@ function missing_coverage_files() {
|
|
|
252524
252723
|
console.error(`Could not find reportsDirectory in Vitest config at ${vitestConfigFilepath}`);
|
|
252525
252724
|
process.exit(1);
|
|
252526
252725
|
}
|
|
252527
|
-
const coverageSummaryJsonFilepath =
|
|
252726
|
+
const coverageSummaryJsonFilepath = import_upath19.default.join(coverageDirectory, "coverage-summary.json");
|
|
252528
252727
|
if (!import_fs_extra9.default.existsSync(coverageSummaryJsonFilepath)) {
|
|
252529
252728
|
console.error(`Coverage summary file not found at ${coverageSummaryJsonFilepath}`);
|
|
252530
252729
|
process.exit(1);
|
|
@@ -252640,17 +252839,17 @@ var import_node_child_process4 = __toESM(require("node:child_process"), 1);
|
|
|
252640
252839
|
// src/lib/renderReadme.ts
|
|
252641
252840
|
var import_fs_extra13 = __toESM(require_lib(), 1);
|
|
252642
252841
|
var import_node_child_process3 = __toESM(require("node:child_process"), 1);
|
|
252643
|
-
var
|
|
252842
|
+
var import_upath22 = __toESM(require_upath(), 1);
|
|
252644
252843
|
|
|
252645
252844
|
// src/lib/getRepoPackageJson.ts
|
|
252646
252845
|
var import_fs_extra11 = __toESM(require_lib(), 1);
|
|
252647
|
-
var
|
|
252846
|
+
var import_upath20 = __toESM(require_upath(), 1);
|
|
252648
252847
|
async function getRepoPackageJson() {
|
|
252649
252848
|
return await import_fs_extra11.default.readJson(getRepoPackageJsonPath());
|
|
252650
252849
|
}
|
|
252651
252850
|
__name(getRepoPackageJson, "getRepoPackageJson");
|
|
252652
252851
|
function getRepoPackageJsonPath() {
|
|
252653
|
-
return
|
|
252852
|
+
return import_upath20.default.joinSafe(getRepoRootDirpath(), "package.json");
|
|
252654
252853
|
}
|
|
252655
252854
|
__name(getRepoPackageJsonPath, "getRepoPackageJsonPath");
|
|
252656
252855
|
|
|
@@ -252673,7 +252872,7 @@ __name(arrayTableToMarkdown, "arrayTableToMarkdown");
|
|
|
252673
252872
|
|
|
252674
252873
|
// src/lib/parseLibsTsDocSummaries.ts
|
|
252675
252874
|
var import_fs_extra12 = __toESM(require_lib(), 1);
|
|
252676
|
-
var
|
|
252875
|
+
var import_upath21 = __toESM(require_upath(), 1);
|
|
252677
252876
|
|
|
252678
252877
|
// src/lib/tsdoc.ts
|
|
252679
252878
|
function* tsDocExtractAllComments(code) {
|
|
@@ -252729,14 +252928,14 @@ var parseLibsTsDocSummaries = onetime_default(async () => {
|
|
|
252729
252928
|
);
|
|
252730
252929
|
const exportsNotInDedicatedFileSet = new Set(libs.map(([wsPath, expName]) => wsPath + " => " + expName + ".ts"));
|
|
252731
252930
|
const repoRoot = getRepoRootDirpath();
|
|
252732
|
-
const tsFiles = (await glob(["libs/*/src/**/*.ts"], { absolute: true })).map((fp) =>
|
|
252931
|
+
const tsFiles = (await glob(["libs/*/src/**/*.ts"], { absolute: true })).map((fp) => import_upath21.default.relative(repoRoot, fp)).filter(Boolean);
|
|
252733
252932
|
if (tsFiles.length === 0) {
|
|
252734
252933
|
logError("\u26A0\uFE0F No TypeScript files found.");
|
|
252735
252934
|
return { validSummaries: [], exportsNotInDedicatedFileSet, filesNotDocumented: [], printLogs };
|
|
252736
252935
|
}
|
|
252737
252936
|
const tsFilesAndContent = await Promise.all(
|
|
252738
252937
|
tsFiles.map(async (filepath) => {
|
|
252739
|
-
const filename =
|
|
252938
|
+
const filename = import_upath21.default.trimExt(import_upath21.default.basename(filepath));
|
|
252740
252939
|
const code = await import_fs_extra12.default.readFile(filepath, "utf8");
|
|
252741
252940
|
return { filepath, filename, code };
|
|
252742
252941
|
})
|
|
@@ -252822,7 +253021,7 @@ async function renderLibsExportedModules() {
|
|
|
252822
253021
|
}
|
|
252823
253022
|
librarySummaries.get(libName).push({
|
|
252824
253023
|
fileName,
|
|
252825
|
-
functionName:
|
|
253024
|
+
functionName: import_upath22.default.basename(fileName),
|
|
252826
253025
|
summary: summary || "No description available"
|
|
252827
253026
|
});
|
|
252828
253027
|
} catch {
|
|
@@ -252912,32 +253111,32 @@ function build_readme() {
|
|
|
252912
253111
|
__name(build_readme, "build_readme");
|
|
252913
253112
|
|
|
252914
253113
|
// src/lib/buildLibsWorkspace.ts
|
|
252915
|
-
var
|
|
253114
|
+
var import_upath26 = __toESM(require_upath(), 1);
|
|
252916
253115
|
var import_fs_extra17 = __toESM(require_lib(), 1);
|
|
252917
253116
|
|
|
252918
253117
|
// src/lib/buildFile.ts
|
|
252919
253118
|
var esbuild2 = __toESM(require("esbuild"), 1);
|
|
252920
|
-
var
|
|
253119
|
+
var import_upath24 = __toESM(require_upath(), 1);
|
|
252921
253120
|
var import_fs_extra15 = __toESM(require_lib(), 1);
|
|
252922
253121
|
var import_node_child_process5 = __toESM(require("node:child_process"), 1);
|
|
252923
253122
|
|
|
252924
253123
|
// src/lib/relativeImportPath.ts
|
|
252925
|
-
var
|
|
253124
|
+
var import_upath23 = __toESM(require_upath(), 1);
|
|
252926
253125
|
function relativeImportPath(path7, filepathToImport) {
|
|
252927
|
-
path7 =
|
|
252928
|
-
path7 =
|
|
252929
|
-
filepathToImport =
|
|
252930
|
-
const relative =
|
|
253126
|
+
path7 = import_upath23.default.resolve(path7);
|
|
253127
|
+
path7 = import_upath23.default.basename(path7).includes(".") ? import_upath23.default.dirname(path7) : path7;
|
|
253128
|
+
filepathToImport = import_upath23.default.resolve(filepathToImport).replace(/([/]?index)?[.]m?tsx?$/i, "");
|
|
253129
|
+
const relative = import_upath23.default.relative(path7, filepathToImport);
|
|
252931
253130
|
return relative.startsWith(".") ? relative : `./${relative}`;
|
|
252932
253131
|
}
|
|
252933
253132
|
__name(relativeImportPath, "relativeImportPath");
|
|
252934
253133
|
|
|
252935
253134
|
// src/lib/buildFile.ts
|
|
252936
253135
|
var import_meta3 = {};
|
|
252937
|
-
var
|
|
253136
|
+
var cwd2 = process.cwd();
|
|
252938
253137
|
async function buildFile(filepath, outfile, tsconfig, optionsOverride = {}) {
|
|
252939
|
-
const parsed =
|
|
252940
|
-
const outfileTemp =
|
|
253138
|
+
const parsed = import_upath24.default.parse(outfile);
|
|
253139
|
+
const outfileTemp = import_upath24.default.joinSafe(parsed.dir, parsed.name + "-temp" + import_upath24.default.extname(outfile));
|
|
252941
253140
|
const result = await esbuild2.build({
|
|
252942
253141
|
entryPoints: [filepath],
|
|
252943
253142
|
bundle: true,
|
|
@@ -252957,7 +253156,7 @@ async function buildFile(filepath, outfile, tsconfig, optionsOverride = {}) {
|
|
|
252957
253156
|
...optionsOverride
|
|
252958
253157
|
});
|
|
252959
253158
|
process.chdir(getRepoRootDirpath());
|
|
252960
|
-
if (
|
|
253159
|
+
if (import_upath24.default.basename(filepath) !== "main.ts") {
|
|
252961
253160
|
const currentFile = typeof import_meta3 !== "undefined" && import_meta3.filename || typeof __filename !== "undefined" && __filename || "";
|
|
252962
253161
|
const importPath = relativeImportPath(currentFile, outfileTemp);
|
|
252963
253162
|
const loadedBuiltModule = await import(importPath);
|
|
@@ -252969,7 +253168,7 @@ async function buildFile(filepath, outfile, tsconfig, optionsOverride = {}) {
|
|
|
252969
253168
|
process.exit(1);
|
|
252970
253169
|
}
|
|
252971
253170
|
}
|
|
252972
|
-
process.chdir(
|
|
253171
|
+
process.chdir(cwd2);
|
|
252973
253172
|
await import_fs_extra15.default.remove(outfile);
|
|
252974
253173
|
await import_fs_extra15.default.rename(outfileTemp, outfile);
|
|
252975
253174
|
await import_fs_extra15.default.remove(outfile + ".map");
|
|
@@ -252990,19 +253189,19 @@ async function buildStats(outfile) {
|
|
|
252990
253189
|
__name(buildStats, "buildStats");
|
|
252991
253190
|
|
|
252992
253191
|
// src/lib/getWsPaths.ts
|
|
252993
|
-
var
|
|
253192
|
+
var import_upath25 = __toESM(require_upath(), 1);
|
|
252994
253193
|
function getWsPaths(importMetaDirname) {
|
|
252995
|
-
importMetaDirname =
|
|
252996
|
-
const wsDirname =
|
|
252997
|
-
const tsconfig =
|
|
252998
|
-
const pkg =
|
|
252999
|
-
const srcDir =
|
|
253194
|
+
importMetaDirname = import_upath25.default.normalizeSafe(importMetaDirname);
|
|
253195
|
+
const wsDirname = import_upath25.default.basename(importMetaDirname);
|
|
253196
|
+
const tsconfig = import_upath25.default.joinSafe(importMetaDirname, "tsconfig.json");
|
|
253197
|
+
const pkg = import_upath25.default.joinSafe(importMetaDirname, "package.json");
|
|
253198
|
+
const srcDir = import_upath25.default.joinSafe(importMetaDirname, "src");
|
|
253000
253199
|
const repoRootDir = getRepoRootDirpath();
|
|
253001
|
-
const distDir =
|
|
253002
|
-
const indexTs2 =
|
|
253003
|
-
const indexCjs =
|
|
253004
|
-
const indexMjs =
|
|
253005
|
-
const toRelative = /* @__PURE__ */ __name((path7) =>
|
|
253200
|
+
const distDir = import_upath25.default.joinSafe(repoRootDir, ".dist", "libs");
|
|
253201
|
+
const indexTs2 = import_upath25.default.joinSafe(srcDir, "index.ts");
|
|
253202
|
+
const indexCjs = import_upath25.default.joinSafe(distDir, wsDirname + ".cjs");
|
|
253203
|
+
const indexMjs = import_upath25.default.joinSafe(distDir, wsDirname + ".mjs");
|
|
253204
|
+
const toRelative = /* @__PURE__ */ __name((path7) => import_upath25.default.relative(repoRootDir, path7), "toRelative");
|
|
253006
253205
|
return {
|
|
253007
253206
|
wsDir: importMetaDirname,
|
|
253008
253207
|
wsDirname,
|
|
@@ -253021,7 +253220,7 @@ __name(getWsPaths, "getWsPaths");
|
|
|
253021
253220
|
// src/lib/buildLibsWorkspace.ts
|
|
253022
253221
|
async function buildLibsWorkspace(importMetaDirname, options = {}) {
|
|
253023
253222
|
const { debug, ...optionsOverride } = options;
|
|
253024
|
-
importMetaDirname =
|
|
253223
|
+
importMetaDirname = import_upath26.default.normalizeSafe(importMetaDirname);
|
|
253025
253224
|
const wsPaths = getWsPaths(importMetaDirname);
|
|
253026
253225
|
const repoPkg = import_fs_extra17.default.readJsonSync(wsPaths.pkg);
|
|
253027
253226
|
await buildFile(
|
|
@@ -253046,23 +253245,23 @@ async function buildLibsWorkspace(importMetaDirname, options = {}) {
|
|
|
253046
253245
|
__name(buildLibsWorkspace, "buildLibsWorkspace");
|
|
253047
253246
|
|
|
253048
253247
|
// src/commands/build_libs.ts
|
|
253049
|
-
var
|
|
253248
|
+
var import_upath27 = __toESM(require_upath(), 1);
|
|
253050
253249
|
var import_fs_extra18 = __toESM(require_lib(), 1);
|
|
253051
253250
|
function build_libs() {
|
|
253052
253251
|
return new Command("build-libs").alias("bl").description("Build all libs/ workspaces.").argument("[dirnames...]", "libs dirnames. Defaults to all.").option("--debug", "Enable debug output", false).action(async (dirnames, opts) => {
|
|
253053
253252
|
await timer(["build libs", `Building libraries...`], async (log) => {
|
|
253054
253253
|
if (dirnames.length === 0) {
|
|
253055
|
-
dirnames = await import_fs_extra18.default.readdir(
|
|
253254
|
+
dirnames = await import_fs_extra18.default.readdir(import_upath27.default.join(getRepoRootDirpath(), "libs"));
|
|
253056
253255
|
}
|
|
253057
253256
|
for (const dirname of dirnames) {
|
|
253058
|
-
if (!await import_fs_extra18.default.pathExists(
|
|
253257
|
+
if (!await import_fs_extra18.default.pathExists(import_upath27.default.join(getRepoRootDirpath(), "libs", dirname))) {
|
|
253059
253258
|
throw new Error(`Directory does not exist: libs/${dirname}`);
|
|
253060
253259
|
}
|
|
253061
253260
|
}
|
|
253062
253261
|
await forEachAsync(
|
|
253063
253262
|
dirnames,
|
|
253064
253263
|
async (dirname) => {
|
|
253065
|
-
const wsDir =
|
|
253264
|
+
const wsDir = import_upath27.default.join(getRepoRootDirpath(), "libs", dirname);
|
|
253066
253265
|
log.info(`Building ${dirname}...`);
|
|
253067
253266
|
await buildLibsWorkspace(wsDir, { debug: opts.debug });
|
|
253068
253267
|
},
|
|
@@ -253075,18 +253274,18 @@ __name(build_libs, "build_libs");
|
|
|
253075
253274
|
|
|
253076
253275
|
// src/commands/clear_node_modules.ts
|
|
253077
253276
|
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
253078
|
-
var
|
|
253277
|
+
var import_upath28 = __toESM(require_upath(), 1);
|
|
253079
253278
|
var import_node_child_process6 = require("node:child_process");
|
|
253080
253279
|
function clear_node_modules() {
|
|
253081
253280
|
return new Command("clear-node-modules").alias("cnm").description("Completely removes and reinstalls all node_modules and lock files.").action(async () => {
|
|
253082
253281
|
await timer("clear-node-modules", async (log) => {
|
|
253083
|
-
const
|
|
253282
|
+
const root2 = getRepoRootDirpath();
|
|
253084
253283
|
const paths = (await glob([
|
|
253085
253284
|
"{apps,libs,packages}/*/{node_modules,package-lock.json}",
|
|
253086
253285
|
"yarn.lock",
|
|
253087
253286
|
"package-lock.json",
|
|
253088
253287
|
"node_modules"
|
|
253089
|
-
])).map((dp) =>
|
|
253288
|
+
])).map((dp) => import_upath28.default.normalize(dp)).sort();
|
|
253090
253289
|
log.info("Deleting:");
|
|
253091
253290
|
paths.forEach((p, i) => log.info("", i, p));
|
|
253092
253291
|
for (const p of paths.filter((p2) => import_node_fs3.default.existsSync(p2))) {
|
|
@@ -253095,7 +253294,7 @@ function clear_node_modules() {
|
|
|
253095
253294
|
log.info("Clearing yarn cache...");
|
|
253096
253295
|
(0, import_node_child_process6.execSync)("yarn cache clear", {
|
|
253097
253296
|
stdio: "inherit",
|
|
253098
|
-
cwd:
|
|
253297
|
+
cwd: root2
|
|
253099
253298
|
});
|
|
253100
253299
|
});
|
|
253101
253300
|
});
|
|
@@ -253104,11 +253303,11 @@ __name(clear_node_modules, "clear_node_modules");
|
|
|
253104
253303
|
|
|
253105
253304
|
// src/commands/fix_vitest_imports.ts
|
|
253106
253305
|
var import_fs_extra19 = __toESM(require_lib(), 1);
|
|
253107
|
-
var
|
|
253306
|
+
var import_upath29 = __toESM(require_upath(), 1);
|
|
253108
253307
|
function fix_vitest_imports() {
|
|
253109
253308
|
return new Command("fix-vitest-imports").alias("fvi").description("Ensure all test files have necessary Vitest imports.").argument("[glob]", "File glob pattern", "{libs,apps,packages}/*/src/**/*.test.{ts,tsx}").action(async (fileGlob) => {
|
|
253110
253309
|
await timer("clean fix-vitest-imports", async (log) => {
|
|
253111
|
-
const filepaths = globSync(fileGlob, { cwd: process.cwd() }).map((fp) =>
|
|
253310
|
+
const filepaths = globSync(fileGlob, { cwd: process.cwd() }).map((fp) => import_upath29.default.normalizeSafe(fp));
|
|
253112
253311
|
log.info(`Found ${filepaths.length} files matching glob: ${fileGlob}`);
|
|
253113
253312
|
if (filepaths.length === 0) return;
|
|
253114
253313
|
const filesWithCode = filepaths.map((filepath) => {
|
|
@@ -253134,7 +253333,7 @@ ${o.code}`, "utf-8");
|
|
|
253134
253333
|
__name(fix_vitest_imports, "fix_vitest_imports");
|
|
253135
253334
|
|
|
253136
253335
|
// src/commands/fix_index_ts.ts
|
|
253137
|
-
var
|
|
253336
|
+
var import_upath30 = __toESM(require_upath(), 1);
|
|
253138
253337
|
|
|
253139
253338
|
// src/lib/outputFileIfChanged.ts
|
|
253140
253339
|
var import_fs_extra20 = __toESM(require_lib(), 1);
|
|
@@ -253157,17 +253356,22 @@ function fix_index_ts() {
|
|
|
253157
253356
|
return new Command("fix-index-ts").alias("fit").description("Generate barrel export index.ts for a workspace.").argument("[dirnames...]", "Workspace dirnames within libs/*").option("--ignore <dirnames...>", "Workspace dirnames to ignore (relative to repo root)").action(async (dirnames, opts) => {
|
|
253158
253357
|
await timer(["fix-index-ts", "Generating index.ts files for workspaces..."], async (logger) => {
|
|
253159
253358
|
const repoRoot = getRepoRootDirpath();
|
|
253160
|
-
const libWorkspacePaths = (dirnames.length ? dirnames : await import_fs_extra21.default.readdir("libs")).filter((dirname) => !opts.ignore || !opts.ignore.includes(dirname)).map((d) =>
|
|
253359
|
+
const libWorkspacePaths = (dirnames.length ? dirnames : await import_fs_extra21.default.readdir("libs")).filter((dirname) => !opts.ignore || !opts.ignore.includes(dirname)).map((d) => import_upath30.default.joinSafe("libs", d));
|
|
253161
253360
|
await forEachAsync(
|
|
253162
253361
|
libWorkspacePaths,
|
|
253163
253362
|
async (wsPath) => {
|
|
253164
253363
|
const OUTFILE = "src/index.ts";
|
|
253165
253364
|
const TEST_OUTFILE = "src/index.test.ts";
|
|
253166
|
-
const WS_ROOT =
|
|
253167
|
-
const filepaths = (await glob("src/**/*.ts", { cwd: WS_ROOT })).map((fp) =>
|
|
253168
|
-
const exportDirpaths = filepaths.filter((fp) => fp.endsWith("/index.ts") && fp !== OUTFILE).map((fp) =>
|
|
253365
|
+
const WS_ROOT = import_upath30.default.joinSafe(repoRoot, wsPath);
|
|
253366
|
+
const filepaths = (await glob("src/**/*.ts", { cwd: WS_ROOT })).map((fp) => import_upath30.default.normalizeSafe(fp)).filter((fp) => !/[./](test|wip|old|examples?|benchmark|temp|internal)[./]/.test(fp));
|
|
253367
|
+
const exportDirpaths = filepaths.filter((fp) => fp.endsWith("/index.ts") && fp !== OUTFILE).map((fp) => import_upath30.default.dirname(fp)).sort();
|
|
253169
253368
|
const exportFilepaths = filepaths.filter((fp) => !exportDirpaths.some((dp) => fp.startsWith(dp))).filter((fp) => fp !== OUTFILE).map((fp) => fp.replace(/\.ts$/, "")).sort();
|
|
253170
|
-
const
|
|
253369
|
+
const relative = [...exportDirpaths, ...exportFilepaths].map((fp) => fp.replace(/^src/, "."));
|
|
253370
|
+
const lines = relative.flatMap((fp) => `export * from '${fp}'`).concat("").concat(
|
|
253371
|
+
relative.map((fp) => {
|
|
253372
|
+
return `import * as ${import_upath30.default.basename(fp)} from '${fp}'`;
|
|
253373
|
+
})
|
|
253374
|
+
).concat("", `export default { `, ...relative.map((line, i) => ` ...${import_upath30.default.basename(line)},`), `}`);
|
|
253171
253375
|
const testLines = [
|
|
253172
253376
|
`import { describe, expect, it } from 'vitest'`,
|
|
253173
253377
|
`import * as EXPORTS from './index'`,
|
|
@@ -253182,8 +253386,8 @@ function fix_index_ts() {
|
|
|
253182
253386
|
`})`,
|
|
253183
253387
|
``
|
|
253184
253388
|
];
|
|
253185
|
-
await outputFileIfChanged(
|
|
253186
|
-
await outputFileIfChanged(
|
|
253389
|
+
await outputFileIfChanged(import_upath30.default.joinSafe(WS_ROOT, OUTFILE), lines.join("\n"), logger);
|
|
253390
|
+
await outputFileIfChanged(import_upath30.default.joinSafe(WS_ROOT, TEST_OUTFILE), testLines.join("\n"), logger);
|
|
253187
253391
|
},
|
|
253188
253392
|
{ concurrency: 10 }
|
|
253189
253393
|
);
|
|
@@ -253195,11 +253399,11 @@ __name(fix_index_ts, "fix_index_ts");
|
|
|
253195
253399
|
// src/commands/run.ts
|
|
253196
253400
|
var import_node_child_process7 = __toESM(require("node:child_process"), 1);
|
|
253197
253401
|
var import_fs_extra22 = __toESM(require_lib(), 1);
|
|
253198
|
-
var
|
|
253402
|
+
var import_upath31 = __toESM(require_upath(), 1);
|
|
253199
253403
|
function run() {
|
|
253200
253404
|
return new Command("run").alias("r").description("Compile and run a file. Supports .ts, .test.ts, .js, .mjs, .cjs, .ps1").argument("<filepath>", "Path to file to run").argument("[args...]", "Additional arguments to pass to the script").allowUnknownOption(true).action(async (filepath, args) => {
|
|
253201
|
-
const
|
|
253202
|
-
const relative =
|
|
253405
|
+
const root2 = getRepoRootDirpath();
|
|
253406
|
+
const relative = import_upath31.default.isAbsolute(filepath) ? import_upath31.default.relative(root2, filepath) : import_upath31.default.normalizeSafe(filepath);
|
|
253203
253407
|
if (!filepath) {
|
|
253204
253408
|
console.error("no filepath argument provided");
|
|
253205
253409
|
process.exit(1);
|
|
@@ -253207,21 +253411,21 @@ function run() {
|
|
|
253207
253411
|
if (filepath.endsWith(".test.ts")) {
|
|
253208
253412
|
import_node_child_process7.default.execSync(`yarn vitest --config vitest.config.js --run ${relative}`, {
|
|
253209
253413
|
stdio: "inherit",
|
|
253210
|
-
cwd:
|
|
253414
|
+
cwd: root2
|
|
253211
253415
|
});
|
|
253212
253416
|
process.exit(0);
|
|
253213
253417
|
}
|
|
253214
253418
|
if (filepath.endsWith(".mjs") || filepath.endsWith(".cjs") || filepath.endsWith(".js")) {
|
|
253215
253419
|
import_node_child_process7.default.execSync(`node ${relative}`, {
|
|
253216
253420
|
stdio: "inherit",
|
|
253217
|
-
cwd:
|
|
253421
|
+
cwd: root2
|
|
253218
253422
|
});
|
|
253219
253423
|
process.exit(0);
|
|
253220
253424
|
}
|
|
253221
253425
|
if (filepath.endsWith(".ps1")) {
|
|
253222
253426
|
import_node_child_process7.default.execSync(`./${relative}`, {
|
|
253223
253427
|
stdio: "inherit",
|
|
253224
|
-
cwd:
|
|
253428
|
+
cwd: root2
|
|
253225
253429
|
});
|
|
253226
253430
|
process.exit(0);
|
|
253227
253431
|
}
|
|
@@ -253254,7 +253458,7 @@ enablePrettyStackTrace()`;
|
|
|
253254
253458
|
].map((r) => `-r ${r}`).join(" ");
|
|
253255
253459
|
import_node_child_process7.default.execSync(`tsx ${requires} ${relative} ${args.join(" ")}`, {
|
|
253256
253460
|
stdio: "inherit",
|
|
253257
|
-
cwd:
|
|
253461
|
+
cwd: root2
|
|
253258
253462
|
});
|
|
253259
253463
|
} finally {
|
|
253260
253464
|
if (changedSourceFile) {
|
|
@@ -253269,15 +253473,15 @@ var import_node_child_process8 = require("node:child_process");
|
|
|
253269
253473
|
|
|
253270
253474
|
// src/lib/workspaces.ts
|
|
253271
253475
|
var import_fs_extra23 = __toESM(require_lib(), 1);
|
|
253272
|
-
var
|
|
253476
|
+
var import_upath32 = __toESM(require_upath(), 1);
|
|
253273
253477
|
async function getAllWorkspacePaths() {
|
|
253274
253478
|
const pkg = await getRepoPackageJson();
|
|
253275
|
-
return (await Promise.all(pkg.workspaces.map((pattern) => glob(pattern)))).flat().map((fp) =>
|
|
253479
|
+
return (await Promise.all(pkg.workspaces.map((pattern) => glob(pattern)))).flat().map((fp) => import_upath32.default.normalizeSafe(fp));
|
|
253276
253480
|
}
|
|
253277
253481
|
__name(getAllWorkspacePaths, "getAllWorkspacePaths");
|
|
253278
253482
|
async function getAllWorkspacePackageJsonPaths() {
|
|
253279
253483
|
const paths = await getAllWorkspacePaths();
|
|
253280
|
-
return paths.map((p) =>
|
|
253484
|
+
return paths.map((p) => import_upath32.default.join(p, "package.json"));
|
|
253281
253485
|
}
|
|
253282
253486
|
__name(getAllWorkspacePackageJsonPaths, "getAllWorkspacePackageJsonPaths");
|
|
253283
253487
|
async function getAllWorkspacePackageJsons() {
|
|
@@ -253312,7 +253516,7 @@ __name(exec2, "exec");
|
|
|
253312
253516
|
|
|
253313
253517
|
// src/commands/create_workspace.ts
|
|
253314
253518
|
var import_fs_extra24 = __toESM(require_lib(), 1);
|
|
253315
|
-
var
|
|
253519
|
+
var import_upath33 = __toESM(require_upath(), 1);
|
|
253316
253520
|
|
|
253317
253521
|
// src/lib/cliExec.ts
|
|
253318
253522
|
var import_node_child_process9 = require("node:child_process");
|
|
@@ -253336,15 +253540,15 @@ function create_libs_workspace() {
|
|
|
253336
253540
|
}
|
|
253337
253541
|
__name(create_libs_workspace, "create_libs_workspace");
|
|
253338
253542
|
function action(workspaceName, options = {}) {
|
|
253339
|
-
const CWD =
|
|
253340
|
-
const rootPath =
|
|
253341
|
-
const srcPath =
|
|
253342
|
-
const eslintConfigJsPath =
|
|
253343
|
-
const packageJsonPath =
|
|
253344
|
-
const esbuildMjsPath =
|
|
253345
|
-
const readmeMdPath =
|
|
253346
|
-
const tsconfigJsonPath =
|
|
253347
|
-
const indexTsPath =
|
|
253543
|
+
const CWD = import_upath33.default.normalize(process.cwd());
|
|
253544
|
+
const rootPath = import_upath33.default.join(CWD, "libs", workspaceName);
|
|
253545
|
+
const srcPath = import_upath33.default.join(rootPath, "src");
|
|
253546
|
+
const eslintConfigJsPath = import_upath33.default.join(rootPath, "eslint.config.mjs");
|
|
253547
|
+
const packageJsonPath = import_upath33.default.join(rootPath, "package.json");
|
|
253548
|
+
const esbuildMjsPath = import_upath33.default.join(rootPath, "esbuild.mjs");
|
|
253549
|
+
const readmeMdPath = import_upath33.default.join(rootPath, "README.md");
|
|
253550
|
+
const tsconfigJsonPath = import_upath33.default.join(rootPath, "tsconfig.json");
|
|
253551
|
+
const indexTsPath = import_upath33.default.join(srcPath, "index.ts");
|
|
253348
253552
|
const repoRootPackageJson = import_fs_extra24.default.readJsonSync(repoRootPackageJsonPath);
|
|
253349
253553
|
const repoScope = repoRootPackageJson.name;
|
|
253350
253554
|
const scopedLibraryName = `@${repoScope}/${workspaceName}`;
|
|
@@ -253406,12 +253610,12 @@ __name(missing_tsdoc_files, "missing_tsdoc_files");
|
|
|
253406
253610
|
var import_fs_extra25 = __toESM(require_lib(), 1);
|
|
253407
253611
|
|
|
253408
253612
|
// src/lib/getEmptyWsFiles.ts
|
|
253409
|
-
var
|
|
253613
|
+
var import_upath34 = __toESM(require_upath(), 1);
|
|
253410
253614
|
async function getEmptyWsFiles() {
|
|
253411
253615
|
return (await glob("{libs,apps}/**/*", { withFileTypes: true, stat: true })).filter((d) => {
|
|
253412
253616
|
return d.isFile() && d.size === 0;
|
|
253413
253617
|
}).map((d) => {
|
|
253414
|
-
return
|
|
253618
|
+
return import_upath34.default.relative(process.cwd(), import_upath34.default.joinSafe(d.parentPath, d.name));
|
|
253415
253619
|
});
|
|
253416
253620
|
}
|
|
253417
253621
|
__name(getEmptyWsFiles, "getEmptyWsFiles");
|