1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

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 c4a67425bc
commit cf4696ad8a

View file

@ -144,7 +144,7 @@ module.exports = server.listen(env.PORT || 0, async () => {
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
.watch(watchPath, {
ignored: "**/node_modules",