File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import type { Dirent , WriteFileOptions } from 'fs' ;
2- import chokidar , { WatchOptions } from 'chokidar' ;
2+ import chokidar , { ChokidarOptions } from 'chokidar' ;
33import BlueBirdPromise from 'bluebird' ;
44import { dirname , join , extname , basename } from 'path' ;
55import { escapeRegExp } from 'hexo-util' ;
@@ -382,7 +382,7 @@ export function rmdirSync(path: string) {
382382}
383383
384384export 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 ) ;
Original file line number Diff line number Diff line change 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 },
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" ,
You can’t perform that action at this time.
0 commit comments