@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/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 cleanedImports = imports.filter((imp) => !imp.startsWith(".") && !imp.startsWith("#") && !imp.startsWith("node:")).map(getBasePackageName);
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);