From 771851b188836b1254eebd2d1b63cfd563faaf6a Mon Sep 17 00:00:00 2001 From: rasulov1337 <117843890+rasulov1337@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:15:54 +0300 Subject: [PATCH] Fix --- hbs-recompile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbs-recompile.js b/hbs-recompile.js index d9ea5299..cf8f5bbd 100644 --- a/hbs-recompile.js +++ b/hbs-recompile.js @@ -3,6 +3,9 @@ import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + const getAllHbsFiles = (dirPath) => { let hbsFiles = [];