Commit f7816e4 1 parent 9f3ffdb commit f7816e4 Copy full SHA for f7816e4
File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
var ignoreRoot = require ( 'ignore-by-default' ) . directories ( ) ;
2
2
3
3
// default options for config.options
4
- module . exports = {
4
+ const defaults = {
5
5
restartable : 'rs' ,
6
6
colours : true ,
7
7
execMap : {
@@ -12,7 +12,7 @@ module.exports = {
12
12
// compatible with linux, mac and windows, or make the default.js
13
13
// dynamically append the `.cmd` for node based utilities
14
14
} ,
15
- ignoreRoot : ignoreRoot . map ( _ => `**/${ _ } /**` ) ,
15
+ ignoreRoot : ignoreRoot . map ( ( _ ) => `**/${ _ } /**` ) ,
16
16
watch : [ '*.*' ] ,
17
17
stdin : true ,
18
18
runOnChangeOnly : false ,
@@ -22,7 +22,11 @@ module.exports = {
22
22
// but also includes stderr. If this is false, data is still dispatched via
23
23
// nodemon.on('stdout/stderr')
24
24
stdout : true ,
25
- watchOptions : {
26
-
27
- } ,
25
+ watchOptions : { } ,
28
26
} ;
27
+
28
+ if ( ( process . env . NODE_OPTIONS || '' ) . includes ( '--loader' ) ) {
29
+ delete defaults . execMap . ts ;
30
+ }
31
+
32
+ module . exports = defaults ;
You can’t perform that action at this time.
0 commit comments