mirror of https://github.com/grpc/grpc-node.git
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:
parent
edc83318b6
commit
38637405df
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue