Skip to content

Commit

Permalink
fix(cli): fix the removal of type definitions by export-dynamic. (j…
Browse files Browse the repository at this point in the history
…anus-idp#1810)

fix(cli): fix the removal of `dist/*.d.ts` files by `export-dynamic`.

Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal authored Jun 12, 2024
1 parent a3b416d commit 8472d91
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ export async function backend(
// Remove the `dist` folder of the original plugin root folder and rebuild it,
// since it has been compiled with dynamic-specific settings.
await fs.remove(paths.resolveTarget('dist'));
if (roleInfo.output.includes('types')) {
outputs.add(Output.types);
}
await buildPackage({
outputs,
minify: Boolean(opts.minify),
Expand Down

0 comments on commit 8472d91

Please sign in to comment.