From a738da5ca3bda422a141db50ab16ce690a0b2eed Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Mon, 6 May 2019 08:46:56 -0400 Subject: [PATCH] Fix paths again oops --- src/constants.ts | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 722375595..5dc28ca26 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,21 +1,9 @@ import { resolveApp } from './utils'; -let paths = { - appPackageJson: '', - testsSetup: '', - appRoot: '', - appSrc: '', - appDist: '', +export const paths = { + appPackageJson: resolveApp('package.json'), + testsSetup: resolveApp('test/setupTests.ts'), + appRoot: resolveApp('.'), + appSrc: resolveApp('src'), + appDist: resolveApp('dist'), }; - -try { - paths = { - appPackageJson: resolveApp('package.json'), - testsSetup: resolveApp('test/setupTests.ts'), - appRoot: resolveApp('.'), - appSrc: resolveApp('src'), - appDist: resolveApp('dist'), - }; -} catch (_error) {} - -export { paths };