@@ -26,14 +26,14 @@ var compiler = {
26
26
tsConfigPath : '' ,
27
27
getCompilationId : function ( ) {
28
28
return compilationInstanceStamp
29
- } ,
30
- createCompiledDir : function ( ) {
29
+ } ,
30
+ createCompiledDir : function ( ) {
31
31
var compiledDir = compiler . getCompiledDir ( )
32
32
if ( ! fs . existsSync ( compiledDir ) ) {
33
33
mkdirp . sync ( compiler . getCompiledDir ( ) )
34
- }
34
+ }
35
35
} ,
36
- getCompiledDir : function ( ) {
36
+ getCompiledDir : function ( ) {
37
37
return path . join ( tmpDir , 'compiled' ) . replace ( / \\ / g, '/' )
38
38
} ,
39
39
getCompileReqFilePath : function ( ) {
@@ -56,7 +56,7 @@ var compiler = {
56
56
var fileData = fs . writeFileSync ( compiler . getCompilerReadyFilePath ( ) , '' )
57
57
} ,
58
58
writeChildHookFile : function ( options ) {
59
-
59
+
60
60
var fileData = fs . readFileSync (
61
61
path . join ( __dirname , 'child-require-hook.js' ) ,
62
62
'utf-8'
@@ -73,8 +73,7 @@ var compiler = {
73
73
}
74
74
if ( options [ 'exec-check' ] ) {
75
75
fileData = fileData . replace ( 'execCheck = false' , 'execCheck = true' )
76
- }
77
- if ( options [ 'exit-child' ] ) {
76
+ }
78
77
if ( options [ 'dont-exit-child' ] ) {
79
78
fileData = fileData . replace ( 'dontExitChild = false' , 'dontExitChild = true' )
80
79
}
@@ -112,7 +111,7 @@ var compiler = {
112
111
fileData = fileData . replace (
113
112
'var sourceMapSupportPath' ,
114
113
'var sourceMapSupportPath = "' + sourceMapSupportPath + '"'
115
- )
114
+ )
116
115
fileData = fileData . replace (
117
116
/ _ _ d i r n a m e / ,
118
117
'"' + __dirname . replace ( / \\ / g, '/' ) + '"'
@@ -171,7 +170,7 @@ var compiler = {
171
170
options [ 'ignoreDiagnostics' ] || options [ 'ignore-diagnostics' ] ,
172
171
logError : options [ 'log-error' ] ,
173
172
disableWarnings : options [ 'disableWarnings' ] ,
174
- preferTsExts : options [ 'prefer-ts-exts' ] ,
173
+ preferTsExts : options [ 'prefer-ts-exts' ] ,
175
174
compilerOptions : compilerOptions ,
176
175
files : options [ 'files' ] || true
177
176
}
0 commit comments