From 414dc64ae170b25712eec7a1c6dda9cec675927c Mon Sep 17 00:00:00 2001 From: Mikhail Bashkirov Date: Mon, 23 Sep 2024 22:02:27 +0200 Subject: [PATCH] fix CJS standard loading path for the framework preset --- packages/storybook-framework-web-components/index.d.ts | 2 -- packages/storybook-framework-web-components/package.json | 8 ++------ packages/storybook-framework-web-components/preset.d.ts | 2 -- packages/storybook-framework-web-components/preset.js | 1 + packages/storybook-framework-web-components/preset.mjs | 6 ------ 5 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 packages/storybook-framework-web-components/index.d.ts delete mode 100644 packages/storybook-framework-web-components/preset.d.ts create mode 100644 packages/storybook-framework-web-components/preset.js delete mode 100644 packages/storybook-framework-web-components/preset.mjs diff --git a/packages/storybook-framework-web-components/index.d.ts b/packages/storybook-framework-web-components/index.d.ts deleted file mode 100644 index 06811aaaf..000000000 --- a/packages/storybook-framework-web-components/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -// this file is autogenerated with the generate-mjs-dts-entrypoints script -export * from './dist/index.js'; diff --git a/packages/storybook-framework-web-components/package.json b/packages/storybook-framework-web-components/package.json index 3db5c5e4b..358ad2512 100644 --- a/packages/storybook-framework-web-components/package.json +++ b/packages/storybook-framework-web-components/package.json @@ -18,13 +18,9 @@ ".": { "require": "./dist/index.js", "import": "./index.mjs", - "types": "./index.d.ts" - }, - "./preset": { - "require": "./dist/preset.js", - "import": "./preset.mjs", - "types": "./preset.d.ts" + "types": "./dist/index.d.ts" }, + "./preset": "./preset.js", "./package.json": "./package.json" }, "engines": { diff --git a/packages/storybook-framework-web-components/preset.d.ts b/packages/storybook-framework-web-components/preset.d.ts deleted file mode 100644 index 0c87188b2..000000000 --- a/packages/storybook-framework-web-components/preset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -// this file is autogenerated with the generate-mjs-dts-entrypoints script -export * from './dist/preset.js'; diff --git a/packages/storybook-framework-web-components/preset.js b/packages/storybook-framework-web-components/preset.js new file mode 100644 index 000000000..ecf1572f9 --- /dev/null +++ b/packages/storybook-framework-web-components/preset.js @@ -0,0 +1 @@ +module.exports = require('./dist/preset.js'); diff --git a/packages/storybook-framework-web-components/preset.mjs b/packages/storybook-framework-web-components/preset.mjs deleted file mode 100644 index 27db30440..000000000 --- a/packages/storybook-framework-web-components/preset.mjs +++ /dev/null @@ -1,6 +0,0 @@ -// this file is autogenerated with the generate-mjs-dts-entrypoints script -import cjsEntrypoint from './dist/preset.js'; - -const { core } = cjsEntrypoint; - -export { core };