@kubb/ast 5.0.0-beta.44 → 5.0.0-beta.46

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.cjs CHANGED
@@ -1465,7 +1465,7 @@ function createFile(input) {
1465
1465
  if (!extname) throw new Error(`No extname found for ${input.baseName}`);
1466
1466
  const source = (input.sources ?? []).flatMap((item) => item.nodes ?? []).map((node) => extractStringsFromNodes([node])).filter(Boolean).join("\n\n");
1467
1467
  const resolvedExports = input.exports?.length ? combineExports(input.exports) : [];
1468
- const resolvedImports = input.imports?.length ? combineImports(input.imports, resolvedExports, source || void 0) : [];
1468
+ const resolvedImports = (input.imports?.length ? combineImports(input.imports, resolvedExports, source || void 0) : []).filter((imp) => imp.path !== input.path);
1469
1469
  const resolvedSources = input.sources?.length ? combineSources(input.sources) : [];
1470
1470
  return {
1471
1471
  kind: "File",