Treat any tarball as plugins when watching plugins directory

This commit is contained in:
Andrew Kingston 2022-08-18 11:23:24 +01:00
parent b7cf65e6dc
commit 249b960ff6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ module.exports = server.listen(env.PORT || 0, async () => {
env.PLUGINS_DIR && env.PLUGINS_DIR &&
fs.existsSync(env.PLUGINS_DIR) fs.existsSync(env.PLUGINS_DIR)
) { ) {
const watchPath = path.join(env.PLUGINS_DIR, "./**/dist/*.tar.gz") const watchPath = path.join(env.PLUGINS_DIR, "./**/*.tar.gz")
chokidar chokidar
.watch(watchPath, { .watch(watchPath, {
ignored: "**/node_modules", ignored: "**/node_modules",