Skip to content

Commit 1883a30

Browse files
lijialiangXhmikosR
lijialiang
authored andcommitted
fix: detectiveConfig.includeCore doesn't work.
1 parent d3a0cd3 commit 1883a30

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ module.exports.toList = function(options = {}) {
8282
*/
8383
module.exports._getDependencies = function(config = {}) {
8484
const precinctOptions = config.detectiveConfig;
85-
precinctOptions.includeCore = false;
8685
let dependencies;
8786

8887
try {

lib/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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 || {};
19+
this.detectiveConfig = options.detective || options.detectiveConfig || { includeCore: false };
2020
this.tsConfig = options.tsConfig;
2121
this.noTypeDefinitions = options.noTypeDefinitions;
2222

0 commit comments

Comments
 (0)