File tree 1 file changed +8
-0
lines changed
packages/angular-cli/lib/cli
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
// This file hooks up on require calls to transpile TypeScript.
4
4
const cli = require ( 'ember-cli/lib/cli' ) ;
5
5
const UI = require ( 'ember-cli/lib/ui' ) ;
6
+ const Watcher = require ( 'ember-cli/lib/models/watcher' ) ;
6
7
const path = require ( 'path' ) ;
7
8
8
9
Error . stackTraceLimit = Infinity ;
@@ -12,6 +13,13 @@ module.exports = function(options) {
12
13
// patch UI to not print Ember-CLI warnings (which don't apply to Angular-CLI)
13
14
UI . prototype . writeWarnLine = function ( ) { }
14
15
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
+
15
23
const oldStdoutWrite = process . stdout . write ;
16
24
process . stdout . write = function ( line ) {
17
25
line = line . toString ( ) ;
You can’t perform that action at this time.
0 commit comments