Skip to content

Commit f9e6b99

Browse files
committed
fix: incorrect containing file for processing at-links in combination with Handlebars
1 parent 5114197 commit f9e6b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner/configuration/prompt-templating.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function initializeHandlebars() {
1515

1616
const fullPath = path.join(dirname(ctx.containingFile), ctx.file);
1717
let content = readFileSync(fullPath, 'utf8');
18-
content = processAtFileReferencesSync(content, ctx.containingFile);
18+
content = processAtFileReferencesSync(content, fullPath);
1919

2020
// Recursively support `embed`.
2121
return Handlebars.compile(content, {strict: true})({

0 commit comments

Comments
 (0)