File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
Package . describe ( {
2
2
name : 'barbatus:typescript-compiler' ,
3
- version : '0.5.0-beta.13 ' ,
3
+ version : '0.5.0-beta.14 ' ,
4
4
summary : 'TypeScript Compiler for Meteor' ,
5
5
git : 'https://github.com/barbatus/ts-compilers' ,
6
6
documentation : 'README.md'
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ TypeScript = {
20
20
getDefaultOptions : meteorTS . getDefaultOptions ,
21
21
22
22
getCompilerOptions ( compilerOptions , extraOptions ) {
23
- let resultOptions = compilerOptions ? _ . clone ( compilerOptions ) :
24
- meteorTS . getDefaultOptions ( ) . compilerOptions ;
23
+ let dco = meteorTS . getDefaultOptions ( ) . compilerOptions ;
24
+ let resultOptions = compilerOptions ? _ . clone ( compilerOptions ) : dco ;
25
25
26
- // If diagnostics no defined, set it to true.
27
- _ . defaults ( resultOptions , {
28
- module : 'commonjs' ,
29
- diagnostics : true
30
- } ) ;
26
+ // First, default undefined values, e.g.,
27
+ // if diagnostics undefined, set it to true, etc.
28
+ _ . defaults ( resultOptions , dco ) ;
31
29
30
+ // Second, apply extra options, i.e.,
31
+ // options passed in the compiler constructor.
32
32
_ . extend ( resultOptions , extraOptions ) ;
33
33
34
34
return resultOptions ;
You can’t perform that action at this time.
0 commit comments