Skip to content

Commit 63dcbf4

Browse files
filipesilvaMRHarrison
authored andcommitted
fix: bypass Watchman check (angular#2846)
Fix angular#2791
1 parent b256ede commit 63dcbf4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
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,13 @@ 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+
var options = _options || {};
19+
options.watcher = 'node';
20+
return Promise.resolve(options);
21+
}
22+
1523
const oldStdoutWrite = process.stdout.write;
1624
process.stdout.write = function (line) {
1725
line = line.toString();

0 commit comments

Comments
 (0)