From 973668289b349d8399bffec77cbfe2706d3982ac Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Fri, 21 Oct 2016 10:30:56 +0100 Subject: [PATCH] Revert "Update redux-typed to use TS 2.0 and @types" This reverts commit c33b22733184eec83b62e8954de39d65a54084ff. --- .../npm/redux-typed/.gitignore | 1 + .../npm/redux-typed/package.json | 7 ++----- .../npm/redux-typed/tsconfig.json | 6 +----- .../npm/redux-typed/tsd.json | 18 ++++++++++++++++++ 4 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsd.json diff --git a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/.gitignore b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/.gitignore index 025755a..a1df9a5 100644 --- a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/.gitignore +++ b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/.gitignore @@ -1,3 +1,4 @@ +/typings/ /node_modules/ /*.js /*.d.ts diff --git a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/package.json b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/package.json index e3b14b9..e59439c 100644 --- a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/package.json +++ b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/package.json @@ -5,7 +5,7 @@ "main": "main.js", "typings": "main.d.ts", "scripts": { - "prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"redux-typed\"'", + "prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"redux-typed\"'", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Microsoft", @@ -18,10 +18,7 @@ "url": "https://github.com/aspnet/JavaScriptServices.git" }, "devDependencies": { - "@types/react": "^0.14.38", - "@types/react-redux": "^4.4.32", - "@types/redux": "^3.5.30", "rimraf": "^2.5.4", - "typescript": "^2.0.0" + "typescript": "^1.8.10" } } diff --git a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsconfig.json b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsconfig.json index 0617341..de676e9 100644 --- a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsconfig.json +++ b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsconfig.json @@ -4,12 +4,8 @@ "module": "commonjs", "target": "es5", "declaration": true, - "outDir": ".", - "lib": ["es2015", "dom"] + "outDir": "." }, - "files": [ - "src/main.ts" - ], "exclude": [ "node_modules" ] diff --git a/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsd.json b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsd.json new file mode 100644 index 0000000..f37a7f8 --- /dev/null +++ b/src/Microsoft.AspNetCore.ReactServices/npm/redux-typed/tsd.json @@ -0,0 +1,18 @@ +{ + "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" + } + } +}