Skip to content

Commit

Permalink
fix: bypass Watchman check (#2846)
Browse files Browse the repository at this point in the history
Fix #2791
  • Loading branch information
filipesilva authored Nov 2, 2016
1 parent cabc9dc commit 9aa1099
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/angular-cli/lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// This file hooks up on require calls to transpile TypeScript.
const cli = require('ember-cli/lib/cli');
const UI = require('ember-cli/lib/ui');
const Watcher = require('ember-cli/lib/models/watcher');
const path = require('path');

Error.stackTraceLimit = Infinity;
Expand All @@ -12,6 +13,13 @@ module.exports = function(options) {
// patch UI to not print Ember-CLI warnings (which don't apply to Angular-CLI)
UI.prototype.writeWarnLine = function () { }

// patch Watcher to always default to node, not checking for Watchman
Watcher.detectWatcher = function(ui, _options){
var options = _options || {};
options.watcher = 'node';
return Promise.resolve(options);
}

const oldStdoutWrite = process.stdout.write;
process.stdout.write = function (line) {
line = line.toString();
Expand Down

0 comments on commit 9aa1099

Please sign in to comment.