diff --git a/scripts/tools/dualPackageSupport.ts b/scripts/tools/dualPackageSupport.ts index da19e8cc..5d2eb611 100644 --- a/scripts/tools/dualPackageSupport.ts +++ b/scripts/tools/dualPackageSupport.ts @@ -36,7 +36,7 @@ const isSupportModuleType = (text: string | undefined): text is SupportModuleTyp if (!text) { return false; } - return ["node", "browser", "require", "import", "default"].includes(text); + return ["node", "browser", "require", "import", "default", "types"].includes(text); }; const trimExtension = (p: string): string => {