Skip to content

Commit

Permalink
fix bad line
Browse files Browse the repository at this point in the history
  • Loading branch information
Staffan Eketorp committed Oct 4, 2019
1 parent ef90fff commit 25dfd02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/child-require-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ if (readyFile) {
}
}

if (exitChild) {
if (!dontExitChild) {
process.on('SIGTERM', function() {
// This is to make sure debuggers (e.g. Chrome) close
Expand Down
17 changes: 8 additions & 9 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ var compiler = {
tsConfigPath: '',
getCompilationId: function() {
return compilationInstanceStamp
},
createCompiledDir: function() {
},
createCompiledDir: function() {
var compiledDir = compiler.getCompiledDir()
if (!fs.existsSync(compiledDir)) {
mkdirp.sync(compiler.getCompiledDir())
}
}
},
getCompiledDir: function() {
getCompiledDir: function() {
return path.join(tmpDir, 'compiled').replace(/\\/g, '/')
},
getCompileReqFilePath: function() {
Expand All @@ -56,7 +56,7 @@ var compiler = {
var fileData = fs.writeFileSync(compiler.getCompilerReadyFilePath(), '')
},
writeChildHookFile: function(options) {

var fileData = fs.readFileSync(
path.join(__dirname, 'child-require-hook.js'),
'utf-8'
Expand All @@ -73,8 +73,7 @@ var compiler = {
}
if (options['exec-check']) {
fileData = fileData.replace('execCheck = false', 'execCheck = true')
}
if (options['exit-child']) {
}
if (options['dont-exit-child']) {
fileData = fileData.replace('dontExitChild = false', 'dontExitChild = true')
}
Expand Down Expand Up @@ -112,7 +111,7 @@ var compiler = {
fileData = fileData.replace(
'var sourceMapSupportPath',
'var sourceMapSupportPath = "' + sourceMapSupportPath + '"'
)
)
fileData = fileData.replace(
/__dirname/,
'"' + __dirname.replace(/\\/g, '/') + '"'
Expand Down Expand Up @@ -171,7 +170,7 @@ var compiler = {
options['ignoreDiagnostics'] || options['ignore-diagnostics'],
logError: options['log-error'],
disableWarnings: options['disableWarnings'],
preferTsExts: options['prefer-ts-exts'],
preferTsExts: options['prefer-ts-exts'],
compilerOptions: compilerOptions,
files: options['files'] || true
}
Expand Down

0 comments on commit 25dfd02

Please sign in to comment.