Skip to content

Commit a7abff2

Browse files
chore(deps): bump chokidar to 4.0.3 (#193)
1 parent c5bdc19 commit a7abff2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Dirent, WriteFileOptions } from 'fs';
2-
import chokidar, { WatchOptions } from 'chokidar';
2+
import chokidar, { ChokidarOptions } from 'chokidar';
33
import BlueBirdPromise from 'bluebird';
44
import { dirname, join, extname, basename } from 'path';
55
import { escapeRegExp } from 'hexo-util';
@@ -382,7 +382,7 @@ export function rmdirSync(path: string) {
382382
}
383383

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

388388
const watcher = chokidar.watch(path, options);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"license": "MIT",
3131
"dependencies": {
3232
"bluebird": "^3.7.2",
33-
"chokidar": "^3.5.3",
33+
"chokidar": "^4.0.3",
3434
"graceful-fs": "^4.2.10",
3535
"hexo-util": "^3.0.1"
3636
},
@@ -39,7 +39,7 @@
3939
"@types/chai": "^4.3.12",
4040
"@types/graceful-fs": "^4.1.5",
4141
"@types/mocha": "^10.0.6",
42-
"@types/node": "^18.7.16 <18.19.9",
42+
"@types/node": "^22.10.2",
4343
"c8": "^9.1.0",
4444
"chai": "^4.3.6",
4545
"eslint": "^8.23.0",

0 commit comments

Comments
 (0)