diff --git a/package.json b/package.json index df5a7c57..19f4734b 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,11 @@ }, "files": [ "common/*.js", + "common/*.d.ts", "bindings/*.js", - "*.js" + "bindings/*.d.ts", + "*.js", + "*.d.ts" ], "author": "chriseth", "license": "MIT", diff --git a/tsconfig.json b/tsconfig.json index a4420494..ed206326 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ // TODO: Drop it in the next breaking release. "esModuleInterop": true, "outDir": "./dist", + "declaration": true, "forceConsistentCasingInFileNames": true, // Allow JS must be included to ensure that the built binary is included // in the output. This could be copied directly in the future if required.