Skip to content

Commit 8fc05a8

Browse files
committed
ts-node expects ignore to be an array
1 parent f45686e commit 8fc05a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/compiler.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ var compiler = {
127127
}
128128
}
129129

130+
let ignore = options['ignore'] || process.env['TS_NODE_IGNORE'];
131+
if (ignore && typeof ignore === 'string') {
132+
ignore = [ignore];
133+
}
134+
130135
var tsNodeOptions = {
131136
fast: options['fast'],
132137
cache: options['cache'] || !options['no-cache'],
@@ -138,7 +143,7 @@ var compiler = {
138143
project: options['project'],
139144
skipProject: options['skip-project'],
140145
skipIgnore: options['skip-ignore'],
141-
ignore: options['ignore'] || process.env['TS_NODE_IGNORE'],
146+
ignore: ignore,
142147
ignoreWarnings: options['ignoreWarnings'] || options['ignoreDiagnostics'],
143148
ignoreDiagnostics: options['ignoreDiagnostics'],
144149
disableWarnings: options['disableWarnings'],

0 commit comments

Comments
 (0)