@@ -26,14 +26,14 @@ var compiler = {
2626 tsConfigPath : '' ,
2727 getCompilationId : function ( ) {
2828 return compilationInstanceStamp
29- } ,
30- createCompiledDir : function ( ) {
29+ } ,
30+ createCompiledDir : function ( ) {
3131 var compiledDir = compiler . getCompiledDir ( )
3232 if ( ! fs . existsSync ( compiledDir ) ) {
3333 mkdirp . sync ( compiler . getCompiledDir ( ) )
34- }
34+ }
3535 } ,
36- getCompiledDir : function ( ) {
36+ getCompiledDir : function ( ) {
3737 return path . join ( tmpDir , 'compiled' ) . replace ( / \\ / g, '/' )
3838 } ,
3939 getCompileReqFilePath : function ( ) {
@@ -56,7 +56,7 @@ var compiler = {
5656 var fileData = fs . writeFileSync ( compiler . getCompilerReadyFilePath ( ) , '' )
5757 } ,
5858 writeChildHookFile : function ( options ) {
59-
59+
6060 var fileData = fs . readFileSync (
6161 path . join ( __dirname , 'child-require-hook.js' ) ,
6262 'utf-8'
@@ -73,8 +73,7 @@ var compiler = {
7373 }
7474 if ( options [ 'exec-check' ] ) {
7575 fileData = fileData . replace ( 'execCheck = false' , 'execCheck = true' )
76- }
77- if ( options [ 'exit-child' ] ) {
76+ }
7877 if ( options [ 'dont-exit-child' ] ) {
7978 fileData = fileData . replace ( 'dontExitChild = false' , 'dontExitChild = true' )
8079 }
@@ -112,7 +111,7 @@ var compiler = {
112111 fileData = fileData . replace (
113112 'var sourceMapSupportPath' ,
114113 'var sourceMapSupportPath = "' + sourceMapSupportPath + '"'
115- )
114+ )
116115 fileData = fileData . replace (
117116 / _ _ d i r n a m e / ,
118117 '"' + __dirname . replace ( / \\ / g, '/' ) + '"'
@@ -171,7 +170,7 @@ var compiler = {
171170 options [ 'ignoreDiagnostics' ] || options [ 'ignore-diagnostics' ] ,
172171 logError : options [ 'log-error' ] ,
173172 disableWarnings : options [ 'disableWarnings' ] ,
174- preferTsExts : options [ 'prefer-ts-exts' ] ,
173+ preferTsExts : options [ 'prefer-ts-exts' ] ,
175174 compilerOptions : compilerOptions ,
176175 files : options [ 'files' ] || true
177176 }
0 commit comments