From 09751c14a1bb8a36d04a60b73b46cfe9ef2e8bbf Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Mon, 25 Mar 2024 11:46:23 +0200 Subject: [PATCH] fix(build): dist --- packages/storybook-blocks/package.json | 6 +++++- packages/storybook-blocks/rollup.config.js | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/storybook-blocks/package.json b/packages/storybook-blocks/package.json index 6374a9a84a..2b45f71368 100644 --- a/packages/storybook-blocks/package.json +++ b/packages/storybook-blocks/package.json @@ -13,7 +13,11 @@ ], "main": "dist/index.js", "exports": { - ".": "./dist/index.js", + ".": { + "types": "./dist/index.d.ts", + "node": "./dist/index.js", + "import": "./dist/index.js" + }, "./index.css": "./dist/index.css", "./mixins": "./dist/_mixins.scss", "./types": "./dist/types/published-types.d.ts", diff --git a/packages/storybook-blocks/rollup.config.js b/packages/storybook-blocks/rollup.config.js index f4f2461ef2..ca0f4e3fd2 100644 --- a/packages/storybook-blocks/rollup.config.js +++ b/packages/storybook-blocks/rollup.config.js @@ -23,7 +23,9 @@ export default { preserveModules: true, preserveModulesRoot: '.', }, - input: path.join(SRC_PATH, 'index.ts'), + input: { + index: path.join(SRC_PATH, 'index.ts'), + }, external: [/node_modules/], plugins: [ svg(),