Logged as warning

Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
Andre Wanlin
2022-07-25 07:28:44 -05:00
parent 7be2469cd3
commit d137c77a3d
+2 -2
View File
@@ -24,7 +24,6 @@ import fs from 'fs-extra';
export default async () => {
await new Promise(async () => {
const yarnVersion = await runPlain('yarn --version');
// eslint-disable-next-line no-restricted-syntax
const isLocal = fs.existsSync(paths.resolveOwn('./src'));
const backstageFile = paths.resolveTargetRoot('backstage.json');
@@ -34,7 +33,8 @@ export default async () => {
const backstageJson = await fs.readJSON(backstageFile);
backstageVersion = backstageJson.version ?? 'N/A';
} catch (error) {
backstageVersion = 'N/A';
console.warn('The "backstage.json" file is not in the expected format');
console.log();
}
}