@xylabs/ts-scripts-yarn3 7.4.17 → 7.4.18

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
@@ -1224,6 +1224,9 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
1224
1224
  ts.forEachChild(node, visit);
1225
1225
  }
1226
1226
  visit(sourceFile);
1227
+ for (const ref of sourceFile.typeReferenceDirectives) {
1228
+ typeImports.push(ref.fileName);
1229
+ }
1227
1230
  const importsStartsWithExcludes = [".", "#", "node:"];
1228
1231
  const isValidImport = (imp) => !importsStartsWithExcludes.some((exc) => imp.startsWith(exc)) && !imp.includes("*") && !imp.includes("!");
1229
1232
  const cleanedImports = imports.filter(isValidImport).map(getBasePackageName);