Skip to content

Commit

Permalink
fix: detectiveConfig.includeCore doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
lijialiang committed Aug 12, 2022
1 parent c5b726c commit 6812292
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ module.exports.toList = function(options) {
module.exports._getDependencies = function(config) {
let dependencies;
const precinctOptions = config.detectiveConfig;
precinctOptions.includeCore = false;

try {
dependencies = precinct.paperwork(config.filename, precinctOptions);
Expand Down
2 changes: 1 addition & 1 deletion lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Config {
this.requireConfig = options.config || options.requireConfig;
this.webpackConfig = options.webpackConfig;
this.nodeModulesConfig = options.nodeModulesConfig;
this.detectiveConfig = options.detective || options.detectiveConfig || {};
this.detectiveConfig = options.detective || options.detectiveConfig || { includeCore: false };
this.tsConfig = options.tsConfig;
this.noTypeDefinitions = options.noTypeDefinitions;

Expand Down

0 comments on commit 6812292

Please sign in to comment.