Include index.d.ts in the published npm package

index.d.ts needs to be in the files list in order to be published.
Without it, client packages aren't able to use the Typescript types.
This commit is contained in:
Thom Wright 2017-10-31 14:12:22 +00:00
parent edc83318b6
commit 38637405df
2 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,7 @@
}
],
"directories": {
"lib": "src/node/src"
"lib": "src"
},
"scripts": {
"build": "./node_modules/.bin/node-pre-gyp build",
@ -53,6 +53,7 @@
"README.md",
"deps/grpc/etc/",
"index.js",
"index.d.ts",
"src/*.js",
"ext/*.{cc,h}",
"deps/grpc/include/grpc/**/*.h",
@ -66,7 +67,7 @@
"binding.gyp"
],
"main": "index.js",
"typings": "src/index.d.ts",
"typings": "index.d.ts",
"license": "Apache-2.0",
"jshintConfig": {
"bitwise": true,

View File

@ -18,7 +18,7 @@
}
],
"directories": {
"lib": "src/node/src"
"lib": "src"
},
"scripts": {
"build": "./node_modules/.bin/node-pre-gyp build",
@ -55,6 +55,7 @@
"README.md",
"deps/grpc/etc/",
"index.js",
"index.d.ts",
"src/*.js",
"ext/*.{cc,h}",
"deps/grpc/include/grpc/**/*.h",
@ -68,7 +69,7 @@
"binding.gyp"
],
"main": "index.js",
"typings": "src/index.d.ts",
"typings": "index.d.ts",
"license": "Apache-2.0",
"jshintConfig": {
"bitwise": true,