File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var NormalizedMessage = require('./NormalizedMessage');
16
16
* Options description in README.md
17
17
*/
18
18
function ForkTsCheckerWebpackPlugin ( options ) {
19
+ this . options = Object . assign ( { } , options ) ;
19
20
this . tsconfig = options . tsconfig || './tsconfig.json' ;
20
21
this . tslint = options . tslint === false ? false : options . tslint || './tslint.json' ;
21
22
this . watch = isString ( options . watch ) ? [ options . watch ] : options . watch || [ ] ;
@@ -226,8 +227,13 @@ ForkTsCheckerWebpackPlugin.prototype.spawnService = function () {
226
227
'Using ' + this . colors . bold ( this . workersNumber === 1 ? '1 worker' : this . workersNumber + ' workers' ) +
227
228
' with ' + this . colors . bold ( this . memoryLimit + 'MB' ) + ' memory limit'
228
229
) ;
229
- var lines = [ message , performance , this . colors . grey ( this . tsconfigPath ) ] ;
230
- if ( this . tslint ) {
230
+ var lines = [ message , performance ] ;
231
+ if ( ! this . options . tsconfig ) {
232
+ // auto-detect tsconfig path - print to the user to be sure that it's proper file
233
+ lines . push ( this . colors . grey ( this . tsconfigPath ) ) ;
234
+ }
235
+ if ( this . tslint && ! this . options . tslint ) {
236
+ // auto-detect tslint path - print to the user to be sure that it's proper file
231
237
lines . push ( this . colors . grey ( this . tslint ) ) ;
232
238
}
233
239
You can’t perform that action at this time.
0 commit comments