Skip to content

Commit 19aa6ca

Browse files
renovate[bot]RyanZimCopilot
authored
Update dependency chokidar to v6 (#538)
* Update dependency chokidar to v6 * Fix chokidar v6 polling options (#539) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ryan Zimmerman <opensrc@ryanzim.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 03e8cee commit 19aa6ca

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎index.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ try {
120120
printVerbose(pc.dim('\nWaiting for file changes...'))
121121
const deps = await dependencies(results)
122122
const watcher = chokidar.watch(input.concat(deps), {
123-
usePolling: argv.poll,
124-
interval: argv.poll && typeof argv.poll === 'number' ? argv.poll : 100,
123+
backend: argv.poll ? 'polling' : 'auto',
124+
pollingInterval:
125+
argv.poll && typeof argv.poll === 'number' ? argv.poll : 100,
125126
awaitWriteFinish: {
126127
stabilityThreshold: 50,
127128
pollInterval: 10,

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test": "c8 ava -v"
1919
},
2020
"dependencies": {
21-
"chokidar": "^5.0.0",
21+
"chokidar": "^6.0.0",
2222
"dependency-graph": "^1.0.0",
2323
"picocolors": "^1.0.0",
2424
"postcss-load-config": "^6.0.0",

0 commit comments

Comments
 (0)