Skip to content

Commit

Permalink
fix: export CJS and MJS correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Oct 13, 2024
1 parent ce179d9 commit 0d821d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"license": "MIT",
"main": "lib/index.cjs",
"module": "lib/index.js",
"module": "lib/index.mjs",
"name": "minestat-es",
"repository": {
"type": "git",
Expand All @@ -47,7 +47,6 @@
"test": "jest",
"version": "auto-changelog -p -b 10 -l 10 && git add CHANGELOG.md"
},
"type": "module",
"types": "lib/index.d.ts",
"version": "2.2.1",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
input: './src/index.ts',
output: [
{
file: './lib/index.js',
file: './lib/index.mjs',
format: 'esm'
},
{
Expand Down

0 comments on commit 0d821d6

Please sign in to comment.