• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1namespace ts {} // empty ts module so the module migration script knows this file depends on the `ts` project namespace
2// This file actually uses arguments passed on commandline and executes it
3ts.Debug.loggingHost = {
4    log(_level, s) {
5        ts.sys.write(`${s || ""}${ts.sys.newLine}`);
6    }
7};
8
9if (ts.Debug.isDebugging) {
10    ts.Debug.enableDebugInfo();
11}
12
13if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
14    ts.sys.tryEnableSourceMapsForHost();
15}
16
17if (ts.sys.setBlocking) {
18    ts.sys.setBlocking();
19}
20
21ts.executeCommandLine(ts.sys, ts.noop, ts.sys.args);
22