Skip to content

Commit

Permalink
chore(deps): bump chokidar to 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Dec 23, 2024
1 parent 706d1d5 commit 32677a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/fs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Dirent, WriteFileOptions } from 'fs';
import chokidar, { WatchOptions } from 'chokidar';
import chokidar, { ChokidarOptions } from 'chokidar';
import BlueBirdPromise from 'bluebird';
import { dirname, join, extname, basename } from 'path';
import { escapeRegExp } from 'hexo-util';
Expand Down Expand Up @@ -382,7 +382,7 @@ export function rmdirSync(path: string) {
}

export function watch(
path: string | ReadonlyArray<string>, options?: WatchOptions) {
path: string | Array<string>, options?: ChokidarOptions) {
if (!path) throw new TypeError('path is required!');

const watcher = chokidar.watch(path, options);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"license": "MIT",
"dependencies": {
"bluebird": "^3.7.2",
"chokidar": "^3.5.3",
"chokidar": "^4.0.3",
"graceful-fs": "^4.2.10",
"hexo-util": "^3.0.1"
},
Expand All @@ -39,7 +39,7 @@
"@types/chai": "^4.3.12",
"@types/graceful-fs": "^4.1.5",
"@types/mocha": "^10.0.6",
"@types/node": "^18.7.16 <18.19.9",
"@types/node": "^22.10.2",
"c8": "^9.1.0",
"chai": "^4.3.6",
"eslint": "^8.23.0",
Expand Down

0 comments on commit 32677a3

Please sign in to comment.