Skip to content

Commit

Permalink
move types into exports
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Jul 3, 2023
1 parent c9f02f4 commit d601192
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/eds-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"exports": {
"node": {
"module": "./dist/esm/index.mjs",
"require": "./dist/icons.cjs.js"
"require": "./dist/icons.cjs"
},
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.mjs"
},
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"author": {
"name": "EDS Core Team",
Expand Down
5 changes: 4 additions & 1 deletion packages/eds-icons/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export default [
format: 'es',
entryFileNames: '[name].mjs',
},
{ file: pkg.exports.node.require, format: 'cjs' },
{
file: pkg.exports.node.require,
format: 'cjs',
},
],
},
]

0 comments on commit d601192

Please sign in to comment.