Skip to content

Commit

Permalink
fix: publish as esm module, fixes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
EGOIST committed Apr 17, 2022
1 parent 5cda62e commit 8688cf3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
"files": [
"dist"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "tsup src/index.ts --format cjs --dts",
"build": "tsup src/index.ts --format cjs,esm --dts",
"test": "npm run build && uvu -r esbuild-register --ignore fixtures",
"prepublishOnly": "npm run build"
},
Expand Down

0 comments on commit 8688cf3

Please sign in to comment.