Skip to content

Commit

Permalink
Remove the problematic parsing of tsConfig as a result of dependents/…
Browse files Browse the repository at this point in the history
  • Loading branch information
AMoo-Miki committed Jan 31, 2023
1 parent 6358873 commit 06c99d5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ class Config {
if (!this.directory) { throw new Error('directory not given'); }
if (this.filter && typeof this.filter !== 'function') { throw new Error('filter must be a function'); }

if ('string' === typeof this.tsConfig) {
debug('preparsing the ts config into an object for performance');
const ts = require('typescript');
const tsParsedConfig = ts.readJsonConfigFile(this.tsConfig, ts.sys.readFile);
const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(this.tsConfig));
this.tsConfig = obj.raw;
}

debug('given filename: ' + this.filename);

this.filename = path.resolve(process.cwd(), this.filename);
Expand Down

0 comments on commit 06c99d5

Please sign in to comment.