File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ var compiler = {
127
127
}
128
128
}
129
129
130
+ let ignore = options [ 'ignore' ] || process . env [ 'TS_NODE_IGNORE' ] ;
131
+ if ( ignore && typeof ignore === 'string' ) {
132
+ ignore = [ ignore ] ;
133
+ }
134
+
130
135
var tsNodeOptions = {
131
136
fast : options [ 'fast' ] ,
132
137
cache : options [ 'cache' ] || ! options [ 'no-cache' ] ,
@@ -138,7 +143,7 @@ var compiler = {
138
143
project : options [ 'project' ] ,
139
144
skipProject : options [ 'skip-project' ] ,
140
145
skipIgnore : options [ 'skip-ignore' ] ,
141
- ignore : options [ ' ignore' ] || process . env [ 'TS_NODE_IGNORE' ] ,
146
+ ignore : ignore ,
142
147
ignoreWarnings : options [ 'ignoreWarnings' ] || options [ 'ignoreDiagnostics' ] ,
143
148
ignoreDiagnostics : options [ 'ignoreDiagnostics' ] ,
144
149
disableWarnings : options [ 'disableWarnings' ] ,
You can’t perform that action at this time.
0 commit comments