From 05c6f8437925487f0226dc98bd5d81249725dea2 Mon Sep 17 00:00:00 2001 From: Yuvaraja Balamurugan Date: Tue, 31 Aug 2021 10:30:06 +0530 Subject: [PATCH] Change the way backstage cli type is recognised Signed-off-by: Yuvaraja Balamurugan --- packages/cli/src/commands/info.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cli/src/commands/info.ts b/packages/cli/src/commands/info.ts index 1f74186a2a..6035bbbb02 100644 --- a/packages/cli/src/commands/info.ts +++ b/packages/cli/src/commands/info.ts @@ -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'