diff --git a/src/hooks/workspace.ts b/src/hooks/workspace.ts index 32bb903f909..af5db5c8f2c 100644 --- a/src/hooks/workspace.ts +++ b/src/hooks/workspace.ts @@ -223,7 +223,7 @@ export function loadHookEntriesFromDir(params: { let frontmatter: ParsedHookFrontmatter = {}; const raw = readBoundaryFileUtf8({ absolutePath: hook.filePath, - rootPath: hook.baseDir, + rootPath: path.dirname(hook.filePath), boundaryLabel: "hook directory", }); if (raw !== null) {