Update redux-typed to use TS 2.0 and @types

This commit is contained in:
SteveSandersonMS
2016-10-05 14:37:13 +01:00
parent 02315b41c0
commit c33b227331
4 changed files with 10 additions and 22 deletions

View File

@@ -1,4 +1,3 @@
/typings/
/node_modules/ /node_modules/
/*.js /*.js
/*.d.ts /*.d.ts

View File

@@ -5,7 +5,7 @@
"main": "main.js", "main": "main.js",
"typings": "main.d.ts", "typings": "main.d.ts",
"scripts": { "scripts": {
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"redux-typed\"'", "prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"redux-typed\"'",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Microsoft", "author": "Microsoft",
@@ -18,7 +18,10 @@
"url": "https://github.com/aspnet/JavaScriptServices.git" "url": "https://github.com/aspnet/JavaScriptServices.git"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^0.14.38",
"@types/react-redux": "^4.4.32",
"@types/redux": "^3.5.30",
"rimraf": "^2.5.4", "rimraf": "^2.5.4",
"typescript": "^1.8.10" "typescript": "^2.0.0"
} }
} }

View File

@@ -4,8 +4,12 @@
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es5",
"declaration": true, "declaration": true,
"outDir": "." "outDir": ".",
"lib": ["es2015", "dom"]
}, },
"files": [
"src/main.ts"
],
"exclude": [ "exclude": [
"node_modules" "node_modules"
] ]

View File

@@ -1,18 +0,0 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"react/react.d.ts": {
"commit": "f4b1797c1201b6c575668f5d7ea12d9b1ab21846"
},
"react-redux/react-redux.d.ts": {
"commit": "f4b1797c1201b6c575668f5d7ea12d9b1ab21846"
},
"redux/redux.d.ts": {
"commit": "f4b1797c1201b6c575668f5d7ea12d9b1ab21846"
}
}
}