Skip to content

Commit d03baed

Browse files
committed
Throw error when TypeScript is not installed
1 parent d9b75c8 commit d03baed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function getTypeScript(typescript: typeof ts) {
4545
deprecate("TypeScript not installed",
4646
"install with `npm install typescript --save-dev`",
4747
"As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`");
48+
throw new Error("TypeScript not installed");
4849
}
4950
}
5051

release/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function getTypeScript(typescript) {
3333
}
3434
catch (e) {
3535
deprecate("TypeScript not installed", "install with `npm install typescript --save-dev`", "As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`");
36+
throw new Error("TypeScript not installed");
3637
}
3738
}
3839
function getCompilerOptions(settings, projectPath, configFileName) {

0 commit comments

Comments
 (0)