Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getTranscryptRunInfo() {
if (this.options['watch']) {
if (fs.existsSync(this.runInfoPath)) {
try {
return JSON.parse(fs.readFileSync(this.runInfoPath, 'utf8'));
}catch (err) {
logger.warn(`${LOG_PREFIX} Unable to read transcrypt dependencies for watch mode: ${err}`);
}
}
}
return {};
}