Skip to content

Commit

Permalink
chore: apply automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 17, 2024
1 parent 908c0c0 commit c8e8445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builders/rollup/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function rollupBuild(ctx: BuildContext): Promise<void> {
...rollupOptions.plugins,
dts(ctx.options.rollup.dts),
removeShebangPlugin(),
ctx.options.rollup.emitCJS && fixCJSExportTypePlugin()
ctx.options.rollup.emitCJS && fixCJSExportTypePlugin(),
].filter(Boolean);

await ctx.hooks.callHook("rollup:dts:options", ctx, rollupOptions);
Expand Down
2 changes: 1 addition & 1 deletion src/builders/rollup/plugins/cjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function fixCJSExportTypePlugin(): Plugin {
renderChunk(code, info, opts) {
if (
info.type !== "chunk" ||
!info.fileName.endsWith('.d.cts') ||
!info.fileName.endsWith(".d.cts") ||
!info.isEntry ||
info.exports?.length !== 1 ||
info.exports[0] !== "default"
Expand Down

0 comments on commit c8e8445

Please sign in to comment.