fix(core): update

This commit is contained in:
2024-02-21 01:06:52 +01:00
parent da6aa9827c
commit 1e98fd99f4
5 changed files with 301 additions and 309 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.21',
version: '3.0.22',
description: 'easy serving of static files'
}

View File

@ -178,7 +178,7 @@ export class TypedServer {
);
}
if (this.options.watch && this.options.serveDir) {
this.smartchokInstance = new plugins.smartchok.Smartchok([this.options.serveDir], {});
this.smartchokInstance = new plugins.smartchok.Smartchok([this.options.serveDir]);
await this.smartchokInstance.start();
(await this.smartchokInstance.getObservableFor('change')).subscribe(async () => {
await this.createServeDirHash();