From 2c1cd8dca7bd532c9d1c86d3f4db5f4a24552ddc Mon Sep 17 00:00:00 2001 From: Lidinei Domeneghini Date: Mon, 15 Sep 2025 11:57:54 -0300 Subject: [PATCH] fix(installer): resolve directory path to an absolute path Ensures that the installation directory is always resolved to an absolute path. Previously, if a relative path like '.' was used, its interpretation could vary depending on the execution context of the script. This change uses `path.resolve` with `process.cwd()` as a fallback to guarantee a consistent and predictable absolute path for the installation directory. --- tools/installer/bin/bmad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/installer/bin/bmad.js b/tools/installer/bin/bmad.js index 7c379933..27b3ae58 100755 --- a/tools/installer/bin/bmad.js +++ b/tools/installer/bin/bmad.js @@ -71,7 +71,7 @@ program const config = { installType, - directory: options.directory || '.', + directory: path.resolve(options.directory || process.cwd()), ides: (options.ide || []).filter((ide) => ide !== 'other'), expansionPacks: options.expansionPacks || [], };