File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ts.Debug.loggingHost = {
11
11
12
12
if ( ts . Debug . isDebugging ) {
13
13
ts . Debug . enableDebugInfo ( ) ;
14
+ ( globalThis as any ) . ts = ts ;
14
15
}
15
16
16
17
if ( ts . sys . tryEnableSourceMapsForHost && / ^ d e v e l o p m e n t $ / i. test ( ts . sys . getEnvironmentVariable ( "NODE_ENV" ) ) ) {
Original file line number Diff line number Diff line change 1
1
import * as fs from "fs" ;
2
2
import * as path from "path" ;
3
3
4
+ import * as ts from "./_namespaces/ts" ;
4
5
import {
5
6
combinePaths ,
6
7
createGetCanonicalFileName ,
@@ -36,6 +37,10 @@ import {
36
37
TypingsInstaller ,
37
38
} from "./_namespaces/ts.server.typingsInstaller" ;
38
39
40
+ if ( ts . Debug . isDebugging ) {
41
+ ( globalThis as any ) . ts = ts ;
42
+ }
43
+
39
44
class FileLog implements Log {
40
45
constructor ( private logFile : string | undefined ) {
41
46
}
You can’t perform that action at this time.
0 commit comments