Uses pathExists

This commit is contained in:
Fabian Chong
2020-12-01 14:35:20 +08:00
committed by Joel Low
parent 433aa52a17
commit a42205b3e8
@@ -34,7 +34,7 @@ export default async (cmd: Command) => {
const pkgPath = paths.resolveTarget(PKG_PATH);
const pkg = await fs.readJson(pkgPath);
const appConfigs = await findAppConfigs();
const npmrc = fs.existsSync(paths.resolveTargetRoot('.npmrc'))
const npmrc = (await fs.pathExists(paths.resolveTargetRoot('.npmrc')))
? ['.npmrc']
: [];
const tempDistWorkspace = await createDistWorkspace([pkg.name], {