Build using local 'tsc' tool instead of hoping the globally-installed one exists and is the right version

This commit is contained in:
SteveSandersonMS
2016-05-02 12:18:52 -07:00
parent f798f308f3
commit 7d193108df
7 changed files with 28 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
"main": "./dist/Exports",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "tsd install && tsc && node build.js"
"prepublish": "tsd install && ./node_modules/.bin/tsc && node build.js"
},
"repository": {
"type": "git",
@@ -22,7 +22,7 @@
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.2",
"systemjs-builder": "^0.14.11",
"typescript": "^1.7.3",
"typescript": "^1.8.10",
"zone.js": "^0.6.10"
}
}

View File

@@ -5,9 +5,12 @@
"main": "main.js",
"typings": "main.d.ts",
"scripts": {
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"redux-typed\"'",
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"redux-typed\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
"license": "Apache-2.0"
"license": "Apache-2.0",
"devDependencies": {
"typescript": "^1.8.10"
}
}

View File

@@ -4,7 +4,7 @@
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
"main": "index.js",
"scripts": {
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
@@ -12,5 +12,8 @@
"dependencies": {
"domain-task": "^1.0.1",
"es6-promise": "^3.1.2"
},
"devDependencies": {
"typescript": "^1.8.10"
}
}

View File

@@ -4,7 +4,7 @@
"description": "Helpers for using Webpack with React in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
"main": "index.js",
"scripts": {
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-webpack-react\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
@@ -18,5 +18,8 @@
"react": "^0.14.7",
"react-transform-hmr": "^1.0.4",
"webpack": "^1.12.14"
},
"devDependencies": {
"typescript": "^1.8.10"
}
}

View File

@@ -4,7 +4,7 @@
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
"main": "index.js",
"scripts": {
"prepublish": "rm *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
"prepublish": "./node_modules/.bin/rimraf *.d.ts && tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
@@ -17,5 +17,9 @@
"webpack": "^1.12.14",
"webpack-dev-middleware": "^1.5.1",
"webpack-externals-plugin": "^1.0.0"
},
"devDependencies": {
"typescript": "^1.8.10",
"rimraf": "^2.5.2"
}
}

View File

@@ -4,7 +4,7 @@
"description": "Tracks outstanding operations for a logical thread of execution",
"main": "main.js",
"scripts": {
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"domain-task\"'",
"prepublish": "tsd update && ./node_modules/.bin/tsc && echo 'Finished building NPM package \"domain-task\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
@@ -12,5 +12,8 @@
"dependencies": {
"domain-context": "^0.5.1",
"isomorphic-fetch": "^2.2.1"
},
"devDependencies": {
"typescript": "^1.8.10"
}
}

View File

@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && node ./tmp/build/build.js"
"build": "./node_modules/.bin/tsc && node ./tmp/build/build.js"
},
"author": "Microsoft",
"license": "Apache-2.0",
@@ -16,5 +16,8 @@
"lodash": "^4.11.1",
"mkdirp": "^0.5.1",
"rimraf": "^2.5.2"
},
"devDependencies": {
"typescript": "^1.8.10"
}
}