fix(core): update

This commit is contained in:
2024-02-29 14:42:33 +01:00
parent 50b0fd357a
commit d98c54fba9
3 changed files with 11 additions and 6 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartchok',
version: '1.0.32',
version: '1.0.33',
description: 'smart wrapper for chokidar'
}

View File

@ -95,10 +95,14 @@ export class Smartchok {
const done = plugins.smartpromise.defer<void>();
this.status = 'starting';
this.watcher = new plugins.watcher(
this.watchStringmap.getStringArray().map((string) => this.getGlobBase(string)),
this.watchStringmap.getStringArray().map((string) => {
const result = this.getGlobBase(string);
console.log(`Watching ${result} for changes`);
return result;
}),
{
depth: 20,
recursive: true,
recursive: false,
}
);
this.watcher.on('ready', () => {