Skip to content

Commit

Permalink
Fix paths again oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed May 6, 2019
1 parent 0aab2f3 commit a738da5
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit a738da5

Please sign in to comment.