Skip to content

Commit 26bb7cf

Browse files
authored
Merge pull request #28 from acrazing/master
fix(ts-node): support --files
2 parents e7f66d6 + 47fff30 commit 26bb7cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/ts-node-dev

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ var opts = minimist(devArgs, {
1414
'fast', 'disableWarnings', 'no-cache',
1515
'cache', 'type-check',
1616
'prefer-ts',
17-
'transpileOnly'
17+
'transpileOnly',
18+
'files'
1819
],
1920
string: [
2021
'compiler', 'project', 'ignore',

lib/compiler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ var compiler = {
102102
ignoreWarnings: options['ignoreWarnings'] || options['ignoreDiagnostics'],
103103
ignoreDiagnostics: options['ignoreDiagnostics'],
104104
disableWarnings: options['disableWarnings'],
105-
compilerOptions: compilerOptions
105+
compilerOptions: compilerOptions,
106+
files: options['files'] || true
106107
}
107108
try {
108109
register(tsNodeOptions)
@@ -169,4 +170,4 @@ var compiler = {
169170
}
170171
}
171172

172-
module.exports = compiler
173+
module.exports = compiler

0 commit comments

Comments
 (0)