diff --git a/gulpfile.js b/gulpfile.js index 92b247d7b..2179284fc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,6 +7,7 @@ var runSequence = require('run-sequence'); var spawn = require('child_process').spawn; var runSpawn = function(done, task, opt_arg) { + opt_arg = typeof opt_arg !== 'undefined' ? opt_arg : []; var child = spawn(task, opt_arg, {stdio: 'inherit'}); child.on('close', function() { done(); @@ -39,7 +40,7 @@ gulp.task('typings', function(done) { }); gulp.task('tsc', function(done) { - runSpawn(done, 'node_modules/typescript/bin/tsc'); + runSpawn(done, './node_modules/typescript/bin/tsc'); }); gulp.task('prepublish', function(done) { diff --git a/lib/taskRunner.ts b/lib/taskRunner.ts index 40f4c42f4..cea472fec 100644 --- a/lib/taskRunner.ts +++ b/lib/taskRunner.ts @@ -72,7 +72,6 @@ export default class TaskRunner extends EventEmitter { childProcess .on('message', (m: any) => { - console.log(m); switch (m.event) { case 'testPass': Logger.print('.'); diff --git a/lib/taskScheduler.ts b/lib/taskScheduler.ts index a6dca215b..95965a15f 100644 --- a/lib/taskScheduler.ts +++ b/lib/taskScheduler.ts @@ -63,7 +63,7 @@ export default class TaskScheduler { (path) => { return capabilitiesSpecExcludes.indexOf(path) < 0; }); } - let specLists: Array = []; + let specLists: Array> = []; // If we shard, we return an array of one element arrays, each containing // the spec file. If we don't shard, we return an one element array // containing an array of all the spec files