Use canonical hook file root for metadata reads

This commit is contained in:
Tak Hoffman 2026-03-19 00:23:11 -05:00
parent 9ec1f01b5a
commit 24daa04d67
No known key found for this signature in database

View File

@ -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) {