@xylabs/ts-scripts-yarn3 7.4.3 → 7.4.4
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/checkPackage/checkPackage.mjs +3 -2
- package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -1
- package/dist/actions/deplint/checkPackage/index.mjs +3 -2
- package/dist/actions/deplint/checkPackage/index.mjs.map +1 -1
- package/dist/actions/deplint/deplint.mjs +3 -2
- package/dist/actions/deplint/deplint.mjs.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +3 -2
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -1
- package/dist/actions/deplint/getImportsFromFile.mjs +3 -2
- package/dist/actions/deplint/getImportsFromFile.mjs.map +1 -1
- package/dist/actions/deplint/index.mjs +3 -2
- package/dist/actions/deplint/index.mjs.map +1 -1
- package/dist/actions/index.mjs +3 -2
- package/dist/actions/index.mjs.map +1 -1
- package/dist/bin/xy.mjs +3 -2
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +3 -2
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +3 -2
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +3 -2
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +2 -2
package/dist/xy/index.mjs
CHANGED
|
@@ -747,8 +747,9 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
|
|
|
747
747
|
}
|
|
748
748
|
visit(sourceFile);
|
|
749
749
|
const importsStartsWithExcludes = [".", "#", "node:"];
|
|
750
|
-
const
|
|
751
|
-
const
|
|
750
|
+
const isValidImport = (imp) => !importsStartsWithExcludes.some((exc) => imp.startsWith(exc)) && !imp.includes("*") && !imp.includes("!");
|
|
751
|
+
const cleanedImports = imports.filter(isValidImport).map(getBasePackageName);
|
|
752
|
+
const cleanedTypeImports = typeImports.filter(isValidImport).map(getBasePackageName);
|
|
752
753
|
for (const imp of cleanedImports) {
|
|
753
754
|
importPaths[imp] = importPaths[imp] ?? [];
|
|
754
755
|
importPaths[imp].push(filePath);
|