Skip to content

Commit 0538eac

Browse files
author
Piotr Oleś
committed
Don't print tsconfig and tslint path if it's set by user
1 parent 1560e64 commit 0538eac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var NormalizedMessage = require('./NormalizedMessage');
1616
* Options description in README.md
1717
*/
1818
function ForkTsCheckerWebpackPlugin (options) {
19+
this.options = Object.assign({}, options);
1920
this.tsconfig = options.tsconfig || './tsconfig.json';
2021
this.tslint = options.tslint === false ? false : options.tslint || './tslint.json';
2122
this.watch = isString(options.watch) ? [options.watch] : options.watch || [];
@@ -226,8 +227,13 @@ ForkTsCheckerWebpackPlugin.prototype.spawnService = function () {
226227
'Using ' + this.colors.bold(this.workersNumber === 1 ? '1 worker' : this.workersNumber + ' workers') +
227228
' with ' + this.colors.bold(this.memoryLimit + 'MB') + ' memory limit'
228229
);
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
231237
lines.push(this.colors.grey(this.tslint));
232238
}
233239

0 commit comments

Comments
 (0)