From a2695ff2bfd977d7e7ac20dccda476ffae64509c Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Wed, 10 Apr 2024 02:33:54 +0530 Subject: [PATCH] Revert "fix ignore folders (#1929)" This reverts commit acca7984a42a8513ceacd8eb05957950268fb654. --- packages/bruno-electron/src/app/watcher.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bruno-electron/src/app/watcher.js b/packages/bruno-electron/src/app/watcher.js index 9b8690f9d..441bba3b2 100644 --- a/packages/bruno-electron/src/app/watcher.js +++ b/packages/bruno-electron/src/app/watcher.js @@ -415,12 +415,12 @@ class Watcher { ignoreInitial: false, usePolling: watchPath.startsWith('\\\\') ? true : false, ignored: (filepath) => { - const relativePath = path.relative(watchPath, filepath); - const normalizedPath = relativePath.replace(/\\/g, '/'); + const normalizedPath = filepath.replace(/\\/g, '/'); + const relativePath = path.relative(watchPath, normalizedPath); return ignores.some((ignorePattern) => { const normalizedIgnorePattern = ignorePattern.replace(/\\/g, '/'); - return normalizedPath === normalizedIgnorePattern || normalizedPath.startsWith(normalizedIgnorePattern); + return relativePath === normalizedIgnorePattern || relativePath.startsWith(normalizedIgnorePattern); }); }, persistent: true,