Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: inputStream would not be set in linux and mac os x...
...due to a bug introduced by previous commit.
  • Loading branch information
ceottaki authored Feb 22, 2017
commit fe51b9b356ed8b6eec6ec12b8222a9fbe644562b
14 changes: 6 additions & 8 deletions packages/@angular/cli/bin/ng
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,12 @@ resolve('@angular/cli', { basedir: process.cwd() },
}

let standardInput;
if (process.platform === 'win32') {
try {
standardInput = process.stdin;
} catch (e) {
delete process.stdin;
process.stdin = new events.EventEmitter();
standardInput = process.stdin;
}
try {
standardInput = process.stdin;
} catch (e) {
delete process.stdin;
process.stdin = new events.EventEmitter();
standardInput = process.stdin;
}

cli({
Expand Down