fix buffer import and use rollup for transpiling the package.

This commit is contained in:
fiatjaf
2021-12-11 07:53:44 -03:00
parent cc2ced1558
commit 8edcea2ed3
6 changed files with 35 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
{
"name": "nostr-tools",
"version": "0.6.0",
"version": "0.6.2",
"description": "Tools for making a Nostr client.",
"main": "index.js",
"main": "dist/nostr-tools.esm.min.js",
"module": "dist/nostr-tools.esm.min.js",
"browser": "dist/nostr-tools.umd.min.js",
"repository": {
"type": "git",
"url": "https://github.com/fiatjaf/nostr-tools.git"
@@ -24,5 +26,14 @@
"censorship",
"censorship-resistance",
"client"
]
],
"devDependencies": {
"rollup": "^2.61.1"
},
"files": [
"dist"
],
"scripts": {
"prepublish": "rollup -c"
}
}