diff --git a/package.json b/package.json index 6e272ba..447ee46 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,19 @@ { - "private": true, "version": "0.1.0", "description": "Substreams Service Websockets", "name": "substreams-service-websockets", "homepage": "https://github.com/pinax-network/substreams-sink-websockets", "type": "module", + "types": "./dist/index.d.ts", + "exports": { + ".": "./dist/index.js" + }, "scripts": { "start": "bun run index.ts", + "prepublish": "tsc", "test": "bun test", "build": "bun build --compile ./index.ts --outfile substreams-service-websockets", - "dev": "bun run --watch index.ts", - "ping": "bun run examples/bun/ping.ts", - "subscribe": "bun run examples/bun/subscribe.ts", - "time": "bun run examples/bun/time.ts" + "dev": "bun run --watch index.ts" }, "dependencies": { "dotenv": "latest", diff --git a/tsconfig.json b/tsconfig.json index 9522ca6..4b7ba01 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ESNext", - "module": "ESNext", + "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "dist", "declaration": true,