From 0200052e0976a08555d32024831b4750915d6e60 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Thu, 16 May 2024 16:59:34 +0200 Subject: [PATCH] Fix addon-docs --- code/addons/docs/package.json | 11 ++--------- code/addons/essentials/src/docs/preset.ts | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 3a5cd35408f5..834b60bd1d04 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -36,11 +36,7 @@ "require": "./dist/preview.js", "import": "./dist/preview.mjs" }, - "./preset": { - "types": "./dist/preset.d.ts", - "require": "./dist/preset.js", - "import": "./dist/preset.js" - }, + "./preset": "./dist/preset.js", "./blocks": { "types": "./dist/blocks.d.ts", "require": "./dist/blocks.js", @@ -51,10 +47,7 @@ "require": "./dist/preview.js", "import": "./dist/preview.mjs" }, - "./dist/preset": { - "types": "./dist/preset.d.ts", - "require": "./dist/preset.js" - }, + "./dist/preset": "./dist/preset.js", "./dist/shims/mdx-react-shim": { "types": "./dist/shims/mdx-react-shim.d.ts", "require": "./dist/shims/mdx-react-shim.js", diff --git a/code/addons/essentials/src/docs/preset.ts b/code/addons/essentials/src/docs/preset.ts index 5c7409f65b14..c83906ca5406 100644 --- a/code/addons/essentials/src/docs/preset.ts +++ b/code/addons/essentials/src/docs/preset.ts @@ -1,5 +1,6 @@ import { dirname, join } from 'path'; +// @ts-expect-error no types export * from '@storybook/addon-docs/dist/preset'; export const mdxLoaderOptions = async (config: any) => {