vite-plugin-watch-and-run
Advanced tools
Comparing version 1.7.1 to 1.7.2-next.0
# @kitql/vite-plugin-watch-and-run | ||
## 1.7.2-next.0 | ||
### Patch Changes | ||
- [#801](https://github.com/jycouet/kitql/pull/801) | ||
[`50da081`](https://github.com/jycouet/kitql/commit/50da081607f041431006a3f250009c8603a98d4d) | ||
Thanks [@kerryj89](https://github.com/kerryj89)! - watch support path outside of current directory | ||
- Updated dependencies []: | ||
- @kitql/helpers@0.8.10 | ||
## 1.7.1 | ||
@@ -4,0 +15,0 @@ |
@@ -173,2 +173,7 @@ "use strict"; | ||
const watchAndRunConf = checkConf(params); | ||
for (const conf of watchAndRunConf) { | ||
if (conf.watch) { | ||
server.watcher.add(conf.watch); | ||
} | ||
} | ||
for (const kind of kindWithPath) { | ||
@@ -175,0 +180,0 @@ const _watcher = async (absolutePath) => watcher(server, absolutePath, kind, watchAndRunConf); |
@@ -61,2 +61,3 @@ import type { PluginOption, ViteDevServer } from 'vite'; | ||
getCheckedConf: () => StateDetail[]; | ||
configureServer: (server: ViteDevServer) => void; | ||
}; |
@@ -150,2 +150,8 @@ import { spawn } from 'child_process'; | ||
const watchAndRunConf = checkConf(params); | ||
// watch files outside of Vite root directory | ||
for (const conf of watchAndRunConf) { | ||
if (conf.watch) { | ||
server.watcher.add(conf.watch); | ||
} | ||
} | ||
for (const kind of kindWithPath) { | ||
@@ -152,0 +158,0 @@ const _watcher = async (absolutePath) => watcher(server, absolutePath, kind, watchAndRunConf); |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "1.7.1", | ||
"version": "1.7.2-next.0", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "type": "module", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
36273
416
2