Treat any tarball as plugins when watching plugins directory
This commit is contained in:
parent
b7cf65e6dc
commit
249b960ff6
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue