Change the way backstage cli type is recognised

Signed-off-by: Yuvaraja Balamurugan <yuvaraja.balamurugan@clark.de>
This commit is contained in:
Yuvaraja Balamurugan
2021-08-31 10:30:06 +05:30
parent 078590b322
commit 05c6f84379
+1 -3
View File
@@ -46,9 +46,7 @@ export default async () => {
console.log('Backstage CLI type :\n');
// eslint-disable-next-line no-restricted-syntax
const isLocal = require('fs').existsSync(
path.resolve(__dirname, '../../src'),
);
const isLocal = require('fs').existsSync(paths.resolveOwn('./src'));
console.log(
isLocal
? 'CLI is running in backstage repo'