Skip to content

Commit 1a61f98

Browse files
authored
Update config.js
1 parent 03fc146 commit 1a61f98

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ module.exports = class Config {
1616
this.requireConfig = options.config || options.requireConfig;
1717
this.webpackConfig = options.webpackConfig;
1818
this.nodeModulesConfig = options.nodeModulesConfig;
19-
this.detectiveConfig = options.detective || options.detectiveConfig || {};
20-
this.detectiveConfig.includeCore = this.includeCore = options.includeCore || false;
21-
this.detectiveConfig.includeNonExisting = this.includeNonExisting = options.includeNonExisting || options.includeCore || false;
19+
this.includeCore = options.includeCore || false;
20+
this.includeNonExisting = options.includeNonExisting || options.includeCore || false;
2221
this.tsConfig = options.tsConfig;
2322
this.tsConfigPath = options.tsConfigPath;
2423
this.noTypeDefinitions = options.noTypeDefinitions;
2524
this.filter = options.filter;
25+
this.detectiveConfig = options.detective || options.detectiveConfig || {};
26+
this.detectiveConfig.includeCore = this.includeCore;
27+
this.detectiveConfig.includeNonExisting = this.includeNonExisting;
2628

2729
if (!this.filename) throw new Error('filename not given');
2830
if (!this.directory) throw new Error('directory not given');

0 commit comments

Comments
 (0)