@@ -10,26 +10,26 @@ import { getDenoDir } from "./shared";
1010
1111let logger : Logger ;
1212
13- // see https://github.com/denoland/deno/blob/2debbdacb935cfe1eb7bb8d1f40a5063b339d90b/js/compiler.ts#L159-L170
14- const OPTIONS : ts_module . CompilerOptions = {
15- allowJs : true ,
16- checkJs : true ,
17- esModuleInterop : true ,
18- module : ts_module . ModuleKind . ESNext ,
19- moduleResolution : ts_module . ModuleResolutionKind . NodeJs ,
20- noEmit : true ,
21- outDir : "$deno$" ,
22- removeComments : true ,
23- resolveJsonModule : true ,
24- sourceMap : true ,
25- target : ts_module . ScriptTarget . ESNext ,
26- typeRoots : [ ]
27- } ;
28-
2913export = function init ( { typescript } : { typescript : typeof ts_module } ) {
3014 // Make sure Deno imports the correct version of TS
3115 mockRequire ( "typescript" , typescript ) ;
3216
17+ // see https://github.com/denoland/deno/blob/2debbdacb935cfe1eb7bb8d1f40a5063b339d90b/js/compiler.ts#L159-L170
18+ const OPTIONS : ts_module . CompilerOptions = {
19+ allowJs : true ,
20+ checkJs : true ,
21+ esModuleInterop : true ,
22+ module : typescript . ModuleKind . ESNext ,
23+ moduleResolution : typescript . ModuleResolutionKind . NodeJs ,
24+ noEmit : true ,
25+ outDir : "$deno$" ,
26+ removeComments : true ,
27+ resolveJsonModule : true ,
28+ sourceMap : true ,
29+ target : typescript . ScriptTarget . ESNext ,
30+ typeRoots : [ ]
31+ } ;
32+
3333 return {
3434 create ( info : ts_module . server . PluginCreateInfo ) : ts_module . LanguageService {
3535 logger = Logger . forPlugin ( info ) ;
@@ -92,7 +92,7 @@ export = function init({ typescript }: { typescript: typeof ts_module }) {
9292
9393 onConfigurationChanged ( config : any ) {
9494 logger . info ( `onConfigurationChanged: ${ JSON . stringify ( config ) } ` ) ;
95- } ,
95+ }
9696 } ;
9797} ;
9898
0 commit comments