Skip to content

Commit

Permalink
Update Config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 7, 2023
1 parent 64e31ee commit c0c5fa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ class Config {
this.nodeModulesConfig = options.nodeModulesConfig;
this.detectiveConfig = options.detective || options.detectiveConfig || {};
this.tsConfig = options.tsConfig;
this.tsConfigPath = options.tsConfigPath;
this.noTypeDefinitions = options.noTypeDefinitions;

this.filter = options.filter;

if (!this.filename) { throw new Error('filename not given'); }
if (!this.directory) { throw new Error('directory not given'); }
if (this.filter && typeof this.filter !== 'function') { throw new Error('filter must be a function'); }

this.tsConfigPath = options.tsConfigPath
if ('string' === typeof this.tsConfig) {
debug('preparsing the ts config into an object for performance');
const ts = require('typescript');
Expand Down

0 comments on commit c0c5fa5

Please sign in to comment.