Change the way backstage cli type is recognised
Signed-off-by: Yuvaraja Balamurugan <yuvaraja.balamurugan@clark.de>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user