vite-plugin-watch-and-run
Advanced tools
Comparing version 1.4.3 to 1.4.4-next.0
# @kitql/vite-plugin-watch-and-run | ||
## 1.4.4-next.0 | ||
### Patch Changes | ||
- [#472](https://github.com/jycouet/kitql/pull/472) | ||
[`d52c197`](https://github.com/jycouet/kitql/commit/d52c19735a4702398dab9dc5592ce0b4cf98a939) | ||
Thanks [@jycouet](https://github.com/jycouet)! - add absolutePath in second param of run as info | ||
## 1.4.3 | ||
@@ -4,0 +12,0 @@ |
@@ -116,3 +116,3 @@ "use strict"; | ||
if (typeof info.run === "function") { | ||
const promise = info.run(server); | ||
const promise = info.run(server, absolutePath); | ||
try { | ||
@@ -119,0 +119,0 @@ if (promise) { |
@@ -22,3 +22,3 @@ import type { Plugin, ViteDevServer } from 'vite'; | ||
*/ | ||
run: string | ((server: ViteDevServer) => void | Promise<void>); | ||
run: string | ((server: ViteDevServer, absolutePath: string | null) => void | Promise<void>); | ||
/** | ||
@@ -51,3 +51,3 @@ * Delay before running the run command (in ms) | ||
logs: LogType[]; | ||
run: string | ((server: ViteDevServer) => void | Promise<void>); | ||
run: string | ((server: ViteDevServer, absolutePath: string | null) => void | Promise<void>); | ||
delay: number; | ||
@@ -54,0 +54,0 @@ isRunning: boolean; |
@@ -87,3 +87,3 @@ import { cyan, green, Log, magenta, red } from '@kitql/helpers'; | ||
if (typeof info.run === 'function') { | ||
const promise = info.run(server); | ||
const promise = info.run(server, absolutePath); | ||
try { | ||
@@ -90,0 +90,0 @@ if (promise) { |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "1.4.3", | ||
"version": "1.4.4-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
31477
2