Skip to content

Commit

Permalink
fix(pkg): fix top level named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 12, 2020
1 parent 7abcf71 commit 0b51462
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ dist
types
.conf*
/node.*
/browser.*
/index.*
/*.d.ts
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js"
},
"./node": {
"import": "./node.mjs",
"require": "./node.js"
Expand All @@ -16,10 +20,8 @@
"types": "./dist/index.d.ts",
"files": [
"dist",
"browser.js",
"browser.mjs",
"node.js",
"node.mjs"
"node.*",
"index.*"
],
"scripts": {
"build": "siroc build",
Expand Down

0 comments on commit 0b51462

Please sign in to comment.