From e20f6896b15e10b9ea8ae55d2b069ebf300de264 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 7 Aug 2024 16:58:21 +0200 Subject: [PATCH 1/2] Make sure CJS build always has lowest prio --- code/addons/a11y/package.json | 4 ++-- code/addons/actions/package.json | 4 ++-- code/addons/backgrounds/package.json | 4 ++-- code/addons/controls/package.json | 4 ++-- code/addons/docs/package.json | 4 ++-- code/addons/essentials/package.json | 4 ++-- code/addons/highlight/package.json | 4 ++-- code/addons/interactions/package.json | 4 ++-- code/addons/jest/package.json | 4 ++-- code/addons/links/package.json | 4 ++-- code/addons/measure/package.json | 4 ++-- code/addons/onboarding/package.json | 4 ++-- code/addons/outline/package.json | 4 ++-- code/addons/storysource/package.json | 4 ++-- code/addons/themes/package.json | 4 ++-- code/addons/toolbars/package.json | 4 ++-- code/addons/viewport/package.json | 4 ++-- code/builders/builder-vite/package.json | 4 ++-- code/builders/builder-webpack5/package.json | 16 ++++++++-------- code/deprecated/csf-tools/package.json | 4 ++-- code/deprecated/router/package.json | 4 ++-- code/deprecated/theming/package.json | 4 ++-- code/frameworks/html-vite/package.json | 4 ++-- code/frameworks/html-webpack5/package.json | 4 ++-- code/frameworks/nextjs/package.json | 4 ++-- code/frameworks/preact-webpack5/package.json | 4 ++-- code/frameworks/react-vite/package.json | 4 ++-- code/frameworks/react-webpack5/package.json | 4 ++-- code/frameworks/server-webpack5/package.json | 4 ++-- code/frameworks/svelte-vite/package.json | 4 ++-- code/frameworks/svelte-webpack5/package.json | 4 ++-- code/frameworks/sveltekit/package.json | 4 ++-- code/frameworks/vue3-vite/package.json | 4 ++-- code/frameworks/vue3-webpack5/package.json | 4 ++-- code/frameworks/web-components-vite/package.json | 4 ++-- .../web-components-webpack5/package.json | 4 ++-- code/lib/blocks/package.json | 4 ++-- code/lib/cli-storybook/package.json | 4 ++-- code/lib/cli/package.json | 12 ++++++------ code/lib/codemod/package.json | 4 ++-- code/lib/core-webpack/package.json | 4 ++-- code/lib/create-storybook/package.json | 8 ++++---- code/lib/csf-plugin/package.json | 8 ++++---- code/lib/instrumenter/package.json | 4 ++-- code/lib/react-dom-shim/package.json | 8 ++++---- code/lib/source-loader/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 | 8 ++++---- code/presets/server-webpack/package.json | 8 ++++---- code/presets/svelte-webpack/package.json | 8 ++++---- code/presets/vue3-webpack/package.json | 8 ++++---- code/renderers/html/package.json | 4 ++-- code/renderers/preact/package.json | 4 ++-- code/renderers/react/package.json | 8 ++++---- code/renderers/server/package.json | 4 ++-- code/renderers/vue3/package.json | 4 ++-- code/renderers/web-components/package.json | 4 ++-- 59 files changed, 150 insertions(+), 150 deletions(-) diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index 5865e56c819b..e6d8533f9798 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -28,9 +28,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 68db024428c8..96275b93501d 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./decorator": { "types": "./dist/decorator.d.ts", diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index fffb47e67fa6..474a82f29c04 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -28,9 +28,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index 9936235c6634..9f109664fdcb 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -28,9 +28,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index efdf3244d61c..5e3d735bfef6 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -27,9 +27,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index 7a8309d32dfa..63e90588853a 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./actions/preview": { "types": "./dist/actions/preview.d.ts", diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 139c1af27ee9..29e1f0352416 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -26,9 +26,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index fd1923974b9c..3e5bc0c94b45 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 49e68245b4f8..84e35aeb94d4 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -30,9 +30,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 625cf4e2aa09..e6d1175a502c 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./react": { "types": "./dist/react/index.d.ts", diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index 53145f129c04..d28e60d56672 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -27,9 +27,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/onboarding/package.json b/code/addons/onboarding/package.json index 42b6d45cf5f3..8d7c2ddb6189 100644 --- a/code/addons/onboarding/package.json +++ b/code/addons/onboarding/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./manager": "./dist/manager.js", "./preset": "./dist/preset.js", diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index e5fc174c3008..b46927903cee 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -30,9 +30,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index 22e63b0ff261..ec7ba777613c 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": "./dist/preset.js", "./manager": "./dist/manager.js", diff --git a/code/addons/themes/package.json b/code/addons/themes/package.json index d92b07a2b441..dd45712d437e 100644 --- a/code/addons/themes/package.json +++ b/code/addons/themes/package.json @@ -29,9 +29,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 0485aad344e7..1a59a4f7b0b4 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -28,9 +28,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 69fd2b088302..42fab30abd92 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/builders/builder-vite/package.json b/code/builders/builder-vite/package.json index 33ba109b475f..31fbf3013d04 100644 --- a/code/builders/builder-vite/package.json +++ b/code/builders/builder-vite/package.json @@ -20,9 +20,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./input/iframe.html": "./input/iframe.html", "./package.json": "./package.json" diff --git a/code/builders/builder-webpack5/package.json b/code/builders/builder-webpack5/package.json index 316fe19c3206..f7b4627a45e3 100644 --- a/code/builders/builder-webpack5/package.json +++ b/code/builders/builder-webpack5/package.json @@ -22,24 +22,24 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./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" + "require": "./dist/presets/custom-webpack-preset.js", + "node": "./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" + "require": "./dist/presets/preview-preset.js", + "node": "./dist/presets/preview-preset.js" }, "./loaders/export-order-loader": { "types": "./dist/loaders/export-order-loader.d.ts", - "node": "./dist/loaders/export-order-loader.js", - "require": "./dist/loaders/export-order-loader.js" + "require": "./dist/loaders/export-order-loader.js", + "node": "./dist/loaders/export-order-loader.js" }, "./templates/virtualModuleModernEntry.js.handlebars": "./templates/virtualModuleModernEntry.js.handlebars", "./templates/preview.ejs": "./templates/preview.ejs", diff --git a/code/deprecated/csf-tools/package.json b/code/deprecated/csf-tools/package.json index 6f2bc53cbf77..3f559726970a 100644 --- a/code/deprecated/csf-tools/package.json +++ b/code/deprecated/csf-tools/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./shim.d.ts", - "node": "./shim.js", "import": "./shim.mjs", - "require": "./shim.js" + "require": "./shim.js", + "node": "./shim.js" }, "./package.json": "./package.json" }, diff --git a/code/deprecated/router/package.json b/code/deprecated/router/package.json index 582d0baf5b29..dd19a9b10dfa 100644 --- a/code/deprecated/router/package.json +++ b/code/deprecated/router/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./shim.d.ts", - "node": "./shim.js", "import": "./shim.mjs", - "require": "./shim.js" + "require": "./shim.js", + "node": "./shim.js" }, "./utils": { "types": "./utils.d.ts", diff --git a/code/deprecated/theming/package.json b/code/deprecated/theming/package.json index d21e5f81cb7a..68ec61d65cea 100644 --- a/code/deprecated/theming/package.json +++ b/code/deprecated/theming/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./shim.d.ts", - "node": "./shim.js", "import": "./shim.mjs", - "require": "./shim.js" + "require": "./shim.js", + "node": "./shim.js" }, "./create": { "types": "./create.d.ts", diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index e05df39ae337..2c1f0b1f8464 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index b73b460bd08e..7d8eefac527e 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index ef4e746eab0f..76adb05eb003 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/image-context": { "types": "./dist/image-context.d.ts", diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 497b1fcc7d7e..5fcee858a565 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 3574bb0e066c..016790b59979 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index 4267354e4183..00cb3b654172 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index cd2445f1d61a..aee37c717a6b 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index a835f420717e..784320a85306 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 6a00fc45a756..849bf1e834ba 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index dc6ee5519227..df6d07035b68 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/preview.mjs": { "import": "./dist/preview.mjs" diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 64306cfd2abe..956d6674ae19 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 4e094a34e57b..91c64a61c822 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 64de9aa0eb44..1f3fb89401da 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index 84df093c9a27..d9f79d5680b7 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index f562b10969f5..d0e6fc0327bb 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/cli-storybook/package.json b/code/lib/cli-storybook/package.json index 9e46b26fabd6..f077bf8b8e26 100644 --- a/code/lib/cli-storybook/package.json +++ b/code/lib/cli-storybook/package.json @@ -23,8 +23,8 @@ "type": "module", "exports": { "./bin/index.cjs": { - "node": "./bin/index.cjs", - "require": "./bin/index.cjs" + "require": "./bin/index.cjs", + "node": "./bin/index.cjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index 792ca1188a32..eb6bf4da9eab 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -28,19 +28,19 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.cjs", "import": "./dist/index.js", - "require": "./dist/index.cjs" + "require": "./dist/index.cjs", + "node": "./dist/index.cjs" }, "./bin/index.cjs": { - "node": "./bin/index.cjs", - "require": "./bin/index.cjs" + "require": "./bin/index.cjs", + "node": "./bin/index.cjs" }, "./core-path": { "types": "./dist/core-path.d.ts", - "node": "./dist/core-path.cjs", "import": "./dist/core-path.js", - "require": "./dist/core-path.cjs" + "require": "./dist/core-path.cjs", + "node": "./dist/core-path.cjs" }, "./package.json": "./package.json", "./core": { diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index c3968cbf935d..a0e86da880f0 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -23,8 +23,8 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./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-webpack/package.json b/code/lib/core-webpack/package.json index 4ba6334c8f3f..fce6021ade6f 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/create-storybook/package.json b/code/lib/create-storybook/package.json index 778c28b8d975..e3138e6e127b 100644 --- a/code/lib/create-storybook/package.json +++ b/code/lib/create-storybook/package.json @@ -21,13 +21,13 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.cjs", "import": "./dist/index.js", - "require": "./dist/index.cjs" + "require": "./dist/index.cjs", + "node": "./dist/index.cjs" }, "./bin/index.cjs": { - "node": "./bin/index.cjs", - "require": "./bin/index.cjs" + "require": "./bin/index.cjs", + "node": "./bin/index.cjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index b96a6fdfb9ab..2133329094f7 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -23,15 +23,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/webpack-loader": { "types": "./dist/webpack-loader.d.ts", - "node": "./dist/webpack-loader.js", "import": "./dist/webpack-loader.mjs", - "require": "./dist/webpack-loader.js" + "require": "./dist/webpack-loader.js", + "node": "./dist/webpack-loader.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index 4a2eb0fa78cd..70a80d1f2e05 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/react-dom-shim/package.json b/code/lib/react-dom-shim/package.json index a011261630bb..54b8d81859df 100644 --- a/code/lib/react-dom-shim/package.json +++ b/code/lib/react-dom-shim/package.json @@ -23,15 +23,15 @@ "exports": { ".": { "types": "./dist/react-18.d.ts", - "node": "./dist/react-18.js", "import": "./dist/react-18.mjs", - "require": "./dist/react-18.js" + "require": "./dist/react-18.js", + "node": "./dist/react-18.js" }, "./dist/react-16": { "types": "./dist/react-16.d.ts", - "node": "./dist/react-16.js", "import": "./dist/react-16.mjs", - "require": "./dist/react-16.js" + "require": "./dist/react-16.js", + "node": "./dist/react-16.js" }, "./dist/preset": { "types": "./dist/preset.d.ts", diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index ab7f4837b156..6dd1305af61e 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -24,9 +24,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 7b11694de959..441fbdfccd0b 100644 --- a/code/presets/create-react-app/package.json +++ b/code/presets/create-react-app/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 5a4c14b31378..94203fbfd0db 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 9f3d79142c1c..03fc1681ff88 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 620afd53a21c..06f47ac2486d 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/framework-preset-cra": { "types": "./dist/framework-preset-cra.d.ts", diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 45d124c3db8b..06c0e6ec06e5 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/loader": { "types": "./dist/loader.d.ts", diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index 908e025ecf7e..7c53e0b7d210 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/framework-preset-svelte-docs": { "types": "./dist/framework-preset-svelte-docs.d.ts", diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index ef4d3f406664..ed27d730ea85 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./dist/framework-preset-vue3-docs": { "types": "./dist/framework-preset-vue3-docs.d.ts", diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index 16aa10345e04..6e01a5e6b86e 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index dc829c2db529..ba562ce1146c 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 1b48610bac55..228482e9470f 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./experimental-playwright": { "types": "./dist/playwright.d.ts", - "node": "./dist/playwright.js", "import": "./dist/playwright.mjs", - "require": "./dist/playwright.js" + "require": "./dist/playwright.js", + "node": "./dist/playwright.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 37d6df8cdc3d..85d0999ab04b 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 4be2478f2f2d..e4651d4e7d24 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -28,9 +28,9 @@ }, "./experimental-playwright": { "types": "./dist/playwright.d.ts", - "node": "./dist/playwright.js", "import": "./dist/playwright.mjs", - "require": "./dist/playwright.js" + "require": "./dist/playwright.js", + "node": "./dist/playwright.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index 7fd65758695e..c3574926837a 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.js", + "node": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", From f1147906d29c8df6428044c6fd6826cba393293a Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Thu, 8 Aug 2024 10:50:35 +0200 Subject: [PATCH 2/2] Revert CLI/builder packages --- code/builders/builder-vite/package.json | 4 ++-- code/builders/builder-webpack5/package.json | 16 ++++++++-------- code/frameworks/html-vite/package.json | 4 ++-- code/frameworks/html-webpack5/package.json | 4 ++-- code/frameworks/nextjs/package.json | 4 ++-- code/frameworks/preact-webpack5/package.json | 4 ++-- code/frameworks/react-vite/package.json | 4 ++-- code/frameworks/react-webpack5/package.json | 4 ++-- code/frameworks/server-webpack5/package.json | 4 ++-- code/frameworks/svelte-vite/package.json | 4 ++-- code/frameworks/svelte-webpack5/package.json | 4 ++-- code/frameworks/sveltekit/package.json | 4 ++-- code/frameworks/vue3-vite/package.json | 4 ++-- code/frameworks/vue3-webpack5/package.json | 4 ++-- code/frameworks/web-components-vite/package.json | 4 ++-- .../web-components-webpack5/package.json | 4 ++-- code/lib/cli-storybook/package.json | 4 ++-- code/lib/cli/package.json | 12 ++++++------ code/lib/codemod/package.json | 4 ++-- code/lib/core-webpack/package.json | 4 ++-- code/lib/create-storybook/package.json | 8 ++++---- code/lib/csf-plugin/package.json | 8 ++++---- 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 | 8 ++++---- code/presets/server-webpack/package.json | 8 ++++---- code/presets/svelte-webpack/package.json | 8 ++++---- code/presets/vue3-webpack/package.json | 8 ++++---- 29 files changed, 86 insertions(+), 86 deletions(-) diff --git a/code/builders/builder-vite/package.json b/code/builders/builder-vite/package.json index 31fbf3013d04..33ba109b475f 100644 --- a/code/builders/builder-vite/package.json +++ b/code/builders/builder-vite/package.json @@ -20,9 +20,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./input/iframe.html": "./input/iframe.html", "./package.json": "./package.json" diff --git a/code/builders/builder-webpack5/package.json b/code/builders/builder-webpack5/package.json index f7b4627a45e3..316fe19c3206 100644 --- a/code/builders/builder-webpack5/package.json +++ b/code/builders/builder-webpack5/package.json @@ -22,24 +22,24 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./presets/custom-webpack-preset": { "types": "./dist/presets/custom-webpack-preset.d.ts", - "require": "./dist/presets/custom-webpack-preset.js", - "node": "./dist/presets/custom-webpack-preset.js" + "node": "./dist/presets/custom-webpack-preset.js", + "require": "./dist/presets/custom-webpack-preset.js" }, "./presets/preview-preset": { "types": "./dist/presets/preview-preset.d.ts", - "require": "./dist/presets/preview-preset.js", - "node": "./dist/presets/preview-preset.js" + "node": "./dist/presets/preview-preset.js", + "require": "./dist/presets/preview-preset.js" }, "./loaders/export-order-loader": { "types": "./dist/loaders/export-order-loader.d.ts", - "require": "./dist/loaders/export-order-loader.js", - "node": "./dist/loaders/export-order-loader.js" + "node": "./dist/loaders/export-order-loader.js", + "require": "./dist/loaders/export-order-loader.js" }, "./templates/virtualModuleModernEntry.js.handlebars": "./templates/virtualModuleModernEntry.js.handlebars", "./templates/preview.ejs": "./templates/preview.ejs", diff --git a/code/frameworks/html-vite/package.json b/code/frameworks/html-vite/package.json index 2c1f0b1f8464..e05df39ae337 100644 --- a/code/frameworks/html-vite/package.json +++ b/code/frameworks/html-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/html-webpack5/package.json b/code/frameworks/html-webpack5/package.json index 7d8eefac527e..b73b460bd08e 100644 --- a/code/frameworks/html-webpack5/package.json +++ b/code/frameworks/html-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index 76adb05eb003..ef4e746eab0f 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -23,9 +23,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/image-context": { "types": "./dist/image-context.d.ts", diff --git a/code/frameworks/preact-webpack5/package.json b/code/frameworks/preact-webpack5/package.json index 5fcee858a565..497b1fcc7d7e 100644 --- a/code/frameworks/preact-webpack5/package.json +++ b/code/frameworks/preact-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 016790b59979..3574bb0e066c 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/react-webpack5/package.json b/code/frameworks/react-webpack5/package.json index 00cb3b654172..4267354e4183 100644 --- a/code/frameworks/react-webpack5/package.json +++ b/code/frameworks/react-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/server-webpack5/package.json b/code/frameworks/server-webpack5/package.json index aee37c717a6b..cd2445f1d61a 100644 --- a/code/frameworks/server-webpack5/package.json +++ b/code/frameworks/server-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/svelte-vite/package.json b/code/frameworks/svelte-vite/package.json index 784320a85306..a835f420717e 100644 --- a/code/frameworks/svelte-vite/package.json +++ b/code/frameworks/svelte-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/svelte-webpack5/package.json b/code/frameworks/svelte-webpack5/package.json index 849bf1e834ba..6a00fc45a756 100644 --- a/code/frameworks/svelte-webpack5/package.json +++ b/code/frameworks/svelte-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/sveltekit/package.json b/code/frameworks/sveltekit/package.json index df6d07035b68..dc6ee5519227 100644 --- a/code/frameworks/sveltekit/package.json +++ b/code/frameworks/sveltekit/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/preview.mjs": { "import": "./dist/preview.mjs" diff --git a/code/frameworks/vue3-vite/package.json b/code/frameworks/vue3-vite/package.json index 956d6674ae19..64306cfd2abe 100644 --- a/code/frameworks/vue3-vite/package.json +++ b/code/frameworks/vue3-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/vue3-webpack5/package.json b/code/frameworks/vue3-webpack5/package.json index 91c64a61c822..4e094a34e57b 100644 --- a/code/frameworks/vue3-webpack5/package.json +++ b/code/frameworks/vue3-webpack5/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index 1f3fb89401da..64de9aa0eb44 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/frameworks/web-components-webpack5/package.json b/code/frameworks/web-components-webpack5/package.json index d9f79d5680b7..84df093c9a27 100644 --- a/code/frameworks/web-components-webpack5/package.json +++ b/code/frameworks/web-components-webpack5/package.json @@ -25,9 +25,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/preset.d.ts", diff --git a/code/lib/cli-storybook/package.json b/code/lib/cli-storybook/package.json index f077bf8b8e26..9e46b26fabd6 100644 --- a/code/lib/cli-storybook/package.json +++ b/code/lib/cli-storybook/package.json @@ -23,8 +23,8 @@ "type": "module", "exports": { "./bin/index.cjs": { - "require": "./bin/index.cjs", - "node": "./bin/index.cjs" + "node": "./bin/index.cjs", + "require": "./bin/index.cjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/cli/package.json b/code/lib/cli/package.json index eb6bf4da9eab..792ca1188a32 100644 --- a/code/lib/cli/package.json +++ b/code/lib/cli/package.json @@ -28,19 +28,19 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.cjs", "import": "./dist/index.js", - "require": "./dist/index.cjs", - "node": "./dist/index.cjs" + "require": "./dist/index.cjs" }, "./bin/index.cjs": { - "require": "./bin/index.cjs", - "node": "./bin/index.cjs" + "node": "./bin/index.cjs", + "require": "./bin/index.cjs" }, "./core-path": { "types": "./dist/core-path.d.ts", + "node": "./dist/core-path.cjs", "import": "./dist/core-path.js", - "require": "./dist/core-path.cjs", - "node": "./dist/core-path.cjs" + "require": "./dist/core-path.cjs" }, "./package.json": "./package.json", "./core": { diff --git a/code/lib/codemod/package.json b/code/lib/codemod/package.json index a0e86da880f0..c3968cbf935d 100644 --- a/code/lib/codemod/package.json +++ b/code/lib/codemod/package.json @@ -23,8 +23,8 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "node": "./dist/index.js" + "node": "./dist/index.js", + "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-webpack/package.json b/code/lib/core-webpack/package.json index fce6021ade6f..4ba6334c8f3f 100644 --- a/code/lib/core-webpack/package.json +++ b/code/lib/core-webpack/package.json @@ -22,9 +22,9 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/create-storybook/package.json b/code/lib/create-storybook/package.json index e3138e6e127b..778c28b8d975 100644 --- a/code/lib/create-storybook/package.json +++ b/code/lib/create-storybook/package.json @@ -21,13 +21,13 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.cjs", "import": "./dist/index.js", - "require": "./dist/index.cjs", - "node": "./dist/index.cjs" + "require": "./dist/index.cjs" }, "./bin/index.cjs": { - "require": "./bin/index.cjs", - "node": "./bin/index.cjs" + "node": "./bin/index.cjs", + "require": "./bin/index.cjs" }, "./package.json": "./package.json" }, diff --git a/code/lib/csf-plugin/package.json b/code/lib/csf-plugin/package.json index 2133329094f7..b96a6fdfb9ab 100644 --- a/code/lib/csf-plugin/package.json +++ b/code/lib/csf-plugin/package.json @@ -23,15 +23,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/webpack-loader": { "types": "./dist/webpack-loader.d.ts", + "node": "./dist/webpack-loader.js", "import": "./dist/webpack-loader.mjs", - "require": "./dist/webpack-loader.js", - "node": "./dist/webpack-loader.js" + "require": "./dist/webpack-loader.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/create-react-app/package.json b/code/presets/create-react-app/package.json index 441fbdfccd0b..7b11694de959 100644 --- a/code/presets/create-react-app/package.json +++ b/code/presets/create-react-app/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/html-webpack/package.json b/code/presets/html-webpack/package.json index 94203fbfd0db..5a4c14b31378 100644 --- a/code/presets/html-webpack/package.json +++ b/code/presets/html-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/preact-webpack/package.json b/code/presets/preact-webpack/package.json index 03fc1681ff88..9f3d79142c1c 100644 --- a/code/presets/preact-webpack/package.json +++ b/code/presets/preact-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/presets/react-webpack/package.json b/code/presets/react-webpack/package.json index 06f47ac2486d..620afd53a21c 100644 --- a/code/presets/react-webpack/package.json +++ b/code/presets/react-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/framework-preset-cra": { "types": "./dist/framework-preset-cra.d.ts", diff --git a/code/presets/server-webpack/package.json b/code/presets/server-webpack/package.json index 06c0e6ec06e5..45d124c3db8b 100644 --- a/code/presets/server-webpack/package.json +++ b/code/presets/server-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/loader": { "types": "./dist/loader.d.ts", diff --git a/code/presets/svelte-webpack/package.json b/code/presets/svelte-webpack/package.json index 7c53e0b7d210..908e025ecf7e 100644 --- a/code/presets/svelte-webpack/package.json +++ b/code/presets/svelte-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/framework-preset-svelte-docs": { "types": "./dist/framework-preset-svelte-docs.d.ts", diff --git a/code/presets/vue3-webpack/package.json b/code/presets/vue3-webpack/package.json index ed27d730ea85..ef4d3f406664 100644 --- a/code/presets/vue3-webpack/package.json +++ b/code/presets/vue3-webpack/package.json @@ -22,15 +22,15 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": { "types": "./dist/index.d.ts", + "node": "./dist/index.js", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./dist/framework-preset-vue3-docs": { "types": "./dist/framework-preset-vue3-docs.d.ts",