diff --git a/justfile b/justfile index a45075e..1cef5a3 100644 --- a/justfile +++ b/justfile @@ -12,5 +12,9 @@ test: build testOnly file: build jest {{file}} +types: + npx tsc + publish: build + types npm publish diff --git a/package.json b/package.json index e30acc4..041565e 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tsconfig.json b/tsconfig.json index 22bbdb2..feb3821 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "skipLibCheck": true, "esModuleInterop": true, "emitDeclarationOnly": true, - "outDir": "dist", + "outDir": "lib", "rootDir": "." } }