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