Skip to content

Commit

Permalink
Don't need paths for create command
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Jan 26, 2019
1 parent 7cee831 commit 105b65e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,19 @@ const safeVariableName = name =>
);

let appPackageJson;

let paths;
try {
appPackageJson = fs.readJSONSync(resolveApp('package.json'));
paths = {
appPackageJson: resolveApp('package.json'),
testsSetup: resolveApp('test/setupTests.ts'),
appRoot: resolveApp('.'),
appSrc: resolveApp('src'),
appEntry: resolveApp(appPackageJson.source),
appDist: resolveApp('dist'),
};
} catch (e) {}

const paths = {
appPackageJson: resolveApp('package.json'),
testsSetup: resolveApp('test/setupTests.ts'),
appRoot: resolveApp('.'),
appSrc: resolveApp('src'),
appEntry: resolveApp(appPackageJson.source),
appDist: resolveApp('dist'),
};

const overrides = Object.assign({}, appPackageJson.jest);

const external = id => !id.startsWith('.') && !id.startsWith('/');
Expand Down

0 comments on commit 105b65e

Please sign in to comment.