Include typescript definitions in NPM package (#240)
This commit is contained in:
Родитель
0515f7c753
Коммит
7e43155edf
|
@ -13,8 +13,8 @@ Tests
|
|||
|
||||
# Don't publish source files that aren't needed in package
|
||||
*.ts
|
||||
!*.d.ts
|
||||
*.js.map
|
||||
*.d.ts
|
||||
.travis.yml
|
||||
.ntvs_analysis.dat
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/// <reference path="../node_modules/zone.js/dist/zone.js.d.ts" />
|
||||
|
||||
import http = require("http");
|
||||
import Util = require("../Library/Util");
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"url": "https://github.com/Microsoft/ApplicationInsights-node.js"
|
||||
},
|
||||
"main": "./out/applicationinsights.js",
|
||||
"types": "./out/applicationinsights.d.ts",
|
||||
"keywords": [
|
||||
"exception monitoring",
|
||||
"request monitoring",
|
||||
|
|
|
@ -8,5 +8,15 @@
|
|||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"*.ts",
|
||||
"Tests/**/*.ts"
|
||||
],
|
||||
"files": [
|
||||
"./node_modules/zone.js/dist/zone.js.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче