Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

chore(typescript): fix gulp tsc to log to console #2965

Merged
merged 1 commit into from
Feb 20, 2016

Conversation

cnishina
Copy link
Contributor

child_process.spawn with {stdio: inherit} was not printing to console.

@@ -39,7 +39,13 @@ gulp.task('typings', function(done) {
});

gulp.task('tsc', function(done) {
runSpawn(done, 'node_modules/typescript/bin/tsc');
var tsc = spawn('node_modules/typescript/bin/tsc');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, there must be a way to do this with stdio options. Gulp must be doing something funny to make inherit fail. Can we try {stdio: [process.stdin, process.stdout, process.stderr]}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. spawn(task, opt_arg, {stdio: 'inherit'}); required that opt_arg to be defined as an array.

@juliemr
Copy link
Member

juliemr commented Feb 20, 2016

LGTM!

@cnishina cnishina merged commit cc0478f into angular:master Feb 20, 2016
@cnishina cnishina deleted the pr_cleanup branch March 8, 2016 23:16
@cnishina cnishina mentioned this pull request Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants