diff --git a/package.json b/package.json index ca93a8f..bc74970 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,11 @@ "name": "next-websockets", "version": "1.0.0", "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", "repository": "git@github.com:selimaj-dev/next-websockets.git", "author": "Klesti Selimaj ", "license": "Apache-2.0", - "type": "module", "bin": { "next-websockets": "dist/bin/index.js" }, diff --git a/tsconfig.json b/tsconfig.json index 539f3a7..2ed9476 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,8 @@ "isolatedModules": true, "incremental": true, "outDir": "./dist", + "declaration": true, + "declarationMap": true, "paths": { "@/*": ["./src/*"] },