add type definition

fixes #138
This commit is contained in:
BilligsterUser 2023-02-27 23:40:16 +01:00 committed by fiatjaf_
parent bcefaa0757
commit 673f4abab8
3 changed files with 7 additions and 1 deletions

View File

@ -12,5 +12,9 @@ test: build
testOnly file: build
jest {{file}}
types:
npx tsc
publish: build
types
npm publish

View File

@ -6,6 +6,8 @@
"type": "git",
"url": "https://github.com/nbd-wtf/nostr-tools.git"
},
"files": ["./lib/**/*"],
"types": "./lib/index.d.ts",
"main": "lib/nostr.cjs.js",
"module": "lib/esm/nostr.mjs",
"exports": {

View File

@ -9,7 +9,7 @@
"skipLibCheck": true,
"esModuleInterop": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"outDir": "lib",
"rootDir": "."
}
}