| ▲ | forty 3 hours ago | |
I put any sufficiently complex command to scripts/<command>.sh and keep the package json as light as possible. One very big upside I have to use package.json is that we use pnpm which has very sophisticated way of targeting packages with --filter (like "run tests from packages that had modification compared to master and all their transitively dependents packages" which is often exactly what you want to do) | ||