From 5b264197cb30b4680477116eab8fdd99c1da696e Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Mon, 5 Dec 2016 13:37:27 -0800 Subject: [PATCH] make require app-root-path fail silently --- src/angular/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angular/config.ts b/src/angular/config.ts index 308c441b6..945ea717c 100644 --- a/src/angular/config.ts +++ b/src/angular/config.ts @@ -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) {}