Skip to content

Commit e3fc150

Browse files
committed
minor: fix merge conflic in app/netlogo
1 parent 2f87ec5 commit e3fc150

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/template/src/engines.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import path from "path";
44
import Handlebars from "handlebars";
55
import mustache from "mustache";
66

7+
import { convertPath } from "@repo/utils/std/path";
8+
79
import { RenderError } from "./errors.js";
810
import { getFileExtension } from "./utils.js";
911
abstract class TemplateEngine {
@@ -30,7 +32,7 @@ abstract class TemplateEngine {
3032

3133
const filePath = path.join(file.parentPath, file.name);
3234
const fileNameRelativeToRoot = path.relative(rootDirectory, filePath);
33-
const fileKey = fileNameRelativeToRoot.replace(/\\/g, "/");
35+
const fileKey: string = convertPath(fileNameRelativeToRoot, "posix");
3436

3537
try {
3638
const content = await fs.readFile(filePath, "utf-8");

0 commit comments

Comments
 (0)