diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index c9662f7dec2..3ca250591c1 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -732,16 +732,4 @@ namespace ts { return; } -} - -if (ts.Debug.isDebugging) { - ts.Debug.enableDebugInfo(); -} - -if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) { - ts.sys.tryEnableSourceMapsForHost(); -} - -if (ts.sys.setBlocking) { - ts.sys.setBlocking(); -} +} \ No newline at end of file diff --git a/src/tsc/tsc.ts b/src/tsc/tsc.ts index 306f6e32847..f290691160c 100644 --- a/src/tsc/tsc.ts +++ b/src/tsc/tsc.ts @@ -1,3 +1,15 @@ namespace ts {} // empty ts module so the module migration script knows this file depends on the `ts` project namespace // This file actually uses arguments passed on commandline and executes it +if (ts.Debug.isDebugging) { + ts.Debug.enableDebugInfo(); +} + +if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) { + ts.sys.tryEnableSourceMapsForHost(); +} + +if (ts.sys.setBlocking) { + ts.sys.setBlocking(); +} + ts.executeCommandLine(ts.sys, ts.noop, ts.sys.args);