Skip to content

Commit

Permalink
fix: run experimentalDts only once (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 authored Oct 26, 2024
1 parent 21b1193 commit fddd451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export async function build(_options: Options) {
)
}

experimentalDtsTask()
await experimentalDtsTask()

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

experimentalDtsTask()

if (options.onSuccess) {
if (typeof options.onSuccess === 'function') {
onSuccessCleanup = await options.onSuccess()
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const convertArrayEntriesToObjectEntries = (arrayOfEntries: string[]) => {
/**
* Resolves and standardizes entry paths into an object format. If the provided
* entry is a string or an array of strings, it resolves any potential glob
* patterns amd converts the result into an entry object. If the input is
* patterns and converts the result into an entry object. If the input is
* already an object, it is returned as-is.
*
* @example
Expand Down

0 comments on commit fddd451

Please sign in to comment.