Skip to content

Commit 8c9e96b

Browse files
authored
Move executeCommandLine ambient code into tsc (#35788)
1 parent 1fd5bd2 commit 8c9e96b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/executeCommandLine/executeCommandLine.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -732,16 +732,4 @@ namespace ts {
732732

733733
return;
734734
}
735-
}
736-
737-
if (ts.Debug.isDebugging) {
738-
ts.Debug.enableDebugInfo();
739-
}
740-
741-
if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
742-
ts.sys.tryEnableSourceMapsForHost();
743-
}
744-
745-
if (ts.sys.setBlocking) {
746-
ts.sys.setBlocking();
747-
}
735+
}

src/tsc/tsc.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
namespace ts {} // empty ts module so the module migration script knows this file depends on the `ts` project namespace
22
// This file actually uses arguments passed on commandline and executes it
3+
if (ts.Debug.isDebugging) {
4+
ts.Debug.enableDebugInfo();
5+
}
6+
7+
if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
8+
ts.sys.tryEnableSourceMapsForHost();
9+
}
10+
11+
if (ts.sys.setBlocking) {
12+
ts.sys.setBlocking();
13+
}
14+
315
ts.executeCommandLine(ts.sys, ts.noop, ts.sys.args);

0 commit comments

Comments
 (0)