include the exports property in the root package.json to allow node environments to use cjs or esm bundles

This commit is contained in:
Moe Jangda
2023-02-19 16:27:52 -06:00
committed by fiatjaf_
parent 165ff44dff
commit 04a46b815c

View File

@@ -7,7 +7,11 @@
"url": "https://github.com/fiatjaf/nostr-tools.git"
},
"main": "lib/nostr.cjs.js",
"module": "lib/nostr.esm.js",
"module": "lib/esm/nostr.mjs",
"exports": {
"import": "./lib/esm/nostr.mjs",
"require": "./lib/nostr.cjs.js"
},
"dependencies": {
"@noble/hashes": "1.0.0",
"@noble/secp256k1": "^1.7.1",