@xylabs/ts-scripts-yarn3 7.4.8 → 7.4.9

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.
@@ -1827,7 +1827,13 @@ var packageCompileTsc = (platform, entries, srcDir = "src", outDir = "dist", com
1827
1827
  );
1828
1828
  console.error(formattedDiagnostics);
1829
1829
  }
1830
- program.emit();
1830
+ const nonEmitPatterns = [".stories.", "/stories/", ".spec.", "/spec/", ".example."];
1831
+ program.emit(void 0, (fileName, text, writeByteOrderMark) => {
1832
+ if (nonEmitPatterns.some((pattern) => fileName.includes(pattern))) {
1833
+ return;
1834
+ }
1835
+ ts2.sys.writeFile(fileName, text, writeByteOrderMark);
1836
+ });
1831
1837
  return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
1832
1838
  }
1833
1839
  return 0;