Skip to content

Commit ab07477

Browse files
committed
feat: Add typings to npm package
1 parent d79333a commit ab07477

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
},
3737
"files": [
3838
"common/*.js",
39+
"common/*.d.ts",
3940
"bindings/*.js",
40-
"*.js"
41+
"bindings/*.d.ts",
42+
"*.js",
43+
"*.d.ts"
4144
],
4245
"author": "chriseth",
4346
"license": "MIT",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// TODO: Drop it in the next breaking release.
1010
"esModuleInterop": true,
1111
"outDir": "./dist",
12+
"declaration": true,
1213
"forceConsistentCasingInFileNames": true,
1314
// Allow JS must be included to ensure that the built binary is included
1415
// in the output. This could be copied directly in the future if required.

0 commit comments

Comments
 (0)