Skip to content

Commit 7f257e8

Browse files
Update aspnet-webpack-react to use TS 2.0 and @types
1 parent 5c05054 commit 7f257e8

File tree

4 files changed

+13
-24
lines changed

4 files changed

+13
-24
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/aspnet-webpack-react/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Helpers for using Webpack with React in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
7+
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
@@ -23,11 +23,15 @@
2323
"babel-preset-es2015": "^6.6.0",
2424
"babel-preset-react": "^6.5.0",
2525
"react": "^15.0.0",
26-
"react-transform-hmr": "^1.0.4",
27-
"webpack": "^1.12.14"
26+
"react-transform-hmr": "^1.0.4"
2827
},
2928
"devDependencies": {
29+
"@types/webpack": "^1.12.34",
3030
"rimraf": "^2.5.4",
31-
"typescript": "^1.8.10"
31+
"typescript": "^2.0.0",
32+
"webpack": "^1.12.14"
33+
},
34+
"peerDependencies": {
35+
"webpack": "^1.12.14"
3236
}
3337
}

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"module": "commonjs",
55
"target": "es5",
66
"declaration": true,
7-
"outDir": "."
7+
"outDir": ".",
8+
"lib": ["es2015"]
89
},
10+
"files": [
11+
"src/index.ts"
12+
],
913
"exclude": [
1014
"node_modules"
1115
]

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack-react/tsd.json

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

0 commit comments

Comments
 (0)