From 9befd1b0070f80a0749fe2d12ea188dd1410fdd2 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 2 May 2023 12:56:59 +0200 Subject: [PATCH] Merge pull request #22321 from storybookjs/fix/types-condition Fix: move `types` condition to the front in all `package.json.exports` maps --- code/addons/a11y/package.json | 16 ++--- code/addons/actions/package.json | 20 +++--- code/addons/backgrounds/package.json | 16 ++--- code/addons/controls/package.json | 12 ++-- code/addons/docs/package.json | 32 +++++----- code/addons/essentials/package.json | 64 +++++++++---------- code/addons/gfm/package.json | 8 +-- code/addons/highlight/package.json | 8 +-- code/addons/interactions/package.json | 16 ++--- code/addons/jest/package.json | 12 ++-- code/addons/links/package.json | 20 +++--- code/addons/measure/package.json | 16 ++--- code/addons/outline/package.json | 16 ++--- code/addons/storysource/package.json | 12 ++-- code/addons/toolbars/package.json | 12 ++-- code/addons/viewport/package.json | 16 ++--- code/frameworks/html-vite/package.json | 8 +-- code/frameworks/html-webpack5/package.json | 8 +-- code/frameworks/nextjs/package.json | 16 ++--- code/frameworks/preact-vite/package.json | 8 +-- code/frameworks/preact-webpack5/package.json | 8 +-- code/frameworks/react-vite/package.json | 8 +-- code/frameworks/react-webpack5/package.json | 8 +-- code/frameworks/server-webpack5/package.json | 8 +-- code/frameworks/svelte-vite/package.json | 8 +-- code/frameworks/svelte-webpack5/package.json | 8 +-- code/frameworks/sveltekit/package.json | 8 +-- code/frameworks/vue-vite/package.json | 8 +-- code/frameworks/vue-webpack5/package.json | 8 +-- code/frameworks/vue3-vite/package.json | 8 +-- code/frameworks/vue3-webpack5/package.json | 8 +-- .../web-components-vite/package.json | 8 +-- .../web-components-webpack5/package.json | 8 +-- code/lib/addons/package.json | 4 +- code/lib/builder-manager/package.json | 4 +- code/lib/builder-vite/package.json | 4 +- code/lib/builder-webpack5/package.json | 12 ++-- code/lib/channel-postmessage/package.json | 4 +- code/lib/channel-websocket/package.json | 4 +- code/lib/channels/package.json | 4 +- code/lib/cli/package.json | 4 +- code/lib/client-api/package.json | 4 +- code/lib/client-logger/package.json | 4 +- code/lib/codemod/package.json | 4 +- code/lib/core-client/package.json | 4 +- code/lib/core-common/package.json | 4 +- code/lib/core-events/package.json | 4 +- code/lib/core-server/package.json | 12 ++-- code/lib/core-webpack/package.json | 4 +- code/lib/csf-plugin/package.json | 4 +- code/lib/csf-tools/package.json | 4 +- code/lib/docs-tools/package.json | 4 +- code/lib/instrumenter/package.json | 4 +- code/lib/manager-api-shim/package.json | 4 +- code/lib/manager-api/package.json | 4 +- code/lib/node-logger/package.json | 4 +- code/lib/postinstall/package.json | 4 +- code/lib/preview-api/package.json | 24 +++---- code/lib/preview-web/package.json | 4 +- code/lib/preview/package.json | 8 +-- code/lib/react-dom-shim/package.json | 12 ++-- code/lib/router/package.json | 8 +-- code/lib/source-loader/package.json | 4 +- code/lib/store/package.json | 4 +- code/lib/telemetry/package.json | 4 +- code/lib/theming/package.json | 8 +-- code/lib/types/package.json | 4 +- code/presets/create-react-app/package.json | 8 +-- code/presets/html-webpack/package.json | 8 +-- code/presets/preact-webpack/package.json | 8 +-- code/presets/react-webpack/package.json | 20 +++--- code/presets/server-webpack/package.json | 12 ++-- code/presets/svelte-webpack/package.json | 20 +++--- code/presets/vue-webpack/package.json | 16 ++--- code/presets/vue3-webpack/package.json | 16 ++--- .../web-components-webpack/package.json | 8 +-- code/renderers/html/package.json | 8 +-- code/renderers/preact/package.json | 8 +-- code/renderers/react/package.json | 12 ++-- code/renderers/server/package.json | 8 +-- code/renderers/svelte/package.json | 8 +-- code/renderers/vue/package.json | 8 +-- code/renderers/vue3/package.json | 8 +-- code/renderers/web-components/package.json | 8 +-- code/ui/blocks/package.json | 4 +- code/ui/components/package.json | 8 +-- code/ui/manager/package.json | 12 ++-- docs/contribute/framework.md | 12 ++-- 88 files changed, 426 insertions(+), 426 deletions(-) diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index aeaa29585b3c..2174da43ed92 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -27,25 +27,25 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 022f96da168c..103f51defd1b 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -23,30 +23,30 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./decorator": { + "types": "./dist/decorator.d.ts", "require": "./dist/decorator.js", - "import": "./dist/decorator.mjs", - "types": "./dist/decorator.d.ts" + "import": "./dist/decorator.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register.js": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index 66e1cf69424d..f1cf620875dd 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -27,25 +27,25 @@ "author": "jbaxleyiii", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index f84e7dddf8e0..7cd6c37a2a7d 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -27,20 +27,20 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 881ec44e9193..3f515174cc77 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -27,42 +27,42 @@ "exports": { ".": { "node": "./dist/index.js", + "types": "./dist/index.d.ts", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./blocks": { + "types": "./dist/blocks.d.ts", "require": "./dist/blocks.js", - "import": "./dist/blocks.mjs", - "types": "./dist/blocks.d.ts" + "import": "./dist/blocks.mjs" }, "./dist/preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./dist/preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./dist/shims/mdx-react-shim": { + "types": "./dist/shims/mdx-react-shim.d.ts", "require": "./dist/shims/mdx-react-shim.js", - "import": "./dist/shims/mdx-react-shim.mjs", - "types": "./dist/shims/mdx-react-shim.d.ts" + "import": "./dist/shims/mdx-react-shim.mjs" }, "./mdx-react-shim": { + "types": "./dist/shims/mdx-react-shim.d.ts", "require": "./dist/shims/mdx-react-shim.js", - "import": "./dist/shims/mdx-react-shim.mjs", - "types": "./dist/shims/mdx-react-shim.d.ts" + "import": "./dist/shims/mdx-react-shim.mjs" }, "./svelte/HOC.svelte": "./svelte/HOC.svelte", "./ember": "./ember/index.js", diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index 3a10dedb657f..3c82d8928a4d 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -24,84 +24,84 @@ "exports": { ".": { "node": "./dist/index.js", + "types": "./dist/index.d.ts", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./actions/preview": { + "types": "./dist/actions/preview.d.ts", "require": "./dist/actions/preview.js", - "import": "./dist/actions/preview.mjs", - "types": "./dist/actions/preview.d.ts" + "import": "./dist/actions/preview.mjs" }, "./actions/manager": { + "types": "./dist/actions/manager.d.ts", "require": "./dist/actions/manager.js", - "import": "./dist/actions/manager.mjs", - "types": "./dist/actions/manager.d.ts" + "import": "./dist/actions/manager.mjs" }, "./backgrounds/preview": { + "types": "./dist/backgrounds/preview.d.ts", "require": "./dist/backgrounds/preview.js", - "import": "./dist/backgrounds/preview.mjs", - "types": "./dist/backgrounds/preview.d.ts" + "import": "./dist/backgrounds/preview.mjs" }, "./backgrounds/manager": { + "types": "./dist/backgrounds/manager.d.ts", "require": "./dist/backgrounds/manager.js", - "import": "./dist/backgrounds/manager.mjs", - "types": "./dist/backgrounds/manager.d.ts" + "import": "./dist/backgrounds/manager.mjs" }, "./controls/manager": { + "types": "./dist/controls/manager.d.ts", "require": "./dist/controls/manager.js", - "import": "./dist/controls/manager.mjs", - "types": "./dist/controls/manager.d.ts" + "import": "./dist/controls/manager.mjs" }, "./docs/preview": { + "types": "./dist/docs/preview.d.ts", "require": "./dist/docs/preview.js", - "import": "./dist/docs/preview.mjs", - "types": "./dist/docs/preview.d.ts" + "import": "./dist/docs/preview.mjs" }, "./docs/preset": { + "types": "./dist/docs/preset.d.ts", "require": "./dist/docs/preset.js", - "import": "./dist/docs/preset.mjs", - "types": "./dist/docs/preset.d.ts" + "import": "./dist/docs/preset.mjs" }, "./docs/mdx-react-shim": { + "types": "./dist/docs/mdx-react-shim.d.ts", "require": "./dist/docs/mdx-react-shim.js", - "import": "./dist/docs/mdx-react-shim.mjs", - "types": "./dist/docs/mdx-react-shim.d.ts" + "import": "./dist/docs/mdx-react-shim.mjs" }, "./highlight/preview": { + "types": "./dist/highlight/preview.d.ts", "require": "./dist/highlight/preview.js", - "import": "./dist/highlight/preview.mjs", - "types": "./dist/highlight/preview.d.ts" + "import": "./dist/highlight/preview.mjs" }, "./measure/preview": { + "types": "./dist/measure/preview.d.ts", "require": "./dist/measure/preview.js", - "import": "./dist/measure/preview.mjs", - "types": "./dist/measure/preview.d.ts" + "import": "./dist/measure/preview.mjs" }, "./measure/manager": { + "types": "./dist/measure/manager.d.ts", "require": "./dist/measure/manager.js", - "import": "./dist/measure/manager.mjs", - "types": "./dist/measure/manager.d.ts" + "import": "./dist/measure/manager.mjs" }, "./outline/preview": { + "types": "./dist/outline/preview.d.ts", "require": "./dist/outline/preview.js", - "import": "./dist/outline/preview.mjs", - "types": "./dist/outline/preview.d.ts" + "import": "./dist/outline/preview.mjs" }, "./outline/manager": { + "types": "./dist/outline/manager.d.ts", "require": "./dist/outline/manager.js", - "import": "./dist/outline/manager.mjs", - "types": "./dist/outline/manager.d.ts" + "import": "./dist/outline/manager.mjs" }, "./toolbars/manager": { + "types": "./dist/toolbars/manager.d.ts", "require": "./dist/toolbars/manager.js", - "import": "./dist/toolbars/manager.mjs", - "types": "./dist/toolbars/manager.d.ts" + "import": "./dist/toolbars/manager.mjs" }, "./viewport/manager": { + "types": "./dist/viewport/manager.d.ts", "require": "./dist/viewport/manager.js", - "import": "./dist/viewport/manager.mjs", - "types": "./dist/viewport/manager.d.ts" + "import": "./dist/viewport/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/gfm/package.json b/code/addons/gfm/package.json index 6f055c584056..a20789369faf 100644 --- a/code/addons/gfm/package.json +++ b/code/addons/gfm/package.json @@ -26,14 +26,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 1b600a0d4968..b4b7524dfa33 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -25,15 +25,15 @@ "author": "winkerVSbecks", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 0467c4544e38..0dac70e1bd04 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -23,25 +23,25 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register.js": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index c1a35b6ddee7..0bde9df18607 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -29,20 +29,20 @@ "author": "Renaud Tertrais (https://github.com/renaudtertrais)", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 953ed33e1153..d21057501022 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -23,30 +23,30 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./react": { + "types": "./dist/react/index.d.ts", "require": "./dist/react/index.js", - "import": "./dist/react/index.mjs", - "types": "./dist/react/index.d.ts" + "import": "./dist/react/index.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index 54c1d1df45ef..7b8d76b8f5e3 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -26,25 +26,25 @@ "author": "winkerVSbecks", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index 1c9e7ca7e020..99b5b1c17561 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -29,25 +29,25 @@ "author": "winkerVSbecks", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index d1948a94abbd..18d02802f22e 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -23,19 +23,19 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index fd6861fe7f72..1cc3d07f5596 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -27,20 +27,20 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 5c06319cd974..932437e9a87a 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -24,25 +24,25 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./manager": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./preview": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.ts", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./register": { + "types": "./dist/manager.d.ts", "require": "./dist/manager.js", - "import": "./dist/manager.mjs", - "types": "./dist/manager.d.ts" + "import": "./dist/manager.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index f5c7c79b44a3..e42af5000f87 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index e56f7d7266b7..59e9e801097e 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index 04cead7e3de5..a91c656292d3 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -22,24 +22,24 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./preview.js": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./next-image-loader-stub.js": { + "types": "./dist/next-image-loader-stub.d.ts", "require": "./dist/next-image-loader-stub.js", - "import": "./dist/next-image-loader-stub.mjs", - "types": "./dist/next-image-loader-stub.d.ts" + "import": "./dist/next-image-loader-stub.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/preact-vite/package.json b/code/frameworks/preact-vite/package.json index a19c74be194e..9c8c6b857b4d 100644 --- a/code/frameworks/preact-vite/package.json +++ b/code/frameworks/preact-vite/package.json @@ -21,13 +21,13 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index a9cf99d6ec70..ca5294557cc8 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 20f75046ef9b..b1fc72b28793 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index ec8a4ba51559..5255f84ff3b0 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index ff41dee2531f..2c5108da2985 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 481410a2637f..dbc28874f402 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index d52b5fa94ce3..ff3b52134c6e 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 9c1178844b7f..12f6715c80a8 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -24,14 +24,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue-vite/package.json b/code/frameworks/vue-vite/package.json index 5ec268fa1ae4..31e46f002a66 100644 --- a/code/frameworks/vue-vite/package.json +++ b/code/frameworks/vue-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue-webpack5/package.json b/code/frameworks/vue-webpack5/package.json index 11e2137cfa88..07d863e63bdf 100644 --- a/code/frameworks/vue-webpack5/package.json +++ b/code/frameworks/vue-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index a74cfa658ba2..dd3cfec9480a 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 14f6da8557f2..80d822c6b72c 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 8d8c8d439e2e..c03d9a5f7cd0 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -21,14 +21,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 7b95d82a7fa6..5c07d92020a6 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -24,14 +24,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/addons/package.json b/code/lib/addons/package.json index 3677bf627bf5..00a878a89731 100644 --- a/code/lib/addons/package.json +++ b/code/lib/addons/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/builder-manager/package.json b/code/lib/builder-manager/package.json index d4696ad7bf8d..62b3aea20b79 100644 --- a/code/lib/builder-manager/package.json +++ b/code/lib/builder-manager/package.json @@ -21,10 +21,10 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/builder-vite/package.json b/code/lib/builder-vite/package.json index baed97f87e86..32df543238fe 100644 --- a/code/lib/builder-vite/package.json +++ b/code/lib/builder-vite/package.json @@ -19,10 +19,10 @@ "author": "Eirik Sletteberg", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./input/iframe.html": "./input/iframe.html", "./package.json": "./package.json" diff --git a/code/lib/builder-webpack5/package.json b/code/lib/builder-webpack5/package.json index 5084e69bf3f3..0a9f7b9c7492 100644 --- a/code/lib/builder-webpack5/package.json +++ b/code/lib/builder-webpack5/package.json @@ -21,20 +21,20 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./presets/custom-webpack-preset": { + "types": "./dist/presets/custom-webpack-preset.d.ts", "node": "./dist/presets/custom-webpack-preset.js", - "require": "./dist/presets/custom-webpack-preset.js", - "types": "./dist/presets/custom-webpack-preset.d.ts" + "require": "./dist/presets/custom-webpack-preset.js" }, "./presets/preview-preset": { + "types": "./dist/presets/preview-preset.d.ts", "node": "./dist/presets/preview-preset.js", - "require": "./dist/presets/preview-preset.js", - "types": "./dist/presets/preview-preset.d.ts" + "require": "./dist/presets/preview-preset.js" }, "./templates/virtualModuleModernEntry.js.handlebars": "./templates/virtualModuleModernEntry.js.handlebars", "./templates/preview.ejs": "./templates/preview.ejs", diff --git a/code/lib/channel-postmessage/package.json b/code/lib/channel-postmessage/package.json index 0e14cc575e6e..81f0a6c59652 100644 --- a/code/lib/channel-postmessage/package.json +++ b/code/lib/channel-postmessage/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/channel-websocket/package.json b/code/lib/channel-websocket/package.json index c792d1b39a25..8af5cab7e5e3 100644 --- a/code/lib/channel-websocket/package.json +++ b/code/lib/channel-websocket/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/channels/package.json b/code/lib/channels/package.json index a379392cf981..f55005db0891 100644 --- a/code/lib/channels/package.json +++ b/code/lib/channels/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index d94e1f696a0b..71cb54676f6b 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -24,10 +24,10 @@ "author": "Storybook Team", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json", "./bin/index": "./bin/index.js" diff --git a/code/lib/client-api/package.json b/code/lib/client-api/package.json index 893853f3cb5e..24b604ae6a6d 100644 --- a/code/lib/client-api/package.json +++ b/code/lib/client-api/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/entry.d.ts", "require": "./dist/entry.js", - "import": "./dist/entry.mjs", - "types": "./dist/entry.d.ts" + "import": "./dist/entry.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index 5558eb32f531..07663c315ae7 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index 4d84c947cd54..e1dca0c069a5 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "./dist/transforms/add-component-parameters.js": "./dist/transforms/add-component-parameters.js", "./dist/transforms/csf-2-to-3.js": "./dist/transforms/csf-2-to-3.js", diff --git a/code/lib/core-client/package.json b/code/lib/core-client/package.json index 2db1fc31e8ac..bcc29711a9eb 100644 --- a/code/lib/core-client/package.json +++ b/code/lib/core-client/package.json @@ -21,9 +21,9 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/entry.d.ts", "require": "./dist/entry.js", - "import": "./dist/entry.mjs", - "types": "./dist/entry.d.ts" + "import": "./dist/entry.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/core-common/package.json b/code/lib/core-common/package.json index d69cc496d87d..ddec5989b0ac 100644 --- a/code/lib/core-common/package.json +++ b/code/lib/core-common/package.json @@ -21,10 +21,10 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/core-events/package.json b/code/lib/core-events/package.json index c14e0520f2e0..6803566bddcf 100644 --- a/code/lib/core-events/package.json +++ b/code/lib/core-events/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/core-server/package.json b/code/lib/core-server/package.json index bd6c116a5672..78d9e54e7cc9 100644 --- a/code/lib/core-server/package.json +++ b/code/lib/core-server/package.json @@ -21,20 +21,20 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/presets/babel-cache-preset": { + "types": "./dist/presets/babel-cache-preset.d.ts", "node": "./dist/presets/babel-cache-preset.js", - "require": "./dist/presets/babel-cache-preset.js", - "types": "./dist/presets/babel-cache-preset.d.ts" + "require": "./dist/presets/babel-cache-preset.js" }, "./dist/presets/common-preset": { + "types": "./dist/presets/common-preset.d.ts", "node": "./dist/presets/common-preset.js", - "require": "./dist/presets/common-preset.js", - "types": "./dist/presets/common-preset.d.ts" + "require": "./dist/presets/common-preset.js" }, "./public/favicon.svg": "./public/favicon.svg", "./package.json": "./package.json" diff --git a/code/lib/core-webpack/package.json b/code/lib/core-webpack/package.json index 0374f3d19626..1a7ac2c434c9 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -21,10 +21,10 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index 08ce5233315d..6852efa74a45 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/csf-tools/package.json b/code/lib/csf-tools/package.json index 6e4e81c5d4f2..73f4aaafa806 100644 --- a/code/lib/csf-tools/package.json +++ b/code/lib/csf-tools/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/docs-tools/package.json b/code/lib/docs-tools/package.json index cc0d74e67694..23345ed5fd3b 100644 --- a/code/lib/docs-tools/package.json +++ b/code/lib/docs-tools/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index 058c2222cd9e..50062ed640f6 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/manager-api-shim/package.json b/code/lib/manager-api-shim/package.json index 7d7fb9a2ea03..d23fd370c3af 100644 --- a/code/lib/manager-api-shim/package.json +++ b/code/lib/manager-api-shim/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/entry.d.ts", "require": "./dist/entry.js", - "import": "./dist/entry.mjs", - "types": "./dist/entry.d.ts" + "import": "./dist/entry.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/manager-api/package.json b/code/lib/manager-api/package.json index 47c416a1f095..00b5b61658b9 100644 --- a/code/lib/manager-api/package.json +++ b/code/lib/manager-api/package.json @@ -21,10 +21,10 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/node-logger/package.json b/code/lib/node-logger/package.json index 102d519a3143..38297332f01e 100644 --- a/code/lib/node-logger/package.json +++ b/code/lib/node-logger/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/postinstall/package.json b/code/lib/postinstall/package.json index 5c410197eb14..f04727283b09 100644 --- a/code/lib/postinstall/package.json +++ b/code/lib/postinstall/package.json @@ -23,10 +23,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/preview-api/package.json b/code/lib/preview-api/package.json index a1ed1ed7a2ad..c30eb753e2bf 100644 --- a/code/lib/preview-api/package.json +++ b/code/lib/preview-api/package.json @@ -22,34 +22,34 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "require": "./dist/index.js" }, "./dist/addons": { + "types": "./dist/addons.d.ts", "import": "./dist/addons.mjs", - "require": "./dist/addons.js", - "types": "./dist/addons.d.ts" + "require": "./dist/addons.js" }, "./dist/store": { + "types": "./dist/store.d.ts", "import": "./dist/store.mjs", - "require": "./dist/store.js", - "types": "./dist/store.d.ts" + "require": "./dist/store.js" }, "./dist/client-api": { + "types": "./dist/client-api.d.ts", "import": "./dist/client-api.mjs", - "require": "./dist/client-api.js", - "types": "./dist/client-api.d.ts" + "require": "./dist/client-api.js" }, "./dist/core-client": { + "types": "./dist/core-client.d.ts", "import": "./dist/core-client.mjs", - "require": "./dist/core-client.js", - "types": "./dist/core-client.d.ts" + "require": "./dist/core-client.js" }, "./dist/preview-web": { + "types": "./dist/preview-web.d.ts", "import": "./dist/preview-web.mjs", - "require": "./dist/preview-web.js", - "types": "./dist/preview-web.d.ts" + "require": "./dist/preview-web.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/preview-web/package.json b/code/lib/preview-web/package.json index 025b939ebb30..2ae54c7a892a 100644 --- a/code/lib/preview-web/package.json +++ b/code/lib/preview-web/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/entry.d.ts", "require": "./dist/entry.js", - "import": "./dist/entry.mjs", - "types": "./dist/entry.d.ts" + "import": "./dist/entry.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/preview/package.json b/code/lib/preview/package.json index aa24278560d3..11dd5d326257 100644 --- a/code/lib/preview/package.json +++ b/code/lib/preview/package.json @@ -22,12 +22,12 @@ "sideEffects": false, "exports": { ".": { - "import": "./dist/runtime.js", - "types": "./dist/runtime.d.ts" + "types": "./dist/runtime.d.ts", + "import": "./dist/runtime.js" }, "./globals": { - "require": "./dist/globals.js", - "types": "./dist/globals.d.ts" + "types": "./dist/globals.d.ts", + "require": "./dist/globals.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/react-dom-shim/package.json b/code/lib/react-dom-shim/package.json index 7a15b3d68c73..bbaaeab0347a 100644 --- a/code/lib/react-dom-shim/package.json +++ b/code/lib/react-dom-shim/package.json @@ -22,20 +22,20 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/react-16.d.ts", "node": "./dist/react-16.js", "require": "./dist/react-16.js", - "import": "./dist/react-16.mjs", - "types": "./dist/react-16.d.ts" + "import": "./dist/react-16.mjs" }, "./dist/react-18": { + "types": "./dist/react-18.d.ts", "node": "./dist/react-18.js", "require": "./dist/react-18.js", - "import": "./dist/react-18.mjs", - "types": "./dist/react-18.d.ts" + "import": "./dist/react-18.mjs" }, "./dist/preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/router/package.json b/code/lib/router/package.json index 10fd5def3b14..b5a32cb88029 100644 --- a/code/lib/router/package.json +++ b/code/lib/router/package.json @@ -22,15 +22,15 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./utils": { + "types": "./dist/utils.d.ts", "require": "./dist/utils.js", - "import": "./dist/utils.mjs", - "types": "./dist/utils.d.ts" + "import": "./dist/utils.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index 62975667df8a..baddd752a0e1 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -23,10 +23,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/store/package.json b/code/lib/store/package.json index abb111121f9e..dcd302ee8840 100644 --- a/code/lib/store/package.json +++ b/code/lib/store/package.json @@ -22,9 +22,9 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/entry.d.ts", "require": "./dist/entry.js", - "import": "./dist/entry.mjs", - "types": "./dist/entry.d.ts" + "import": "./dist/entry.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/telemetry/package.json b/code/lib/telemetry/package.json index b318c564f793..9eba370b3aca 100644 --- a/code/lib/telemetry/package.json +++ b/code/lib/telemetry/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/theming/package.json b/code/lib/theming/package.json index 5c86aeadbf3c..7a9858275a8a 100644 --- a/code/lib/theming/package.json +++ b/code/lib/theming/package.json @@ -22,15 +22,15 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./create": { + "types": "./dist/create.d.ts", "require": "./dist/create.js", - "import": "./dist/create.mjs", - "types": "./dist/create.d.ts" + "import": "./dist/create.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/types/package.json b/code/lib/types/package.json index a5d5f9c2d639..d704c98ae181 100644 --- a/code/lib/types/package.json +++ b/code/lib/types/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 1a965e3b94a3..ae1db627c41a 100644 --- a/code/presets/create-react-app/package.json +++ b/code/presets/create-react-app/package.json @@ -21,16 +21,16 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 6725fbfa7f37..a36b114b8693 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -21,16 +21,16 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 30c2ea758d36..52b162883288 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -21,16 +21,16 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 07aba3cd5a9f..6b48ba3a8665 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -21,31 +21,31 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/framework-preset-cra": { + "types": "./dist/framework-preset-cra.d.ts", "require": "./dist/framework-preset-cra.js", - "import": "./dist/framework-preset-cra.mjs", - "types": "./dist/framework-preset-cra.d.ts" + "import": "./dist/framework-preset-cra.mjs" }, "./dist/framework-preset-react-docs": { + "types": "./dist/framework-preset-react-docs.d.ts", "require": "./dist/framework-preset-react-docs.js", - "import": "./dist/framework-preset-react-docs.mjs", - "types": "./dist/framework-preset-react-docs.d.ts" + "import": "./dist/framework-preset-react-docs.mjs" }, "./dist/framework-preset-react": { + "types": "./dist/framework-preset-react.d.ts", "require": "./dist/framework-preset-react.js", - "import": "./dist/framework-preset-react.mjs", - "types": "./dist/framework-preset-react.d.ts" + "import": "./dist/framework-preset-react.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index cf289e5107a9..0c450f47b087 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -21,21 +21,21 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/loader": { + "types": "./dist/loader.d.ts", "require": "./dist/loader.js", - "import": "./dist/loader.mjs", - "types": "./dist/loader.d.ts" + "import": "./dist/loader.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index c23ef68fe7f4..3c6245b1ee0c 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -21,31 +21,31 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/framework-preset-svelte-docs": { + "types": "./dist/framework-preset-svelte-docs.d.ts", "require": "./dist/framework-preset-svelte-docs.js", - "import": "./dist/framework-preset-svelte-docs.mjs", - "types": "./dist/framework-preset-svelte-docs.d.ts" + "import": "./dist/framework-preset-svelte-docs.mjs" }, "./dist/framework-preset-svelte": { + "types": "./dist/framework-preset-svelte.d.ts", "require": "./dist/framework-preset-svelte.js", - "import": "./dist/framework-preset-svelte.mjs", - "types": "./dist/framework-preset-svelte.d.ts" + "import": "./dist/framework-preset-svelte.mjs" }, "./dist/svelte-docgen-loader": { + "types": "./dist/svelte-docgen-loader.d.ts", "require": "./dist/svelte-docgen-loader.js", - "import": "./dist/svelte-docgen-loader.mjs", - "types": "./dist/svelte-docgen-loader.d.ts" + "import": "./dist/svelte-docgen-loader.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/vue-webpack/package.json b/code/presets/vue-webpack/package.json index 3d62646904d1..61b89dccd28a 100644 --- a/code/presets/vue-webpack/package.json +++ b/code/presets/vue-webpack/package.json @@ -21,26 +21,26 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/framework-preset-vue-docs": { + "types": "./dist/framework-preset-vue-docs.d.ts", "require": "./dist/framework-preset-vue-docs.js", - "import": "./dist/framework-preset-vue-docs.mjs", - "types": "./dist/framework-preset-vue-docs.d.ts" + "import": "./dist/framework-preset-vue-docs.mjs" }, "./dist/framework-preset-vue": { + "types": "./dist/framework-preset-vue.d.ts", "require": "./dist/framework-preset-vue.js", - "import": "./dist/framework-preset-vue.mjs", - "types": "./dist/framework-preset-vue.d.ts" + "import": "./dist/framework-preset-vue.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index 66043a6ea0f0..05d2348e1072 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -21,26 +21,26 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./dist/framework-preset-vue3-docs": { + "types": "./dist/framework-preset-vue3-docs.d.ts", "require": "./dist/framework-preset-vue3-docs.js", - "import": "./dist/framework-preset-vue3-docs.mjs", - "types": "./dist/framework-preset-vue3-docs.d.ts" + "import": "./dist/framework-preset-vue3-docs.mjs" }, "./dist/framework-preset-vue3": { + "types": "./dist/framework-preset-vue3.d.ts", "require": "./dist/framework-preset-vue3.js", - "import": "./dist/framework-preset-vue3.mjs", - "types": "./dist/framework-preset-vue3.d.ts" + "import": "./dist/framework-preset-vue3.mjs" }, "./package.json": "./package.json" }, diff --git a/code/presets/web-components-webpack/package.json b/code/presets/web-components-webpack/package.json index e3f5272104b7..437a65378679 100644 --- a/code/presets/web-components-webpack/package.json +++ b/code/presets/web-components-webpack/package.json @@ -24,16 +24,16 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index 5d3922538294..8ec00d5a561e 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 34f478d48f60..528e2bd82ecf 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 9aa440315b47..6831f3c09a11 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -21,19 +21,19 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./dist/preset": { - "require": "./dist/preset.js", - "types": "./dist/preset.d.ts" + "types": "./dist/preset.d.ts", + "require": "./dist/preset.js" }, "./package.json": "./package.json" }, diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 99f66e071c7e..23f6237476df 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 7b653a8dcfb5..13dd65ba80b3 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json", "./templates/HOC.svelte": "./templates/HOC.svelte", diff --git a/code/renderers/vue/package.json b/code/renderers/vue/package.json index aa327a7190fb..f83e04441e19 100644 --- a/code/renderers/vue/package.json +++ b/code/renderers/vue/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index ff59b7ec503d..e5250243928e 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -21,15 +21,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index c2119f2b061a..3c448b6039ed 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -24,15 +24,15 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preview": { + "types": "./dist/config.d.ts", "require": "./dist/config.js", - "import": "./dist/config.mjs", - "types": "./dist/config.d.ts" + "import": "./dist/config.mjs" }, "./package.json": "./package.json" }, diff --git a/code/ui/blocks/package.json b/code/ui/blocks/package.json index 7ebd6687665d..186be1532402 100644 --- a/code/ui/blocks/package.json +++ b/code/ui/blocks/package.json @@ -22,10 +22,10 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./package.json": "./package.json" }, diff --git a/code/ui/components/package.json b/code/ui/components/package.json index 1a3c65e9a89b..e678968e3575 100644 --- a/code/ui/components/package.json +++ b/code/ui/components/package.json @@ -22,15 +22,15 @@ "sideEffects": false, "exports": { ".": { + "types": "./dist/index.d.ts", "node": "./dist/index.js", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./html": { + "types": "./dist/html.d.ts", "require": "./dist/html.js", - "import": "./dist/html.mjs", - "types": "./dist/html.d.ts" + "import": "./dist/html.mjs" }, "./package.json": "./package.json" }, diff --git a/code/ui/manager/package.json b/code/ui/manager/package.json index 4b8248c0f44a..cc4cf8b603c0 100644 --- a/code/ui/manager/package.json +++ b/code/ui/manager/package.json @@ -21,16 +21,16 @@ "license": "MIT", "exports": { ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/index.d.ts", + "import": "./dist/index.js" }, "./dist/runtime": { - "import": "./dist/runtime.js", - "types": "./dist/runtime.d.ts" + "types": "./dist/runtime.d.ts", + "import": "./dist/runtime.js" }, "./dist/globals": { - "require": "./dist/globals.js", - "types": "./dist/globals.d.ts" + "types": "./dist/globals.d.ts", + "require": "./dist/globals.js" }, "./paths": "./paths.js", "./package.json": "./package.json" diff --git a/docs/contribute/framework.md b/docs/contribute/framework.md index 20f8edfad911..a84cc735f728 100644 --- a/docs/contribute/framework.md +++ b/docs/contribute/framework.md @@ -63,19 +63,19 @@ Because a framework is a node package, it must contain a `package.json` file. He "license": "MIT", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "import": "./dist/index.mjs" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./preview.js": { + "types": "./dist/preview.d.ts", "require": "./dist/preview.js", - "import": "./dist/preview.mjs", - "types": "./dist/preview.d.ts" + "import": "./dist/preview.mjs" }, "./package.json": "./package.json" },