diff --git a/src/index.ts b/src/index.ts index 85a6ea041..7b60cf8eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -208,7 +208,7 @@ export async function build(_options: Options) { ) } - experimentalDtsTask() + await experimentalDtsTask() if (options.dts) { await new Promise((resolve, reject) => { @@ -346,8 +346,6 @@ export async function build(_options: Options) { }), ]) - experimentalDtsTask() - if (options.onSuccess) { if (typeof options.onSuccess === 'function') { onSuccessCleanup = await options.onSuccess() diff --git a/src/utils.ts b/src/utils.ts index e69cd3ad7..5480f0f61 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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