Skip to content

Commit 1a02f78

Browse files
committed
fix: bypass Watchman check
Fix angular#2791
1 parent eb63fda commit 1a02f78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/angular-cli/lib/cli/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// This file hooks up on require calls to transpile TypeScript.
44
const cli = require('ember-cli/lib/cli');
55
const UI = require('ember-cli/lib/ui');
6+
const Watcher = require('ember-cli/lib/models/watcher');
67
const path = require('path');
78

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

16+
// patch Watcher to always default to node, not checking for Watchman
17+
Watcher.detectWatcher = function(ui, _options){
18+
options.watcher = 'node';
19+
return Promise.resolve(options);
20+
}
21+
1522
const oldStdoutWrite = process.stdout.write;
1623
process.stdout.write = function (line) {
1724
line = line.toString();

0 commit comments

Comments
 (0)