Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-12-12 03:17:38 +00:00
commit 1aa67a5f2c
2 changed files with 0 additions and 6 deletions

View File

@ -89,16 +89,13 @@ module.exports = (cli) => {
watcher watcher
.on('ready', () => { .on('ready', () => {
console.log('Initial scan complete.');
isReady = true; isReady = true;
}) })
.on('addDir', async (pathname) => { .on('addDir', async (pathname) => {
console.log('addDir....', isReady);
if (!isReady) return; if (!isReady) return;
restartClient(); restartClient();
}) })
.on('unlinkDir', async (pathname) => { .on('unlinkDir', async (pathname) => {
console.log('unlinkDir....', isReady);
if (!isReady) return; if (!isReady) return;
restartClient(); restartClient();
}); });

View File

@ -58,16 +58,13 @@ module.exports = (cli) => {
watcher watcher
.on('ready', () => { .on('ready', () => {
console.log('Initial scan complete.');
isReady = true; isReady = true;
}) })
.on('addDir', async (pathname) => { .on('addDir', async (pathname) => {
console.log('addDir....', isReady);
if (!isReady) return; if (!isReady) return;
restart(); restart();
}) })
.on('unlinkDir', async (pathname) => { .on('unlinkDir', async (pathname) => {
console.log('unlinkDir....', isReady);
if (!isReady) return; if (!isReady) return;
restart(); restart();
}); });