From f7c2a4fb6c454b17d250b85537129b01ffee6b85 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Tue, 5 Aug 2025 22:33:47 -0500 Subject: [PATCH] fix: npx status check --- tools/installer/lib/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/installer/lib/installer.js b/tools/installer/lib/installer.js index 3ae9f9fe..5e3b6e0e 100644 --- a/tools/installer/lib/installer.js +++ b/tools/installer/lib/installer.js @@ -1729,7 +1729,7 @@ class Installer { const manifestPath = path.join(bmadDir, "install-manifest.yaml"); if (await fileManager.pathExists(manifestPath)) { - return bmadDir; + return currentDir; // Return parent directory, not .bmad-core itself } currentDir = path.dirname(currentDir); @@ -1739,7 +1739,7 @@ class Installer { if (path.basename(process.cwd()) === ".bmad-core") { const manifestPath = path.join(process.cwd(), "install-manifest.yaml"); if (await fileManager.pathExists(manifestPath)) { - return process.cwd(); + return path.dirname(process.cwd()); // Return parent directory } }