File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ var opts = minimist(devArgs, {
14
14
'fast' , 'disableWarnings' , 'no-cache' ,
15
15
'cache' , 'type-check' ,
16
16
'prefer-ts' ,
17
- 'transpileOnly'
17
+ 'transpileOnly' ,
18
+ 'files'
18
19
] ,
19
20
string : [
20
21
'compiler' , 'project' , 'ignore' ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ var compiler = {
77
77
require . extensions [ '.tsx' ] = empty
78
78
tmpDir = options [ 'cache-directory' ]
79
79
? path . resolve ( options [ 'cache-directory' ] )
80
- : path . join ( os . tmpdir ( ) , '.ts-node' )
80
+ : path . join ( os . tmpdir ( ) , fs . mkdtempSync ( '.ts-node' ) )
81
81
var compilerOptions
82
82
if ( options [ 'compilerOptions' ] ) {
83
83
try {
@@ -102,7 +102,8 @@ var compiler = {
102
102
ignoreWarnings : options [ 'ignoreWarnings' ] || options [ 'ignoreDiagnostics' ] ,
103
103
ignoreDiagnostics : options [ 'ignoreDiagnostics' ] ,
104
104
disableWarnings : options [ 'disableWarnings' ] ,
105
- compilerOptions : compilerOptions
105
+ compilerOptions : compilerOptions ,
106
+ files : options [ 'files' ] || true
106
107
}
107
108
try {
108
109
register ( tsNodeOptions )
@@ -170,4 +171,4 @@ var compiler = {
170
171
}
171
172
}
172
173
173
- module . exports = compiler
174
+ module . exports = compiler
You can’t perform that action at this time.
0 commit comments