refactor(preset): rework preset
test / test (push) Failing after 5m32s

This commit is contained in:
2026-10-29 20:35:53 +03:00
parent d9e8976e85
commit 2605c1bbc8
41 changed files with 475 additions and 473 deletions
+9
View File
@@ -0,0 +1,9 @@
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default (name: string): string => {
return path.join(__dirname, "..", "assets", name);
};
+1 -1
View File
@@ -7,7 +7,7 @@ const __dirname = path.dirname(__filename);
export default new Eta({
autoFilter: true,
filterFunction: (val: unknown): string => (val === null ? "" : String(val)),
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
useWith: true,
views: path.join(__dirname, "..", "template"),
});