diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-07-30 13:33:17 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-07-30 13:33:17 -0300 |
commit | cef0a2a3e2e141baffc47ee61d5971c37cb63ea3 (patch) | |
tree | 8441ccf8f74630c396ca977ba3f866fec0d24ab9 | |
parent | 7a0ab0d3f3e23cb1fa0737fa40e2781dec9212cd (diff) |
infra: ignore .DS_Store in content dependencies
-rw-r--r-- | src/content/dependencies/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js index 25d7324f..cfa6346c 100644 --- a/src/content/dependencies/index.js +++ b/src/content/dependencies/index.js @@ -94,6 +94,8 @@ export function watchContentDependencies({ const filePaths = files.map(file => path.join(watchPath, file)); for (const filePath of filePaths) { if (filePath === metaPath) continue; + if (filePath.endsWith('.DS_Store')) continue; + const functionName = getFunctionName(filePath); if (!isMocked(functionName)) { contentDependencies[functionName] = null; @@ -105,8 +107,9 @@ export function watchContentDependencies({ watcher.on('all', (event, filePath) => { if (!['add', 'change'].includes(event)) return; if (filePath === metaPath) return; - handlePathUpdated(filePath); + if (filePath.endsWith('.DS_Store')) return; + handlePathUpdated(filePath); }); watcher.on('unlink', (filePath) => { @@ -115,6 +118,8 @@ export function watchContentDependencies({ return; } + if (filePath.endsWith('.DS_Store')) return; + handlePathRemoved(filePath); }); |