Skip to content

Commit 06c99d5

Browse files
committed
Remove the problematic parsing of tsConfig as a result of dependents/node-filing-cabinet#110
Signed-off-by: Miki <[email protected]>
1 parent 6358873 commit 06c99d5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ class Config {
2323
if (!this.directory) { throw new Error('directory not given'); }
2424
if (this.filter && typeof this.filter !== 'function') { throw new Error('filter must be a function'); }
2525

26-
if ('string' === typeof this.tsConfig) {
27-
debug('preparsing the ts config into an object for performance');
28-
const ts = require('typescript');
29-
const tsParsedConfig = ts.readJsonConfigFile(this.tsConfig, ts.sys.readFile);
30-
const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(this.tsConfig));
31-
this.tsConfig = obj.raw;
32-
}
33-
3426
debug('given filename: ' + this.filename);
3527

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

0 commit comments

Comments
 (0)