build(docs-infra): revert watchr to v3.0.1 to restore docs-watch performance (#41903)

[`watchr` v4.0.0][1] changes the way watched directories are
scanned/watched, thus causing a great increase in the consumed CPU and
RAM. This affects the performance of the `docs-watch` and transitively
`serve-and-sync` npm scripts.
(For reference, on my local machine it goes from 0% CPU and 275MB RAM
with v3.0.1 to 50% CPU and 10GB RAM with v4+.)

This commit pins `watchr` to version 3.0.1 (which is the latest version
that does not cause performance issues) and disabled automatic updates
via Renovate.

[1]: https://github.com/bevry/watchr/releases/tag/v4.0.0

PR Close #41903
This commit is contained in:
George Kalpakas
2021-04-30 20:52:59 +03:00
committed by Misko Hevery
parent 38f47be7af
commit 6967f3ca28
3 changed files with 121 additions and 70 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
"unist-util-source": "^3.0.0",
"unist-util-visit": "^2.0.3",
"unist-util-visit-parents": "^3.1.1",
"watchr": "^6.9.0",
"watchr": "^3.0.1",
"xregexp": "^5.0.2",
"yargs": "^16.2.0"
}