fix package.json exports to work in node as well as browser

This commit is contained in:
Dylan Oliver 2022-03-17 22:29:03 -04:00 committed by Franck Royer
parent d879b68529
commit 565ffb18fb
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,13 @@
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/esm/index.js",
"exports": "./",
"exports": {
"node": {
"module": "./build/esm/index.js",
"import": "./build/main/index.js"
},
"default": "./build/main/index.js"
},
"repository": "https://github.com/status-im/js-waku",
"license": "MIT OR Apache-2.0",
"keywords": [