Skip to content

Commit

Permalink
Run experimentalDts only once
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Oct 18, 2024
1 parent 9cc86d6 commit 2e0334b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export async function build(_options: Options) {
)
}

experimentalDtsTask()
await experimentalDtsTask()

if (options.dts) {
await new Promise<void>((resolve, reject) => {
Expand Down Expand Up @@ -358,8 +358,6 @@ export async function build(_options: Options) {
}),
])

experimentalDtsTask()

if (options.onSuccess) {
if (typeof options.onSuccess === 'function') {
onSuccessCleanup = await options.onSuccess()
Expand Down

0 comments on commit 2e0334b

Please sign in to comment.