From 27f6e3a81f45565418759b087b0896964e2c282c Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 1 Feb 2025 11:23:17 +0100 Subject: [PATCH] Compiler will now only hash JS & TS files --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 25e9576..d7cc959 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,7 @@ function computeSourceHash(dir,upperHash){ for (const file of info) { const fullPath = nodepath.join(dir,file.name) - if (file.isFile()){ + if (file.isFile() && [".js",".ts",".jsx",".tsx"].some((ext) => file.name.endsWith(ext))){ const statInfo = fs.statSync(fullPath) //compute hash using file metadata const fileInfo = `${fullPath}:${statInfo.size}:${statInfo.mtimeMs}`