Skip to content

Commit

Permalink
fix: correct file watcher to ignore saved.md files instead of saved.j…
Browse files Browse the repository at this point in the history
…son (#69)

Fixes #68
  • Loading branch information
chrispcampbell authored Mar 6, 2024
1 parent 5ffed5e commit 8329406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs-builder/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function watch() {
const filesToWatch = [glob(projectsDir)]
const watcher = chokidar.watch(filesToWatch, {
ignoreInitial: true,
ignored: [/en\/docs\.po/, /saved\.json/, /timestamp/, /public/],
ignored: [/en\/docs\.po/, /saved\.md/, /timestamp/, /public/],
// XXX: Include a delay, otherwise on macOS we sometimes get multiple
// change events when a file is saved just once
awaitWriteFinish: {
Expand Down

0 comments on commit 8329406

Please sign in to comment.