fix: update browserslist on install and merge rather than on serve
Having serve depend on update-browserslist can cause a race condition
when you're using npx nx run-many because one process
(update-browserslist) is changing packages while others (serve-es,
serve-fr, serve web-component) are compiling from them.
Also, having serve depend on update-browerslist makes serve much
slower on my Windows machine, because the latter can easily take a
minute.
We want to automate it, yes, but Del and I agree that on install is a
better time and place to automate it than on serve, and it's plently
often enough to satisfy our requirements.
squashed with:
chore: add browserslist update to post-merge hook (#625)
This means that when you git merge, you'll get the latest browserslist
db too.
squashed with:
fix: remove .husky/post-install since it does not do anything
There is no post-install hook in git, that's an npm thing so
postinstall scripts need to go in package.json, not in .husky.