Skip to content

Commit fddd451

Browse files
authoredOct 26, 2024··
fix: run experimentalDts only once (#1236)
1 parent 21b1193 commit fddd451

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎src/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export async function build(_options: Options) {
208208
)
209209
}
210210

211-
experimentalDtsTask()
211+
await experimentalDtsTask()
212212

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

349-
experimentalDtsTask()
350-
351349
if (options.onSuccess) {
352350
if (typeof options.onSuccess === 'function') {
353351
onSuccessCleanup = await options.onSuccess()

‎src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ const convertArrayEntriesToObjectEntries = (arrayOfEntries: string[]) => {
322322
/**
323323
* Resolves and standardizes entry paths into an object format. If the provided
324324
* entry is a string or an array of strings, it resolves any potential glob
325-
* patterns amd converts the result into an entry object. If the input is
325+
* patterns and converts the result into an entry object. If the input is
326326
* already an object, it is returned as-is.
327327
*
328328
* @example

0 commit comments

Comments
 (0)