support commonjs and mjs

This commit is contained in:
2021-05-26 20:20:19 -05:00
parent 676abd2909
commit 7f69b8c2a3
3 changed files with 41 additions and 9 deletions

View File

@@ -23,15 +23,22 @@
"altcoin",
"cryptocurrency"
],
"main": "dist/repertory-js.mjs",
"module": "dist/repertory-js.mjs",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist"
"dist/cjs",
"dist/mjs"
],
"scripts": {
"build": "rollup -c",
"build": "rollup -c && ./fixup",
"test": "jest",
"prepublish": "rollup -c --silent"
"prepublish": "rollup -c --silent && ./fixup"
},
"dependencies": {
"int64-buffer": "^1.0.0",