Skip to content

Commit

Permalink
fix(build): dist
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Mar 25, 2024
1 parent 740cf63 commit 09751c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/storybook-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/storybook-blocks/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 09751c1

Please sign in to comment.