TypeScript definitions (#18)

This commit is contained in:
Lennon Day-Reynolds
2022-07-15 11:49:49 -07:00
committed by GitHub
parent 2f7e3f8473
commit 821a8f7895
11 changed files with 195 additions and 12 deletions

View File

@@ -6,6 +6,7 @@
"type": "git",
"url": "https://github.com/fiatjaf/nostr-tools.git"
},
"type": "module",
"dependencies": {
"@noble/hashes": "^0.5.7",
"@noble/secp256k1": "^1.5.2",
@@ -31,14 +32,18 @@
],
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@types/node": "^18.0.3",
"esbuild": "^0.14.38",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "^8.5.0",
"eslint-plugin-babel": "^5.3.1",
"esm-loader-typescript": "^1.0.1",
"events": "^3.3.0",
"readable-stream": "^3.6.0"
"tsd": "^0.22.0",
"typescript": "^4.7.4"
},
"scripts": {
"prepublish": "node build.js"
"prepublish": "node build.cjs",
"check-ts": "tsd && node --no-warnings --loader=esm-loader-typescript index.test-d.ts"
}
}