Skip to content

Commit 7d19310

Browse files
Build using local 'tsc' tool instead of hoping the globally-installed one exists and is the right version
1 parent f798f30 commit 7d19310

7 files changed

Lines changed: 28 additions & 9 deletions

File tree

src/Microsoft.AspNet.AngularServices/npm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "./dist/Exports",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"prepublish": "tsd install && tsc && node build.js"
8+
"prepublish": "tsd install && ./node_modules/.bin/tsc && node build.js"
99
},
1010
"repository": {
1111
"type": "git",
@@ -22,7 +22,7 @@
2222
"es6-shim": "^0.35.0",
2323
"reflect-metadata": "^0.1.2",
2424
"systemjs-builder": "^0.14.11",
25-
"typescript": "^1.7.3",
25+
"typescript": "^1.8.10",
2626
"zone.js": "^0.6.10"
2727
}
2828
}

src/Microsoft.AspNet.ReactServices/npm/redux-typed/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
"main": "main.js",
66
"typings": "main.d.ts",
77
"scripts": {
8-
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"redux-typed\"'",
8+
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"redux-typed\"'",
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},
1111
"author": "Microsoft",
12-
"license": "Apache-2.0"
12+
"license": "Apache-2.0",
13+
"devDependencies": {
14+
"typescript": "^1.8.10"
15+
}
1316
}

src/Microsoft.AspNet.SpaServices/npm/aspnet-prerendering/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
7+
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
1111
"license": "Apache-2.0",
1212
"dependencies": {
1313
"domain-task": "^1.0.1",
1414
"es6-promise": "^3.1.2"
15+
},
16+
"devDependencies": {
17+
"typescript": "^1.8.10"
1518
}
1619
}

src/Microsoft.AspNet.SpaServices/npm/aspnet-webpack-react/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Helpers for using Webpack with React in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
7+
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
@@ -18,5 +18,8 @@
1818
"react": "^0.14.7",
1919
"react-transform-hmr": "^1.0.4",
2020
"webpack": "^1.12.14"
21+
},
22+
"devDependencies": {
23+
"typescript": "^1.8.10"
2124
}
2225
}

src/Microsoft.AspNet.SpaServices/npm/aspnet-webpack/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "rm *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
7+
"prepublish": "./node_modules/.bin/rimraf *.d.ts && tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
@@ -17,5 +17,9 @@
1717
"webpack": "^1.12.14",
1818
"webpack-dev-middleware": "^1.5.1",
1919
"webpack-externals-plugin": "^1.0.0"
20+
},
21+
"devDependencies": {
22+
"typescript": "^1.8.10",
23+
"rimraf": "^2.5.2"
2024
}
2125
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
"description": "Tracks outstanding operations for a logical thread of execution",
55
"main": "main.js",
66
"scripts": {
7-
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"domain-task\"'",
7+
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"domain-task\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
1111
"license": "Apache-2.0",
1212
"dependencies": {
1313
"domain-context": "^0.5.1",
1414
"isomorphic-fetch": "^2.2.1"
15+
},
16+
"devDependencies": {
17+
"typescript": "^1.8.10"
1518
}
1619
}

templates/yeoman/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"build": "tsc && node ./tmp/build/build.js"
8+
"build": "./node_modules/.bin/tsc && node ./tmp/build/build.js"
99
},
1010
"author": "Microsoft",
1111
"license": "Apache-2.0",
@@ -16,5 +16,8 @@
1616
"lodash": "^4.11.1",
1717
"mkdirp": "^0.5.1",
1818
"rimraf": "^2.5.2"
19+
},
20+
"devDependencies": {
21+
"typescript": "^1.8.10"
1922
}
2023
}

0 commit comments

Comments
 (0)