Skip to content

Commit

Permalink
chore(typescript): fix gulp tsc to log to console
Browse files Browse the repository at this point in the history
  • Loading branch information
cnishina committed Feb 20, 2016
1 parent 608104b commit cc0478f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion lib/taskRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('.');
Expand Down
2 changes: 1 addition & 1 deletion lib/taskScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class TaskScheduler {
(path) => { return capabilitiesSpecExcludes.indexOf(path) < 0; });
}

let specLists: Array<string> = [];
let specLists: Array<Array<string>> = [];
// 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
Expand Down

0 comments on commit cc0478f

Please sign in to comment.