fix(FN-2688): add root dir to plugin install mock task store

- Add getRootDir() to the plugin command mock TaskStore used by createPluginLoader
- Ensure fn plugin install can resolve project root expectations without runtime failures
- Add a patch changeset for @runfusion/fusion documenting the CLI fix
This commit is contained in:
Fusion
2026-04-27 08:13:58 -07:00
committed by gsxdsm
parent ba620ed711
commit 3c8a4903c2
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Fix `fn plugin install` failing in CLI plugin commands by adding `getRootDir()` to the mock TaskStore used by `createPluginLoader`.

View File

@@ -53,6 +53,7 @@ async function createPluginLoader(
const projectPath = await getProjectPath(projectName);
// Create a mock TaskStore for the loader (plugins don't need full task store access)
const mockTaskStore = {
getRootDir: () => projectPath,
getFusionDir: () => projectPath + "/.fusion",
on: () => {},
off: () => {},