Comparing version 0.9.2 to 0.9.3
@@ -6,4 +6,5 @@ #!/usr/bin/env node | ||
var args = [path_1.join(__dirname, '_bin.js')]; | ||
for (var i = 2; i < process.argv.length; i++) { | ||
var arg = process.argv[i]; | ||
var opts = process.argv.slice(2); | ||
for (var i = 0; i < opts.length; i++) { | ||
var arg = opts[i]; | ||
var flag = arg.split('=')[0]; | ||
@@ -13,2 +14,3 @@ switch (flag) { | ||
args.unshift('--debug'); | ||
opts.splice(i, 1); | ||
break; | ||
@@ -19,2 +21,3 @@ case 'debug': | ||
args.unshift(arg); | ||
opts.splice(i, 1); | ||
break; | ||
@@ -24,2 +27,3 @@ case '-gc': | ||
args.unshift('--expose-gc'); | ||
opts.splice(i, 1); | ||
break; | ||
@@ -37,2 +41,3 @@ case '--gc-global': | ||
args.unshift(arg); | ||
opts.splice(i, 1); | ||
break; | ||
@@ -42,2 +47,3 @@ default: | ||
args.unshift(arg); | ||
opts.splice(i, 1); | ||
} | ||
@@ -50,3 +56,3 @@ break; | ||
} | ||
var proc = child_process_1.spawn(process.execPath, args.concat(process.argv.slice(2)), { stdio: 'inherit' }); | ||
var proc = child_process_1.spawn(process.execPath, args.concat(opts), { stdio: 'inherit' }); | ||
proc.on('exit', function (code, signal) { | ||
@@ -53,0 +59,0 @@ process.on('exit', function () { |
{ | ||
"name": "ts-node", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"preferGlobal": true, | ||
@@ -5,0 +5,0 @@ "description": "TypeScript execution environment and REPL for node", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84894
744