From b891cd4e7daa02859f508644d23136c903fe9fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Sat, 29 Apr 2023 10:25:35 +0200 Subject: [PATCH] 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 ad33f0254b92..63cb556e8578 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 fa9c6fce99e0..7bfd04f5b434 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 d738cd0e82df..172df3e99af0 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 44e9635a7ae8..8254bfc5fb33 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 b9cf8635d9b0..b9ba06eaaf86 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -27,44 +27,44 @@ "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": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./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": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./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 a4fc8f7d01da..4736e74a787b 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 4eceb2d116cd..fb8ff857ff91 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 02335dbdc637..e625bc451200 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 a67096d228d1..5152dfc7e127 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 c89774a5f475..3df0d7a8a194 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 b70f5dafdf3a..fbb92aec226f 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 f1f45e767073..9e3ef17015f5 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 6539b4da25c2..ce297ba72f83 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 3d8f6d9e581e..710b0932de54 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -23,20 +23,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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./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 f14f9946f738..2ac69f5df71a 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 aa8028e8eb4c..02dde8b39edc 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 1c9e06475c2c..411c0bd576f5 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index b71b5aac7b32..92821421314e 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index d5d83fcc9aa4..b40cbcdfd1ce 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -22,25 +22,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" }, "./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" }, "./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 1e24ca02326a..7e1a454f5a51 100644 --- a/code/frameworks/preact-vite/package.json +++ b/code/frameworks/preact-vite/package.json @@ -21,14 +21,14 @@ "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" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 533c48c5298b..4bc33a0c11ca 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 1a10e3b751a7..0434cbec6e44 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index ba8d587d4bb1..6e7c91eae2bf 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index 305934788756..942a87c4d8f9 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index adb2597dbbe2..9ef89e41f4bc 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index d1c292583f62..334dd9435f14 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index 1d2078081862..5e804528890c 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue-vite/package.json b/code/frameworks/vue-vite/package.json index 15bb5b9f22eb..f621833e53cc 100644 --- a/code/frameworks/vue-vite/package.json +++ b/code/frameworks/vue-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue-webpack5/package.json b/code/frameworks/vue-webpack5/package.json index b5d467f389b6..3b1bece8e87e 100644 --- a/code/frameworks/vue-webpack5/package.json +++ b/code/frameworks/vue-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 46031655cd42..a93b8de575dd 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 2fccaf34d3dd..39bbd6a71f67 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index ee6769f955bf..ff77fce49008 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index bbb9fd0b9c2c..e0d999f980b8 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/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" }, "./preset": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/addons/package.json b/code/lib/addons/package.json index 5f232ff90fe3..406a8b9ab2aa 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 eddcc84f52b3..fbd8775a0963 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 1036bd84b60d..7a99019434e4 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 e28c63b145cc..b8fc6b5b80ca 100644 --- a/code/lib/builder-webpack5/package.json +++ b/code/lib/builder-webpack5/package.json @@ -21,22 +21,22 @@ "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", - "import": "./dist/presets/custom-webpack-preset.mjs", - "types": "./dist/presets/custom-webpack-preset.d.ts" + "import": "./dist/presets/custom-webpack-preset.mjs" }, "./presets/preview-preset": { + "types": "./dist/presets/preview-preset.d.ts", "node": "./dist/presets/preview-preset.js", "require": "./dist/presets/preview-preset.js", - "import": "./dist/presets/preview-preset.mjs", - "types": "./dist/presets/preview-preset.d.ts" + "import": "./dist/presets/preview-preset.mjs" }, "./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 d6487d69a54c..0efed4da9177 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 fdf1181c7c02..f25afc6c965d 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 c3b5a557a435..ea6a9455b6a3 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 84a5003dc027..6ef741c3dd57 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 438a9dc86b91..8e4957d645a8 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 5d35b183fb19..d4ccf3854c21 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 48aa4be31127..196e2ab2dba2 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 b02b7020aaa8..6f93e5dee52c 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 79d1f772de7c..1af4c0c7f780 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 134afebc0797..0bff98f740cc 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 38bb584b8f5d..b67969ec1cf1 100644 --- a/code/lib/core-server/package.json +++ b/code/lib/core-server/package.json @@ -21,22 +21,22 @@ "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", - "import": "./dist/presets/babel-cache-preset.mjs", - "types": "./dist/presets/babel-cache-preset.d.ts" + "import": "./dist/presets/babel-cache-preset.mjs" }, "./dist/presets/common-preset": { + "types": "./dist/presets/common-preset.d.ts", "node": "./dist/presets/common-preset.js", "require": "./dist/presets/common-preset.js", - "import": "./dist/presets/common-preset.mjs", - "types": "./dist/presets/common-preset.d.ts" + "import": "./dist/presets/common-preset.mjs" }, "./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 7ccef30ef033..80594a5ff2ac 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 e94f5b84c77d..899ecfb39278 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 47c9c3b6a5b2..d0f3c56800a7 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 91209724df3e..39168d93a8c1 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 4b7da0fd2194..8f75750e713a 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 19d032073010..1a0a6f71aa51 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 169b6ec57b0e..3e445475761f 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 56f1297584ff..d068e7a562df 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 0221766353a3..dc07dde38b2e 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 0c0fab48ecb8..f16aae02322f 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 e1ead7bbcf0d..f5d879bf895d 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 3fe932811237..8570c55a0104 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 1e07cac560c5..20a0d98f594d 100644 --- a/code/lib/react-dom-shim/package.json +++ b/code/lib/react-dom-shim/package.json @@ -22,21 +22,21 @@ "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": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/router/package.json b/code/lib/router/package.json index ea488f464b29..4ed6424af441 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 ba8c2012fcf0..8bc5062c6246 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 5932490de5d7..186e559bbfac 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 6bb1cbc3ffc8..eed35cb4ef56 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 94982c9d0e96..dc38ada00e6a 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 ad9566046f24..33cbcaa6d668 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 4d8cfe3c5ff0..27d3516975de 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 5b383c52c276..0bb1815fa68e 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 a03233e4b9ce..0b1bbb982245 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 7db2ba38bfd1..7cd6e513d141 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 80f0e57ff3d9..8c038605cf96 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 a5225fb5989a..3bbd9bff0fd9 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 14ab97fa645e..151896957ebb 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 b1630b01f7fe..4487f0c5f065 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 4c9fd785283b..982bdafea203 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 00684caaf99d..b2d1b55c41e9 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 66ebb5b9be5f..fcc0f63a680a 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 0efd27f037c8..f7b0343c7659 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/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" }, "./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": { + "types": "./dist/preset.d.ts", "require": "./dist/preset.js", - "import": "./dist/preset.mjs", - "types": "./dist/preset.d.ts" + "import": "./dist/preset.mjs" }, "./package.json": "./package.json" }, diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index fb777f0c3556..32d28f899d49 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 42abf03ed90a..5bc7d6509685 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 3c68f335ccd3..ba919ee8d161 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 c72f3ed638c5..0571f9beb996 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 a24344d7641e..d069bfdb0545 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 1047df61377f..55b6e36f6a23 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 3843c3d9402e..38a2df855058 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 dd2506027c8d..91311c57a1d3 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" },