From d68f35247a86810f9cd5a1ba24508c6ff885e9db Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Tue, 24 Mar 2026 13:40:38 -0700 Subject: [PATCH 1/3] Fix path type types in individual packages --- packages/@react-aria/actiongroup/package.json | 7 ++----- packages/@react-aria/aria-modal-polyfill/package.json | 7 ++----- packages/@react-aria/autocomplete/package.json | 7 ++----- packages/@react-aria/breadcrumbs/package.json | 7 ++----- packages/@react-aria/button/package.json | 7 ++----- packages/@react-aria/calendar/package.json | 7 ++----- packages/@react-aria/checkbox/package.json | 7 ++----- packages/@react-aria/collections/package.json | 7 ++----- packages/@react-aria/color/package.json | 7 ++----- packages/@react-aria/combobox/package.json | 7 ++----- packages/@react-aria/datepicker/package.json | 7 ++----- packages/@react-aria/dialog/package.json | 7 ++----- packages/@react-aria/disclosure/package.json | 7 ++----- packages/@react-aria/dnd/package.json | 7 ++----- packages/@react-aria/focus/package.json | 7 ++----- packages/@react-aria/form/package.json | 7 ++----- packages/@react-aria/grid/package.json | 7 ++----- packages/@react-aria/gridlist/package.json | 7 ++----- packages/@react-aria/i18n/package.json | 7 ++----- packages/@react-aria/interactions/package.json | 7 ++----- packages/@react-aria/label/package.json | 7 ++----- packages/@react-aria/landmark/package.json | 7 ++----- packages/@react-aria/link/package.json | 7 ++----- packages/@react-aria/listbox/package.json | 7 ++----- packages/@react-aria/live-announcer/package.json | 7 ++----- packages/@react-aria/menu/package.json | 7 ++----- packages/@react-aria/meter/package.json | 7 ++----- packages/@react-aria/numberfield/package.json | 7 ++----- packages/@react-aria/overlays/package.json | 7 ++----- packages/@react-aria/progress/package.json | 7 ++----- packages/@react-aria/radio/package.json | 7 ++----- packages/@react-aria/searchfield/package.json | 7 ++----- packages/@react-aria/select/package.json | 7 ++----- packages/@react-aria/selection/package.json | 7 ++----- packages/@react-aria/separator/package.json | 7 ++----- packages/@react-aria/slider/package.json | 7 ++----- packages/@react-aria/spinbutton/package.json | 7 ++----- packages/@react-aria/ssr/package.json | 7 ++----- packages/@react-aria/steplist/package.json | 7 ++----- packages/@react-aria/switch/package.json | 7 ++----- packages/@react-aria/table/package.json | 7 ++----- packages/@react-aria/tabs/package.json | 7 ++----- packages/@react-aria/tag/package.json | 7 ++----- packages/@react-aria/textfield/package.json | 7 ++----- packages/@react-aria/toast/package.json | 7 ++----- packages/@react-aria/toggle/package.json | 7 ++----- packages/@react-aria/toolbar/package.json | 7 ++----- packages/@react-aria/tooltip/package.json | 7 ++----- packages/@react-aria/tree/package.json | 7 ++----- packages/@react-aria/utils/package.json | 7 ++----- packages/@react-aria/virtualizer/package.json | 7 ++----- packages/@react-aria/visually-hidden/package.json | 7 ++----- packages/@react-spectrum/accordion/package.json | 7 ++----- packages/@react-spectrum/actionbar/package.json | 7 ++----- packages/@react-spectrum/actiongroup/package.json | 7 ++----- packages/@react-spectrum/autocomplete/package.json | 7 ++----- packages/@react-spectrum/avatar/package.json | 7 ++----- packages/@react-spectrum/badge/package.json | 7 ++----- packages/@react-spectrum/breadcrumbs/package.json | 7 ++----- packages/@react-spectrum/button/package.json | 7 ++----- packages/@react-spectrum/buttongroup/package.json | 7 ++----- packages/@react-spectrum/calendar/package.json | 7 ++----- packages/@react-spectrum/card/package.json | 7 ++----- packages/@react-spectrum/checkbox/package.json | 7 ++----- packages/@react-spectrum/color/package.json | 7 ++----- packages/@react-spectrum/combobox/package.json | 7 ++----- packages/@react-spectrum/contextualhelp/package.json | 7 ++----- packages/@react-spectrum/datepicker/package.json | 7 ++----- packages/@react-spectrum/dialog/package.json | 7 ++----- packages/@react-spectrum/divider/package.json | 7 ++----- packages/@react-spectrum/dnd/package.json | 7 ++----- packages/@react-spectrum/dropzone/package.json | 7 ++----- packages/@react-spectrum/filetrigger/package.json | 7 ++----- packages/@react-spectrum/form/package.json | 7 ++----- packages/@react-spectrum/icon/package.json | 7 ++----- packages/@react-spectrum/illustratedmessage/package.json | 7 ++----- packages/@react-spectrum/image/package.json | 7 ++----- packages/@react-spectrum/inlinealert/package.json | 7 ++----- packages/@react-spectrum/label/package.json | 7 ++----- packages/@react-spectrum/labeledvalue/package.json | 7 ++----- packages/@react-spectrum/layout/package.json | 7 ++----- packages/@react-spectrum/link/package.json | 7 ++----- packages/@react-spectrum/list/package.json | 7 ++----- packages/@react-spectrum/listbox/package.json | 7 ++----- packages/@react-spectrum/menu/package.json | 7 ++----- packages/@react-spectrum/meter/package.json | 7 ++----- packages/@react-spectrum/numberfield/package.json | 7 ++----- packages/@react-spectrum/overlays/package.json | 7 ++----- packages/@react-spectrum/picker/package.json | 7 ++----- packages/@react-spectrum/progress/package.json | 7 ++----- packages/@react-spectrum/provider/package.json | 7 ++----- packages/@react-spectrum/radio/package.json | 7 ++----- packages/@react-spectrum/searchfield/package.json | 7 ++----- packages/@react-spectrum/slider/package.json | 7 ++----- packages/@react-spectrum/statuslight/package.json | 7 ++----- packages/@react-spectrum/steplist/package.json | 7 ++----- packages/@react-spectrum/switch/package.json | 7 ++----- packages/@react-spectrum/table/package.json | 7 ++----- packages/@react-spectrum/tabs/package.json | 7 ++----- packages/@react-spectrum/tag/package.json | 7 ++----- packages/@react-spectrum/text/package.json | 7 ++----- packages/@react-spectrum/textfield/package.json | 7 ++----- packages/@react-spectrum/theme-dark/package.json | 7 ++----- packages/@react-spectrum/theme-default/package.json | 7 ++----- packages/@react-spectrum/theme-express/package.json | 7 ++----- packages/@react-spectrum/theme-light/package.json | 7 ++----- packages/@react-spectrum/toast/package.json | 7 ++----- packages/@react-spectrum/tooltip/package.json | 7 ++----- packages/@react-spectrum/tree/package.json | 7 ++----- packages/@react-spectrum/utils/package.json | 7 ++----- packages/@react-spectrum/view/package.json | 7 ++----- packages/@react-spectrum/well/package.json | 7 ++----- packages/@react-stately/autocomplete/package.json | 7 ++----- packages/@react-stately/calendar/package.json | 7 ++----- packages/@react-stately/checkbox/package.json | 7 ++----- packages/@react-stately/collections/package.json | 7 ++----- packages/@react-stately/color/package.json | 7 ++----- packages/@react-stately/combobox/package.json | 7 ++----- packages/@react-stately/data/package.json | 7 ++----- packages/@react-stately/datepicker/package.json | 7 ++----- packages/@react-stately/disclosure/package.json | 7 ++----- packages/@react-stately/dnd/package.json | 7 ++----- packages/@react-stately/flags/package.json | 7 ++----- packages/@react-stately/form/package.json | 7 ++----- packages/@react-stately/grid/package.json | 7 ++----- packages/@react-stately/layout/package.json | 7 ++----- packages/@react-stately/list/package.json | 7 ++----- packages/@react-stately/menu/package.json | 7 ++----- packages/@react-stately/numberfield/package.json | 7 ++----- packages/@react-stately/overlays/package.json | 7 ++----- packages/@react-stately/radio/package.json | 7 ++----- packages/@react-stately/searchfield/package.json | 7 ++----- packages/@react-stately/select/package.json | 7 ++----- packages/@react-stately/selection/package.json | 7 ++----- packages/@react-stately/slider/package.json | 7 ++----- packages/@react-stately/steplist/package.json | 7 ++----- packages/@react-stately/table/package.json | 7 ++----- packages/@react-stately/tabs/package.json | 7 ++----- packages/@react-stately/toast/package.json | 7 ++----- packages/@react-stately/toggle/package.json | 7 ++----- packages/@react-stately/tooltip/package.json | 7 ++----- packages/@react-stately/tree/package.json | 7 ++----- packages/@react-stately/utils/package.json | 7 ++----- packages/@react-stately/virtualizer/package.json | 7 ++----- 144 files changed, 288 insertions(+), 720 deletions(-) diff --git a/packages/@react-aria/actiongroup/package.json b/packages/@react-aria/actiongroup/package.json index 2b6aa78c8ca..5bddad45879 100644 --- a/packages/@react-aria/actiongroup/package.json +++ b/packages/@react-aria/actiongroup/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/aria-modal-polyfill/package.json b/packages/@react-aria/aria-modal-polyfill/package.json index ac8dd494763..ff545ede12f 100644 --- a/packages/@react-aria/aria-modal-polyfill/package.json +++ b/packages/@react-aria/aria-modal-polyfill/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/autocomplete/package.json b/packages/@react-aria/autocomplete/package.json index f40830552f7..65f95d843c5 100644 --- a/packages/@react-aria/autocomplete/package.json +++ b/packages/@react-aria/autocomplete/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/breadcrumbs/package.json b/packages/@react-aria/breadcrumbs/package.json index 26e0ce9523a..f902c613077 100644 --- a/packages/@react-aria/breadcrumbs/package.json +++ b/packages/@react-aria/breadcrumbs/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/button/package.json b/packages/@react-aria/button/package.json index 9f4a90e1259..f84f0acfd38 100644 --- a/packages/@react-aria/button/package.json +++ b/packages/@react-aria/button/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/calendar/package.json b/packages/@react-aria/calendar/package.json index 932a011b1b1..03a37523f98 100644 --- a/packages/@react-aria/calendar/package.json +++ b/packages/@react-aria/calendar/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/checkbox/package.json b/packages/@react-aria/checkbox/package.json index 606febd23ee..c7fb61e4d64 100644 --- a/packages/@react-aria/checkbox/package.json +++ b/packages/@react-aria/checkbox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/collections/package.json b/packages/@react-aria/collections/package.json index 65ae3a308fb..4cb9d26bc6b 100644 --- a/packages/@react-aria/collections/package.json +++ b/packages/@react-aria/collections/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-aria/color/package.json b/packages/@react-aria/color/package.json index 98f1cdd51c8..3b6c32a2001 100644 --- a/packages/@react-aria/color/package.json +++ b/packages/@react-aria/color/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/combobox/package.json b/packages/@react-aria/combobox/package.json index ef4e149b85f..edfa6b98f87 100644 --- a/packages/@react-aria/combobox/package.json +++ b/packages/@react-aria/combobox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/datepicker/package.json b/packages/@react-aria/datepicker/package.json index 7322bf290ef..4062458a32a 100644 --- a/packages/@react-aria/datepicker/package.json +++ b/packages/@react-aria/datepicker/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/dialog/package.json b/packages/@react-aria/dialog/package.json index fd850591a98..0ba781e6281 100644 --- a/packages/@react-aria/dialog/package.json +++ b/packages/@react-aria/dialog/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/disclosure/package.json b/packages/@react-aria/disclosure/package.json index b77f32ff370..8c55e529b8d 100644 --- a/packages/@react-aria/disclosure/package.json +++ b/packages/@react-aria/disclosure/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/dnd/package.json b/packages/@react-aria/dnd/package.json index a525d87f4e1..2390e9e1576 100644 --- a/packages/@react-aria/dnd/package.json +++ b/packages/@react-aria/dnd/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/focus/package.json b/packages/@react-aria/focus/package.json index fbb09b0c1a0..36e9479267e 100644 --- a/packages/@react-aria/focus/package.json +++ b/packages/@react-aria/focus/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/form/package.json b/packages/@react-aria/form/package.json index 4b0e2ae144d..218b2b359b1 100644 --- a/packages/@react-aria/form/package.json +++ b/packages/@react-aria/form/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-aria/grid/package.json b/packages/@react-aria/grid/package.json index 3a09e2fcf3e..1bf7b5ecefb 100644 --- a/packages/@react-aria/grid/package.json +++ b/packages/@react-aria/grid/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/gridlist/package.json b/packages/@react-aria/gridlist/package.json index 73c16a3c6ee..ea2a1604c49 100644 --- a/packages/@react-aria/gridlist/package.json +++ b/packages/@react-aria/gridlist/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/i18n/package.json b/packages/@react-aria/i18n/package.json index ed03c4aab5e..f61f4ae430f 100644 --- a/packages/@react-aria/i18n/package.json +++ b/packages/@react-aria/i18n/package.json @@ -8,10 +8,7 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, @@ -24,7 +21,7 @@ }, "server-module": "server/index.mjs", "server-main": "server/index.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "targets": { "types": false, diff --git a/packages/@react-aria/interactions/package.json b/packages/@react-aria/interactions/package.json index 2e86db9fc7b..afeeb2aaa2a 100644 --- a/packages/@react-aria/interactions/package.json +++ b/packages/@react-aria/interactions/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/label/package.json b/packages/@react-aria/label/package.json index 6b366c95cb9..91c32e8a67a 100644 --- a/packages/@react-aria/label/package.json +++ b/packages/@react-aria/label/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/landmark/package.json b/packages/@react-aria/landmark/package.json index c258abcc9c8..0a791c7978d 100644 --- a/packages/@react-aria/landmark/package.json +++ b/packages/@react-aria/landmark/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/link/package.json b/packages/@react-aria/link/package.json index ee7caa1f9de..f5a1e6c2056 100644 --- a/packages/@react-aria/link/package.json +++ b/packages/@react-aria/link/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/listbox/package.json b/packages/@react-aria/listbox/package.json index 9e0537eb9b6..8d75a13078f 100644 --- a/packages/@react-aria/listbox/package.json +++ b/packages/@react-aria/listbox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/live-announcer/package.json b/packages/@react-aria/live-announcer/package.json index d685e325387..df032e98efe 100644 --- a/packages/@react-aria/live-announcer/package.json +++ b/packages/@react-aria/live-announcer/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/menu/package.json b/packages/@react-aria/menu/package.json index 8ee52465db1..2ac20364cb8 100644 --- a/packages/@react-aria/menu/package.json +++ b/packages/@react-aria/menu/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/meter/package.json b/packages/@react-aria/meter/package.json index ca3dd8bb2c9..0985b4c0f42 100644 --- a/packages/@react-aria/meter/package.json +++ b/packages/@react-aria/meter/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/numberfield/package.json b/packages/@react-aria/numberfield/package.json index d720e099654..5c37955e2f8 100644 --- a/packages/@react-aria/numberfield/package.json +++ b/packages/@react-aria/numberfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/overlays/package.json b/packages/@react-aria/overlays/package.json index 98af993b757..c51c8fd3228 100644 --- a/packages/@react-aria/overlays/package.json +++ b/packages/@react-aria/overlays/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/progress/package.json b/packages/@react-aria/progress/package.json index 5b2f6fcb1bb..25c02949d2f 100644 --- a/packages/@react-aria/progress/package.json +++ b/packages/@react-aria/progress/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/index.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/radio/package.json b/packages/@react-aria/radio/package.json index 9b4192386c0..3727e9802b3 100644 --- a/packages/@react-aria/radio/package.json +++ b/packages/@react-aria/radio/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/searchfield/package.json b/packages/@react-aria/searchfield/package.json index c5af5a0e5a9..e9c45424ffd 100644 --- a/packages/@react-aria/searchfield/package.json +++ b/packages/@react-aria/searchfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/select/package.json b/packages/@react-aria/select/package.json index 5f1a7c26fd0..e95927a1cef 100644 --- a/packages/@react-aria/select/package.json +++ b/packages/@react-aria/select/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/selection/package.json b/packages/@react-aria/selection/package.json index 9d1721112f4..0d75ddc3db2 100644 --- a/packages/@react-aria/selection/package.json +++ b/packages/@react-aria/selection/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/separator/package.json b/packages/@react-aria/separator/package.json index b3d96908e45..c4358262f3e 100644 --- a/packages/@react-aria/separator/package.json +++ b/packages/@react-aria/separator/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/slider/package.json b/packages/@react-aria/slider/package.json index 9e2bbd6c3e7..6bcb20c99c2 100644 --- a/packages/@react-aria/slider/package.json +++ b/packages/@react-aria/slider/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/spinbutton/package.json b/packages/@react-aria/spinbutton/package.json index cd7e5a29d83..833caacc30f 100644 --- a/packages/@react-aria/spinbutton/package.json +++ b/packages/@react-aria/spinbutton/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/ssr/package.json b/packages/@react-aria/ssr/package.json index f31ac57c687..e76354404d8 100644 --- a/packages/@react-aria/ssr/package.json +++ b/packages/@react-aria/ssr/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/steplist/package.json b/packages/@react-aria/steplist/package.json index 149772dbd6a..3b8e5986a7d 100644 --- a/packages/@react-aria/steplist/package.json +++ b/packages/@react-aria/steplist/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/switch/package.json b/packages/@react-aria/switch/package.json index 4b3f2fd90bd..3761db47fbf 100644 --- a/packages/@react-aria/switch/package.json +++ b/packages/@react-aria/switch/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/table/package.json b/packages/@react-aria/table/package.json index 759df43966c..dfee03d6d30 100644 --- a/packages/@react-aria/table/package.json +++ b/packages/@react-aria/table/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/tabs/package.json b/packages/@react-aria/tabs/package.json index f6f53f1552b..2d972928d9b 100644 --- a/packages/@react-aria/tabs/package.json +++ b/packages/@react-aria/tabs/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/tag/package.json b/packages/@react-aria/tag/package.json index a6262d09325..840643d93d0 100644 --- a/packages/@react-aria/tag/package.json +++ b/packages/@react-aria/tag/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/textfield/package.json b/packages/@react-aria/textfield/package.json index 0a0b3796b8c..2a9fe52c637 100644 --- a/packages/@react-aria/textfield/package.json +++ b/packages/@react-aria/textfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/toast/package.json b/packages/@react-aria/toast/package.json index 389072b9fad..016bc6d91d9 100644 --- a/packages/@react-aria/toast/package.json +++ b/packages/@react-aria/toast/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/toggle/package.json b/packages/@react-aria/toggle/package.json index 95381c20659..eaf14aa1501 100644 --- a/packages/@react-aria/toggle/package.json +++ b/packages/@react-aria/toggle/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/toolbar/package.json b/packages/@react-aria/toolbar/package.json index 65b23e7b117..4041b009f37 100644 --- a/packages/@react-aria/toolbar/package.json +++ b/packages/@react-aria/toolbar/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-aria/tooltip/package.json b/packages/@react-aria/tooltip/package.json index c6dc5b8f6f7..111551d7460 100644 --- a/packages/@react-aria/tooltip/package.json +++ b/packages/@react-aria/tooltip/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/tree/package.json b/packages/@react-aria/tree/package.json index 9119a59a4e1..ce4e338678b 100644 --- a/packages/@react-aria/tree/package.json +++ b/packages/@react-aria/tree/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/utils/package.json b/packages/@react-aria/utils/package.json index 51d5ccc6c59..7f66526824a 100644 --- a/packages/@react-aria/utils/package.json +++ b/packages/@react-aria/utils/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/virtualizer/package.json b/packages/@react-aria/virtualizer/package.json index a2ad3f20b66..198f1a89e89 100644 --- a/packages/@react-aria/virtualizer/package.json +++ b/packages/@react-aria/virtualizer/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-aria/visually-hidden/package.json b/packages/@react-aria/visually-hidden/package.json index 9ca83dbb0be..79483f7127b 100644 --- a/packages/@react-aria/visually-hidden/package.json +++ b/packages/@react-aria/visually-hidden/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/accordion/package.json b/packages/@react-spectrum/accordion/package.json index 65dbe350697..9ae3457a807 100644 --- a/packages/@react-spectrum/accordion/package.json +++ b/packages/@react-spectrum/accordion/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/actionbar/package.json b/packages/@react-spectrum/actionbar/package.json index 411d5340d4b..4368902b570 100644 --- a/packages/@react-spectrum/actionbar/package.json +++ b/packages/@react-spectrum/actionbar/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/actiongroup/package.json b/packages/@react-spectrum/actiongroup/package.json index 1a2c2477a40..b8952884f7e 100644 --- a/packages/@react-spectrum/actiongroup/package.json +++ b/packages/@react-spectrum/actiongroup/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/autocomplete/package.json b/packages/@react-spectrum/autocomplete/package.json index 77fa7480b12..28aa732032c 100644 --- a/packages/@react-spectrum/autocomplete/package.json +++ b/packages/@react-spectrum/autocomplete/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/avatar/package.json b/packages/@react-spectrum/avatar/package.json index 869b1380e37..da9d8b3f6f8 100644 --- a/packages/@react-spectrum/avatar/package.json +++ b/packages/@react-spectrum/avatar/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/badge/package.json b/packages/@react-spectrum/badge/package.json index 435f50a8311..9c13194325a 100644 --- a/packages/@react-spectrum/badge/package.json +++ b/packages/@react-spectrum/badge/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/breadcrumbs/package.json b/packages/@react-spectrum/breadcrumbs/package.json index c13294246a5..d0600d0a434 100644 --- a/packages/@react-spectrum/breadcrumbs/package.json +++ b/packages/@react-spectrum/breadcrumbs/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/button/package.json b/packages/@react-spectrum/button/package.json index c35eb8f5111..bc1af4c8311 100644 --- a/packages/@react-spectrum/button/package.json +++ b/packages/@react-spectrum/button/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/buttongroup/package.json b/packages/@react-spectrum/buttongroup/package.json index e7d28ee9e1d..44952bd02d8 100644 --- a/packages/@react-spectrum/buttongroup/package.json +++ b/packages/@react-spectrum/buttongroup/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/calendar/package.json b/packages/@react-spectrum/calendar/package.json index 381d6c96d78..652a7428f9e 100644 --- a/packages/@react-spectrum/calendar/package.json +++ b/packages/@react-spectrum/calendar/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/card/package.json b/packages/@react-spectrum/card/package.json index 4857574a334..1292af93b3e 100644 --- a/packages/@react-spectrum/card/package.json +++ b/packages/@react-spectrum/card/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/checkbox/package.json b/packages/@react-spectrum/checkbox/package.json index 2a891a57421..4fa7fd33273 100644 --- a/packages/@react-spectrum/checkbox/package.json +++ b/packages/@react-spectrum/checkbox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/color/package.json b/packages/@react-spectrum/color/package.json index c1cbf83ff8e..0e2ae1e11fa 100644 --- a/packages/@react-spectrum/color/package.json +++ b/packages/@react-spectrum/color/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/combobox/package.json b/packages/@react-spectrum/combobox/package.json index a06ecee7672..d0f281940bf 100644 --- a/packages/@react-spectrum/combobox/package.json +++ b/packages/@react-spectrum/combobox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/contextualhelp/package.json b/packages/@react-spectrum/contextualhelp/package.json index 57866bc93fb..5a2ad7f9dd8 100644 --- a/packages/@react-spectrum/contextualhelp/package.json +++ b/packages/@react-spectrum/contextualhelp/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/datepicker/package.json b/packages/@react-spectrum/datepicker/package.json index fbcd31092f6..6eb8fec55d7 100644 --- a/packages/@react-spectrum/datepicker/package.json +++ b/packages/@react-spectrum/datepicker/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/dialog/package.json b/packages/@react-spectrum/dialog/package.json index a6bef926300..fd6e8e9e32d 100644 --- a/packages/@react-spectrum/dialog/package.json +++ b/packages/@react-spectrum/dialog/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/divider/package.json b/packages/@react-spectrum/divider/package.json index 261234487af..b26875c740d 100644 --- a/packages/@react-spectrum/divider/package.json +++ b/packages/@react-spectrum/divider/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/dnd/package.json b/packages/@react-spectrum/dnd/package.json index 624717fa594..0f5539505e8 100644 --- a/packages/@react-spectrum/dnd/package.json +++ b/packages/@react-spectrum/dnd/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/dropzone/package.json b/packages/@react-spectrum/dropzone/package.json index 1a781ecc418..e71d94e7964 100644 --- a/packages/@react-spectrum/dropzone/package.json +++ b/packages/@react-spectrum/dropzone/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/filetrigger/package.json b/packages/@react-spectrum/filetrigger/package.json index 8ffeb891d16..de4a699a9cb 100644 --- a/packages/@react-spectrum/filetrigger/package.json +++ b/packages/@react-spectrum/filetrigger/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/form/package.json b/packages/@react-spectrum/form/package.json index 0c487d4b6cd..3b6d937e09c 100644 --- a/packages/@react-spectrum/form/package.json +++ b/packages/@react-spectrum/form/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/icon/package.json b/packages/@react-spectrum/icon/package.json index bfb644c31dc..33955c93da7 100644 --- a/packages/@react-spectrum/icon/package.json +++ b/packages/@react-spectrum/icon/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/illustratedmessage/package.json b/packages/@react-spectrum/illustratedmessage/package.json index e3cf9fac479..61730e839ad 100644 --- a/packages/@react-spectrum/illustratedmessage/package.json +++ b/packages/@react-spectrum/illustratedmessage/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/image/package.json b/packages/@react-spectrum/image/package.json index 8d6e9d93c0e..cf8a6c70e0a 100644 --- a/packages/@react-spectrum/image/package.json +++ b/packages/@react-spectrum/image/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/inlinealert/package.json b/packages/@react-spectrum/inlinealert/package.json index bbf16a68f8c..00f98544504 100644 --- a/packages/@react-spectrum/inlinealert/package.json +++ b/packages/@react-spectrum/inlinealert/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-spectrum/label/package.json b/packages/@react-spectrum/label/package.json index 63dc321186a..2fc3220b30b 100644 --- a/packages/@react-spectrum/label/package.json +++ b/packages/@react-spectrum/label/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/labeledvalue/package.json b/packages/@react-spectrum/labeledvalue/package.json index f4e3824e000..2147d1410f5 100644 --- a/packages/@react-spectrum/labeledvalue/package.json +++ b/packages/@react-spectrum/labeledvalue/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/layout/package.json b/packages/@react-spectrum/layout/package.json index d5b67946eb1..9d58b6cf05b 100644 --- a/packages/@react-spectrum/layout/package.json +++ b/packages/@react-spectrum/layout/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/link/package.json b/packages/@react-spectrum/link/package.json index 5da51ab894a..004723618bd 100644 --- a/packages/@react-spectrum/link/package.json +++ b/packages/@react-spectrum/link/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/list/package.json b/packages/@react-spectrum/list/package.json index 23be42054bd..28d6be24c4c 100644 --- a/packages/@react-spectrum/list/package.json +++ b/packages/@react-spectrum/list/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/listbox/package.json b/packages/@react-spectrum/listbox/package.json index 8e30d5365ab..4b44eeb6562 100644 --- a/packages/@react-spectrum/listbox/package.json +++ b/packages/@react-spectrum/listbox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/menu/package.json b/packages/@react-spectrum/menu/package.json index 9bd0466c419..6e6cb7453fb 100644 --- a/packages/@react-spectrum/menu/package.json +++ b/packages/@react-spectrum/menu/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/meter/package.json b/packages/@react-spectrum/meter/package.json index 3b8899b9d9f..fa6da894794 100644 --- a/packages/@react-spectrum/meter/package.json +++ b/packages/@react-spectrum/meter/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/numberfield/package.json b/packages/@react-spectrum/numberfield/package.json index 0f455eabcc6..12c2dc7cddc 100644 --- a/packages/@react-spectrum/numberfield/package.json +++ b/packages/@react-spectrum/numberfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/overlays/package.json b/packages/@react-spectrum/overlays/package.json index 7727fbf440a..b034571d989 100644 --- a/packages/@react-spectrum/overlays/package.json +++ b/packages/@react-spectrum/overlays/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/picker/package.json b/packages/@react-spectrum/picker/package.json index 33b49a2886c..89a3828b3cf 100644 --- a/packages/@react-spectrum/picker/package.json +++ b/packages/@react-spectrum/picker/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/progress/package.json b/packages/@react-spectrum/progress/package.json index 6bb13438632..25f6dc9bdbe 100644 --- a/packages/@react-spectrum/progress/package.json +++ b/packages/@react-spectrum/progress/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/provider/package.json b/packages/@react-spectrum/provider/package.json index 19aa1fee46f..67bb3fa8270 100644 --- a/packages/@react-spectrum/provider/package.json +++ b/packages/@react-spectrum/provider/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/radio/package.json b/packages/@react-spectrum/radio/package.json index 831756ac4d7..8cc5884eb92 100644 --- a/packages/@react-spectrum/radio/package.json +++ b/packages/@react-spectrum/radio/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/searchfield/package.json b/packages/@react-spectrum/searchfield/package.json index 64ba616e04f..d539e5d6c7e 100644 --- a/packages/@react-spectrum/searchfield/package.json +++ b/packages/@react-spectrum/searchfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/slider/package.json b/packages/@react-spectrum/slider/package.json index 23ab8b86b7a..78266561cb8 100644 --- a/packages/@react-spectrum/slider/package.json +++ b/packages/@react-spectrum/slider/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/statuslight/package.json b/packages/@react-spectrum/statuslight/package.json index 4f71f3d297b..35d9159b638 100644 --- a/packages/@react-spectrum/statuslight/package.json +++ b/packages/@react-spectrum/statuslight/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/steplist/package.json b/packages/@react-spectrum/steplist/package.json index 1425438bd45..aacab652aa8 100644 --- a/packages/@react-spectrum/steplist/package.json +++ b/packages/@react-spectrum/steplist/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/switch/package.json b/packages/@react-spectrum/switch/package.json index 8dba1c43bcf..3f52a2e00c8 100644 --- a/packages/@react-spectrum/switch/package.json +++ b/packages/@react-spectrum/switch/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/table/package.json b/packages/@react-spectrum/table/package.json index a645d9c5e77..1fc98ea3c8d 100644 --- a/packages/@react-spectrum/table/package.json +++ b/packages/@react-spectrum/table/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/tabs/package.json b/packages/@react-spectrum/tabs/package.json index 101b4078beb..089f1d2ed6c 100644 --- a/packages/@react-spectrum/tabs/package.json +++ b/packages/@react-spectrum/tabs/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/tag/package.json b/packages/@react-spectrum/tag/package.json index 21766395c45..563e5a52288 100644 --- a/packages/@react-spectrum/tag/package.json +++ b/packages/@react-spectrum/tag/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/text/package.json b/packages/@react-spectrum/text/package.json index 23814989160..b25483c26e8 100644 --- a/packages/@react-spectrum/text/package.json +++ b/packages/@react-spectrum/text/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/textfield/package.json b/packages/@react-spectrum/textfield/package.json index fb35b0b8a1c..94f29ca2bd1 100644 --- a/packages/@react-spectrum/textfield/package.json +++ b/packages/@react-spectrum/textfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/theme-dark/package.json b/packages/@react-spectrum/theme-dark/package.json index 94238eb644c..1728616d1f5 100644 --- a/packages/@react-spectrum/theme-dark/package.json +++ b/packages/@react-spectrum/theme-dark/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/theme-default/package.json b/packages/@react-spectrum/theme-default/package.json index e92e31a1bf7..1cda1e89883 100644 --- a/packages/@react-spectrum/theme-default/package.json +++ b/packages/@react-spectrum/theme-default/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/theme-express/package.json b/packages/@react-spectrum/theme-express/package.json index f68aa0a6ff1..fbbc852faf1 100644 --- a/packages/@react-spectrum/theme-express/package.json +++ b/packages/@react-spectrum/theme-express/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/theme-light/package.json b/packages/@react-spectrum/theme-light/package.json index 9c68da096e4..1b34662ae5f 100644 --- a/packages/@react-spectrum/theme-light/package.json +++ b/packages/@react-spectrum/theme-light/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/toast/package.json b/packages/@react-spectrum/toast/package.json index 279aae56491..4cbb2bc8f8b 100644 --- a/packages/@react-spectrum/toast/package.json +++ b/packages/@react-spectrum/toast/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/tooltip/package.json b/packages/@react-spectrum/tooltip/package.json index 952d69f9403..99f5e460d51 100644 --- a/packages/@react-spectrum/tooltip/package.json +++ b/packages/@react-spectrum/tooltip/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/tree/package.json b/packages/@react-spectrum/tree/package.json index 599b775c0fa..c295ad77b8f 100644 --- a/packages/@react-spectrum/tree/package.json +++ b/packages/@react-spectrum/tree/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/utils/package.json b/packages/@react-spectrum/utils/package.json index 56a6d58106f..6e10a41e948 100644 --- a/packages/@react-spectrum/utils/package.json +++ b/packages/@react-spectrum/utils/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/view/package.json b/packages/@react-spectrum/view/package.json index b52319e51ae..ba4f3bf5373 100644 --- a/packages/@react-spectrum/view/package.json +++ b/packages/@react-spectrum/view/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-spectrum/well/package.json b/packages/@react-spectrum/well/package.json index faa7412c6a6..1c8e3c3318a 100644 --- a/packages/@react-spectrum/well/package.json +++ b/packages/@react-spectrum/well/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/autocomplete/package.json b/packages/@react-stately/autocomplete/package.json index 7282a5470cf..8b1e3ee06d9 100644 --- a/packages/@react-stately/autocomplete/package.json +++ b/packages/@react-stately/autocomplete/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/calendar/package.json b/packages/@react-stately/calendar/package.json index a92e9583cc3..0ba3ec3c0a8 100644 --- a/packages/@react-stately/calendar/package.json +++ b/packages/@react-stately/calendar/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/checkbox/package.json b/packages/@react-stately/checkbox/package.json index d86e46c5bde..4fdbf8ed75c 100644 --- a/packages/@react-stately/checkbox/package.json +++ b/packages/@react-stately/checkbox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/collections/package.json b/packages/@react-stately/collections/package.json index 766b0fb548b..73cc3b2d3de 100644 --- a/packages/@react-stately/collections/package.json +++ b/packages/@react-stately/collections/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/color/package.json b/packages/@react-stately/color/package.json index 761e70b7ba2..813006c16d1 100644 --- a/packages/@react-stately/color/package.json +++ b/packages/@react-stately/color/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/combobox/package.json b/packages/@react-stately/combobox/package.json index 7726dfccd48..abb6a344c89 100644 --- a/packages/@react-stately/combobox/package.json +++ b/packages/@react-stately/combobox/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/data/package.json b/packages/@react-stately/data/package.json index 3fc319579ae..4c6bd720ed9 100644 --- a/packages/@react-stately/data/package.json +++ b/packages/@react-stately/data/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/datepicker/package.json b/packages/@react-stately/datepicker/package.json index 90152e67be3..6db1d950e7c 100644 --- a/packages/@react-stately/datepicker/package.json +++ b/packages/@react-stately/datepicker/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/disclosure/package.json b/packages/@react-stately/disclosure/package.json index 597cda890a7..b56b22638c1 100644 --- a/packages/@react-stately/disclosure/package.json +++ b/packages/@react-stately/disclosure/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/dnd/package.json b/packages/@react-stately/dnd/package.json index 44b1cca5c3c..267ced0c883 100644 --- a/packages/@react-stately/dnd/package.json +++ b/packages/@react-stately/dnd/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/flags/package.json b/packages/@react-stately/flags/package.json index ee47683577b..6ee7d5a34c4 100644 --- a/packages/@react-stately/flags/package.json +++ b/packages/@react-stately/flags/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-stately/form/package.json b/packages/@react-stately/form/package.json index dca38666fb8..71a144e5d36 100644 --- a/packages/@react-stately/form/package.json +++ b/packages/@react-stately/form/package.json @@ -5,14 +5,11 @@ "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, diff --git a/packages/@react-stately/grid/package.json b/packages/@react-stately/grid/package.json index 3e686574040..507b54b8388 100644 --- a/packages/@react-stately/grid/package.json +++ b/packages/@react-stately/grid/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/layout/package.json b/packages/@react-stately/layout/package.json index 10e5c0116d0..410f847bc31 100644 --- a/packages/@react-stately/layout/package.json +++ b/packages/@react-stately/layout/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/list/package.json b/packages/@react-stately/list/package.json index a88b27ee7f9..5f7baa1cfab 100644 --- a/packages/@react-stately/list/package.json +++ b/packages/@react-stately/list/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/menu/package.json b/packages/@react-stately/menu/package.json index 900dc24e139..52973d5457c 100644 --- a/packages/@react-stately/menu/package.json +++ b/packages/@react-stately/menu/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/numberfield/package.json b/packages/@react-stately/numberfield/package.json index 62e5d9c15c3..1416f90b8df 100644 --- a/packages/@react-stately/numberfield/package.json +++ b/packages/@react-stately/numberfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/overlays/package.json b/packages/@react-stately/overlays/package.json index 1e245d32986..bdcb39e1725 100644 --- a/packages/@react-stately/overlays/package.json +++ b/packages/@react-stately/overlays/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/radio/package.json b/packages/@react-stately/radio/package.json index 95a8afb8c92..c14db7bba18 100644 --- a/packages/@react-stately/radio/package.json +++ b/packages/@react-stately/radio/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/searchfield/package.json b/packages/@react-stately/searchfield/package.json index 62c0634b280..e287c4339c2 100644 --- a/packages/@react-stately/searchfield/package.json +++ b/packages/@react-stately/searchfield/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/select/package.json b/packages/@react-stately/select/package.json index e4f8cf077ff..953e7f9e55b 100644 --- a/packages/@react-stately/select/package.json +++ b/packages/@react-stately/select/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/selection/package.json b/packages/@react-stately/selection/package.json index 6f0e4cf684e..218dc283a37 100644 --- a/packages/@react-stately/selection/package.json +++ b/packages/@react-stately/selection/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/slider/package.json b/packages/@react-stately/slider/package.json index 7e0b042c5f3..483aecedc99 100644 --- a/packages/@react-stately/slider/package.json +++ b/packages/@react-stately/slider/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/steplist/package.json b/packages/@react-stately/steplist/package.json index b4e5c4d617b..e597c8b0207 100644 --- a/packages/@react-stately/steplist/package.json +++ b/packages/@react-stately/steplist/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/table/package.json b/packages/@react-stately/table/package.json index 653a0e58469..52b6dc328dd 100644 --- a/packages/@react-stately/table/package.json +++ b/packages/@react-stately/table/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/tabs/package.json b/packages/@react-stately/tabs/package.json index 4ec3a15ec4d..f2b069b7b17 100644 --- a/packages/@react-stately/tabs/package.json +++ b/packages/@react-stately/tabs/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/toast/package.json b/packages/@react-stately/toast/package.json index d693349b11d..91cb5270306 100644 --- a/packages/@react-stately/toast/package.json +++ b/packages/@react-stately/toast/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/toggle/package.json b/packages/@react-stately/toggle/package.json index 32cc76b26e8..dcb38572961 100644 --- a/packages/@react-stately/toggle/package.json +++ b/packages/@react-stately/toggle/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/tooltip/package.json b/packages/@react-stately/tooltip/package.json index 813e1c7ea04..07718e9cc95 100644 --- a/packages/@react-stately/tooltip/package.json +++ b/packages/@react-stately/tooltip/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/tree/package.json b/packages/@react-stately/tree/package.json index 77d234a1d9f..2ceb2dfee32 100644 --- a/packages/@react-stately/tree/package.json +++ b/packages/@react-stately/tree/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/utils/package.json b/packages/@react-stately/utils/package.json index f4c19868e01..fe0b82ebe2d 100644 --- a/packages/@react-stately/utils/package.json +++ b/packages/@react-stately/utils/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", diff --git a/packages/@react-stately/virtualizer/package.json b/packages/@react-stately/virtualizer/package.json index 86601017de7..d0b2a0a297e 100644 --- a/packages/@react-stately/virtualizer/package.json +++ b/packages/@react-stately/virtualizer/package.json @@ -8,16 +8,13 @@ "exports": { ".": { "source": "./src/index.ts", - "types": [ - "./dist/types.d.ts", - "./src/index.ts" - ], + "types": "./dist/types/src/index.d.ts", "import": "./dist/import.mjs", "require": "./dist/main.js" }, "./package.json": "./package.json" }, - "types": "dist/types.d.ts", + "types": "dist/types/src/index.d.ts", "source": "src/index.ts", "files": [ "dist", From d602d32fd22e5e1517860060bb2daea9b8ca1424 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Tue, 24 Mar 2026 13:40:49 -0700 Subject: [PATCH 2/3] Fix S2 icon types --- scripts/generateIconDts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generateIconDts.js b/scripts/generateIconDts.js index f6409fd2c9c..9039a79dd21 100644 --- a/scripts/generateIconDts.js +++ b/scripts/generateIconDts.js @@ -16,7 +16,7 @@ const path = require('path'); // Generate types for each icon/illustration so TypeScript's import autocomplete works. for (let file of glob('packages/@react-spectrum/s2/{icons,illustrations/**}/*.mjs')) { - let relative = path.relative(path.dirname(file), 'packages/@react-spectrum/s2/dist/types').replaceAll('\\', '/'); + let relative = path.relative(path.dirname(file), 'packages/@react-spectrum/s2/dist/types/exports/Icon').replaceAll('\\', '/'); fs.writeFileSync(file.replace('.mjs', '.d.ts'), `import type {IconProps} from '${relative}'; import type {ReactNode} from 'react'; From d4493c12ab14d9ba142f4e7cae390f90fbb90d10 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Tue, 24 Mar 2026 13:56:21 -0700 Subject: [PATCH 3/3] Add types to subpath shim package.jsons --- scripts/buildEsm.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/buildEsm.js b/scripts/buildEsm.js index c0514ca8692..7c3f3f553b5 100644 --- a/scripts/buildEsm.js +++ b/scripts/buildEsm.js @@ -43,17 +43,13 @@ for (let pkg of ['@adobe/react-spectrum', 'react-aria', 'react-stately', 'react- // We do not support any tools that only support CommonJS. let shim = file.replace('/dist/exports/', '/'); let specifier = path.relative(shim, file); - if (!specifier.startsWith('.')) { - specifier = './' + specifier; - } let dir = shim.replace('.js', ''); fs.mkdirSync(dir, {recursive: true}); - fs.writeFileSync(dir + '/module.js', `export * from '${specifier}';\n`); - fs.writeFileSync(dir + '/main.js', `module.exports = require('${specifier.replace('.js', '.cjs')}');\n`); fs.writeFileSync(dir + '/package.json', JSON.stringify({ - main: 'main.js', - module: 'module.js' + main: specifier.replace('.js', '.cjs'), + module: specifier, + types: path.relative(shim, file.replace('/dist/exports/', '/dist/types/exports/').replace('.js', '.d.ts')) }, null, 2) + '\n'); } }