Skip to content

Commit

Permalink
fix(init): don't replace live reload script on diffs (#1128)
Browse files Browse the repository at this point in the history
Fix #1122
  • Loading branch information
filipesilva authored Jun 18, 2016
1 parent b90a110 commit e97fd9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ module.exports = function(options) {
if (line.match(/version:|WARNING:/)) {
return;
}
if (line.match(/ember-cli-(inject-)?live-reload/)) {
// don't replace 'ember-cli-live-reload' on ng init diffs
return oldStdoutWrite.apply(process.stdout, arguments);
}
line = line.replace(/ember-cli(?!.com)/g, 'angular-cli')
.replace(/ember(?!-cli.com)/g, 'ng');
return oldStdoutWrite.apply(process.stdout, arguments);
Expand Down

0 comments on commit e97fd9f

Please sign in to comment.