Add --types to pass an empty array to types to disable @types in Jakefile

This commit is contained in:
Wesley Wigham 2016-06-14 15:19:03 -07:00
parent ffbdbf0768
commit 4628e1a809
No known key found for this signature in database
GPG key ID: D59F87F60C5400C9

View file

@ -282,7 +282,7 @@ var builtLocalCompiler = path.join(builtLocalDirectory, compilerFilename);
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts, callback) {
file(outFile, prereqs, function() {
var compilerPath = useBuiltCompiler ? builtLocalCompiler : LKGCompiler;
var options = "--noImplicitAny --noEmitOnError --pretty";
var options = "--noImplicitAny --noEmitOnError --types --pretty";
opts = opts || {};
// Keep comments when specifically requested
// or when in debug mode.