From 7a2d5ce096a5c5e084a68033f1e8a19d0454b70e Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Fri, 18 Oct 2024 15:54:40 -0500 Subject: [PATCH] Run `experimentalDts` only once --- src/index.ts | 4 +--- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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