Skip to content

Commit 4e29113

Browse files
Update domain-task to use TS 2.0 and @types
1 parent 7f257e8 commit 4e29113

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/typings/
21
/node_modules/
32
/*.js
43
/*.d.ts

src/Microsoft.AspNetCore.SpaServices/npm/domain-task/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Tracks outstanding operations for a logical thread of execution",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"domain-task\"'",
7+
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"domain-task\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
@@ -21,6 +21,8 @@
2121
"isomorphic-fetch": "^2.2.1"
2222
},
2323
"devDependencies": {
24+
"@types/node": "^6.0.42",
25+
"@types/whatwg-fetch": "0.0.31",
2426
"rimraf": "^2.5.4",
2527
"typescript": "^2.0.0"
2628
}

src/Microsoft.AspNetCore.SpaServices/npm/domain-task/src/isomorphic-fetch.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/Microsoft.AspNetCore.SpaServices/npm/domain-task/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"module": "commonjs",
55
"target": "es5",
66
"declaration": true,
7-
"outDir": "."
7+
"outDir": ".",
8+
"lib": ["es2015", "dom"]
89
},
10+
"files": [
11+
"src/index.ts",
12+
"src/domain-context.d.ts"
13+
],
914
"exclude": [
1015
"node_modules"
1116
]

src/Microsoft.AspNetCore.SpaServices/npm/domain-task/tsd.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)