From 69ab80bab75fb1779f401a2e6a910f3eb281ab51 Mon Sep 17 00:00:00 2001 From: Nadav Ami Date: Wed, 9 Aug 2023 09:53:14 -0700 Subject: [PATCH] fix: export ts types from detect-locale --- packages/detect-locale/package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/detect-locale/package.json b/packages/detect-locale/package.json index 7827dacab..91879b66c 100644 --- a/packages/detect-locale/package.json +++ b/packages/detect-locale/package.json @@ -36,8 +36,14 @@ }, "exports": { ".": { - "require": "./dist/index.cjs", - "import": "./dist/index.mjs" + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.cjs" + }, + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + } }, "./package.json": "./package.json" },