Skip to content

Commit

Permalink
make require app-root-path fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Dec 5, 2016
1 parent f61eec6 commit 5b26419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export const Config: Config = {
logLevel: BUILD_TYPE === 'dev' ? LogLevel.Debug : LogLevel.None
};

const root = require('app-root-path');

try {
const root = require('app-root-path');
let newConfig = require(root.path + '/.codelyzer');
Object.assign(Config, newConfig);
} catch (e) {}
Expand Down

0 comments on commit 5b26419

Please sign in to comment.