deslop-js 0.0.15-dev.44dfc04 → 0.0.15-dev.6579200
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/index.cjs +5 -12
- package/dist/index.mjs +5 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3694,7 +3694,7 @@ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
|
|
|
3694
3694
|
const collectSourceFiles = async (config) => {
|
|
3695
3695
|
const extensions = config.includeExtensions.length > 0 ? config.includeExtensions : DEFAULT_EXTENSIONS;
|
|
3696
3696
|
const extensionGlob = extensions.length === 1 ? `**/*${extensions[0]}` : `**/*{${extensions.join(",")}}`;
|
|
3697
|
-
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns]
|
|
3697
|
+
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns];
|
|
3698
3698
|
const absoluteRoot = (0, node_path.resolve)(config.rootDir);
|
|
3699
3699
|
const mainFiles = await (0, fast_glob.default)(extensionGlob, {
|
|
3700
3700
|
cwd: absoluteRoot,
|
|
@@ -3711,7 +3711,7 @@ const collectSourceFiles = async (config) => {
|
|
|
3711
3711
|
dot: true,
|
|
3712
3712
|
onlyFiles: true
|
|
3713
3713
|
}) : [];
|
|
3714
|
-
return [...
|
|
3714
|
+
return [...mainFiles, ...hiddenFiles].sort().map((filePath, fileIndex) => ({
|
|
3715
3715
|
index: fileIndex,
|
|
3716
3716
|
path: filePath
|
|
3717
3717
|
}));
|
|
@@ -7001,16 +7001,9 @@ const isConfigFile = (filePath) => {
|
|
|
7001
7001
|
//#endregion
|
|
7002
7002
|
//#region src/linker/build.ts
|
|
7003
7003
|
const buildDependencyGraph = (inputs) => {
|
|
7004
|
-
const normalizedInputs = inputs.map((input) => ({
|
|
7005
|
-
...input,
|
|
7006
|
-
fileId: {
|
|
7007
|
-
...input.fileId,
|
|
7008
|
-
path: toPosixPath(input.fileId.path)
|
|
7009
|
-
}
|
|
7010
|
-
}));
|
|
7011
7004
|
const fileIdMap = /* @__PURE__ */ new Map();
|
|
7012
|
-
for (const input of
|
|
7013
|
-
const modules =
|
|
7005
|
+
for (const input of inputs) fileIdMap.set(toPosixPath(input.fileId.path), input.fileId.index);
|
|
7006
|
+
const modules = inputs.map((input) => ({
|
|
7014
7007
|
fileId: input.fileId,
|
|
7015
7008
|
imports: input.parsed.imports,
|
|
7016
7009
|
exports: input.parsed.exports,
|
|
@@ -7048,7 +7041,7 @@ const buildDependencyGraph = (inputs) => {
|
|
|
7048
7041
|
if (!existingReverseEdges.includes(sourceIndex)) existingReverseEdges.push(sourceIndex);
|
|
7049
7042
|
} else reverseEdges.set(targetIndex, [sourceIndex]);
|
|
7050
7043
|
};
|
|
7051
|
-
for (const input of
|
|
7044
|
+
for (const input of inputs) {
|
|
7052
7045
|
const sourceIndex = input.fileId.index;
|
|
7053
7046
|
for (const importInfo of input.parsed.imports) {
|
|
7054
7047
|
if (importInfo.isGlob) {
|
package/dist/index.mjs
CHANGED
|
@@ -3663,7 +3663,7 @@ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
|
|
|
3663
3663
|
const collectSourceFiles = async (config) => {
|
|
3664
3664
|
const extensions = config.includeExtensions.length > 0 ? config.includeExtensions : DEFAULT_EXTENSIONS;
|
|
3665
3665
|
const extensionGlob = extensions.length === 1 ? `**/*${extensions[0]}` : `**/*{${extensions.join(",")}}`;
|
|
3666
|
-
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns]
|
|
3666
|
+
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns];
|
|
3667
3667
|
const absoluteRoot = resolve(config.rootDir);
|
|
3668
3668
|
const mainFiles = await fg(extensionGlob, {
|
|
3669
3669
|
cwd: absoluteRoot,
|
|
@@ -3680,7 +3680,7 @@ const collectSourceFiles = async (config) => {
|
|
|
3680
3680
|
dot: true,
|
|
3681
3681
|
onlyFiles: true
|
|
3682
3682
|
}) : [];
|
|
3683
|
-
return [...
|
|
3683
|
+
return [...mainFiles, ...hiddenFiles].sort().map((filePath, fileIndex) => ({
|
|
3684
3684
|
index: fileIndex,
|
|
3685
3685
|
path: filePath
|
|
3686
3686
|
}));
|
|
@@ -6970,16 +6970,9 @@ const isConfigFile = (filePath) => {
|
|
|
6970
6970
|
//#endregion
|
|
6971
6971
|
//#region src/linker/build.ts
|
|
6972
6972
|
const buildDependencyGraph = (inputs) => {
|
|
6973
|
-
const normalizedInputs = inputs.map((input) => ({
|
|
6974
|
-
...input,
|
|
6975
|
-
fileId: {
|
|
6976
|
-
...input.fileId,
|
|
6977
|
-
path: toPosixPath(input.fileId.path)
|
|
6978
|
-
}
|
|
6979
|
-
}));
|
|
6980
6973
|
const fileIdMap = /* @__PURE__ */ new Map();
|
|
6981
|
-
for (const input of
|
|
6982
|
-
const modules =
|
|
6974
|
+
for (const input of inputs) fileIdMap.set(toPosixPath(input.fileId.path), input.fileId.index);
|
|
6975
|
+
const modules = inputs.map((input) => ({
|
|
6983
6976
|
fileId: input.fileId,
|
|
6984
6977
|
imports: input.parsed.imports,
|
|
6985
6978
|
exports: input.parsed.exports,
|
|
@@ -7017,7 +7010,7 @@ const buildDependencyGraph = (inputs) => {
|
|
|
7017
7010
|
if (!existingReverseEdges.includes(sourceIndex)) existingReverseEdges.push(sourceIndex);
|
|
7018
7011
|
} else reverseEdges.set(targetIndex, [sourceIndex]);
|
|
7019
7012
|
};
|
|
7020
|
-
for (const input of
|
|
7013
|
+
for (const input of inputs) {
|
|
7021
7014
|
const sourceIndex = input.fileId.index;
|
|
7022
7015
|
for (const importInfo of input.parsed.imports) {
|
|
7023
7016
|
if (importInfo.isGlob) {
|