Skip to content

Commit

Permalink
chore: update chokidar to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 25, 2024
1 parent c2cc1e9 commit 77aa9a2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"test:types": "tsc --noEmit"
},
"dependencies": {
"chokidar": "^3.6.0",
"chokidar": "^4.0.1",
"confbox": "^0.1.7",
"defu": "^6.1.4",
"dotenv": "^16.4.5",
Expand Down
18 changes: 16 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/watch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { WatchOptions } from "chokidar";
import type { ChokidarOptions } from "chokidar";
import { debounce } from "perfect-debounce";
import { resolve } from "pathe";
import { diff } from "ohash";
Expand All @@ -22,7 +22,7 @@ export interface WatchConfigOptions<
T extends UserInputConfig = UserInputConfig,
MT extends ConfigLayerMeta = ConfigLayerMeta,
> extends LoadConfigOptions<T, MT> {
chokidarOptions?: WatchOptions;
chokidarOptions?: ChokidarOptions;
debounce?: false | number;

onWatch?: (event: {
Expand Down

0 comments on commit 77aa9a2

Please sign in to comment.