This repository was archived by the owner on Sep 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ module.exports = function init({ typescript }: { typescript: typeof ts_module })
35
35
typeRoots : [ ] ,
36
36
} ;
37
37
38
+ const OPTIONS_OVERWRITE_BY_DENO : ts_module . CompilerOptions = {
39
+ jsx : OPTIONS . jsx ,
40
+ module : OPTIONS . module ,
41
+ moduleResolution : OPTIONS . moduleResolution ,
42
+ resolveJsonModule : OPTIONS . resolveJsonModule ,
43
+ strict : OPTIONS . strict ,
44
+ noEmit : OPTIONS . noEmit ,
45
+ noEmitHelpers : OPTIONS . noEmitHelpers ,
46
+ target : typescript . ScriptTarget . ESNext ,
47
+ } ;
48
+
38
49
return {
39
50
create ( info : ts_module . server . PluginCreateInfo ) : ts_module . LanguageService {
40
51
logger = Logger . forPlugin ( info ) ;
@@ -71,7 +82,7 @@ module.exports = function init({ typescript }: { typescript: typeof ts_module })
71
82
72
83
info . languageServiceHost . getCompilationSettings = ( ) => {
73
84
const projectConfig = getCompilationSettings . call ( info . languageServiceHost ) ;
74
- const compilationSettings = merge ( OPTIONS , projectConfig ) ;
85
+ const compilationSettings = merge ( merge ( OPTIONS , projectConfig ) , OPTIONS_OVERWRITE_BY_DENO ) ;
75
86
logger . info ( `compilationSettings:${ JSON . stringify ( compilationSettings ) } ` ) ;
76
87
return compilationSettings ;
77
88
} ;
You can’t perform that action at this time.
0 commit comments