@xylabs/ts-scripts-yarn3 6.4.1 → 6.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deplint.mjs +2 -1
- package/dist/actions/deplint.mjs.map +1 -1
- package/dist/actions/index.mjs +2 -1
- package/dist/actions/index.mjs.map +1 -1
- package/dist/bin/xy.mjs +2 -1
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +2 -1
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +2 -1
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +2 -1
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -793,7 +793,8 @@ function getImportsFromFile(filePath, importPaths) {
|
|
|
793
793
|
ts.forEachChild(node, visit);
|
|
794
794
|
}
|
|
795
795
|
visit(sourceFile);
|
|
796
|
-
const
|
|
796
|
+
const importsStartsWithExcludes = [".", "#", "node:", "@types/"];
|
|
797
|
+
const cleanedImports = imports.filter((imp) => !importsStartsWithExcludes.some((exc) => imp.startsWith(exc))).map(getBasePackageName);
|
|
797
798
|
for (const imp of cleanedImports) {
|
|
798
799
|
importPaths[imp] = importPaths[imp] || [];
|
|
799
800
|
importPaths[imp].push(filePath);
|