remove unnecessary check of existing rd.json on build

This commit is contained in:
dennis.ludwig
2021-07-02 15:52:07 +02:00
parent 291b553618
commit 53084ad3d2
3 changed files with 11 additions and 24 deletions

View File

@@ -50,15 +50,8 @@ const buildTemplate = () => {
return runCommand(`${packageManager} build`);
};
if (fs.existsSync(paths.appRdJson)) {
buildTemplate().then(() => {
fs.copySync(paths.templateBuild, paths.appBuild);
fs.copySync(paths.appPublic, paths.appBuild);
console.log(`${paths.appBuild} was created and can be deployed.`);
});
} else {
console.error(
`${paths.appRdJson} does not exist. You have to generate it first.`
);
process.exit(1);
}
buildTemplate().then(() => {
fs.copySync(paths.templateBuild, paths.appBuild);
fs.copySync(paths.appPublic, paths.appBuild);
console.log(`${paths.appBuild} was created and can be deployed.`);
});