• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import * as ts from "./_namespaces/ts";
2
3// This file actually uses arguments passed on commandline and executes it
4
5// enable deprecation logging
6ts.Debug.loggingHost = {
7    log(_level, s) {
8        ts.sys.write(`${s || ""}${ts.sys.newLine}`);
9    }
10};
11
12if (ts.Debug.isDebugging) {
13    ts.Debug.enableDebugInfo();
14}
15
16if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) {
17    ts.sys.tryEnableSourceMapsForHost();
18}
19
20if (ts.sys.setBlocking) {
21    ts.sys.setBlocking();
22}
23
24ts.executeCommandLine(ts.sys, ts.noop, ts.sys.args);
25