rolldown-plugin-dts 0.15.8 → 0.15.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.
@@ -264,12 +264,7 @@ function tscEmit(tscOptions) {
264
264
  dtsCode = code;
265
265
  }
266
266
  }, void 0, true, { afterDeclarations: [stripPrivateFields] }, true);
267
- const emitErrors = diagnostics.filter((d) => d.category === ts.DiagnosticCategory.Error);
268
- if (emitErrors.length > 0) return { error: ts.formatDiagnostics(emitErrors, formatHost) };
269
- if (emitSkipped) {
270
- const errors = ts.getPreEmitDiagnostics(program).filter((d) => d.category === ts.DiagnosticCategory.Error);
271
- if (errors.length > 0) return { error: ts.formatDiagnostics(errors, formatHost) };
272
- }
267
+ if (emitSkipped && diagnostics.length) return { error: ts.formatDiagnostics(diagnostics, formatHost) };
273
268
  if (!dtsCode && file.isDeclarationFile) {
274
269
  debug("nothing was emitted. fallback to sourceFile text.");
275
270
  dtsCode = file.getFullText();
@@ -1,5 +1,5 @@
1
1
  import "./context-BG0dlajy.js";
2
- import { tscEmit } from "./tsc-BLPzoCMq.js";
2
+ import { tscEmit } from "./tsc-BJW5IMTs.js";
3
3
  import process from "node:process";
4
4
  import { createBirpc } from "birpc";
5
5
 
package/dist/tsc.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./context-BG0dlajy.js";
2
- import { tscEmit } from "./tsc-BLPzoCMq.js";
2
+ import { tscEmit } from "./tsc-BJW5IMTs.js";
3
3
 
4
4
  export { tscEmit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "A Rolldown plugin to generate and bundle dts files.",
5
5
  "type": "module",
6
6
  "keywords": [