Fix live operator source watcher

This commit is contained in:
Meta Vens 2026-07-15 02:44:25 +01:00
commit 510cdf1d2c
2 changed files with 25 additions and 2 deletions

View file

@ -129,7 +129,7 @@ async function readSwarmOperatorInputs(paths) {
}
function watchSwarmOperatorInputs(paths, onChange, { debounceMs = 75 } = {}) {
const watched = [...new Set(Object.values(paths).map(pathModule.resolve))];
const watched = [...new Set(Object.values(paths).map((value) => pathModule.resolve(value)))];
const byDirectory = new Map();
for (const path of watched) {
const directory = pathModule.dirname(path);