Skip to content

Commit

Permalink
fix: untyped declaration output is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 5, 2024
1 parent b380758 commit 5820182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builders/untyped/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export async function typesBuild(ctx: BuildContext): Promise<void> {
};
await ctx.hooks.callHook("untyped:entry:outputs", ctx, entry, outputs);
for (const output of Object.values(outputs)) {
if (!output) continue; // declaration is optional
await writeFile(
resolve(distDir, output.fileName),
output.contents,
Expand Down

0 comments on commit 5820182

Please sign in to comment.