@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/bin/xy.mjs CHANGED
@@ -1153,6 +1153,9 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
1153
1153
  ts.forEachChild(node, visit);
1154
1154
  }
1155
1155
  visit(sourceFile);
1156
+ for (const ref of sourceFile.typeReferenceDirectives) {
1157
+ typeImports.push(ref.fileName);
1158
+ }
1156
1159
  const importsStartsWithExcludes = [".", "#", "node:"];
1157
1160
  const isValidImport = (imp) => !importsStartsWithExcludes.some((exc) => imp.startsWith(exc)) && !imp.includes("*") && !imp.includes("!");
1158
1161
  const cleanedImports = imports.filter(isValidImport).map(getBasePackageName);