From a6c6d43d7f797b05e80f588d9e6edc990be2164b Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 10 Sep 2024 01:55:41 +0000 Subject: [PATCH] Fix compatibility with new glob library --- server/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/index.js b/server/index.js index 082ec96..86fb491 100644 --- a/server/index.js +++ b/server/index.js @@ -116,6 +116,7 @@ export class Server extends BaseServer { async autoloadModules( files = ['modules/*/index.js', 'modules/*.js', '!**/*.{test,spec}.js'] ) { + if (!Array.isArray(files)) files = [files] let matches = await glob(files, { absolute: true, cwd: this.options.root,