A project I'm working on needs 3 things to happen before dev/build:

Hash legal content (license, terms) to detect changes.

Split a huge GeoJSON file into per-region chunks.

Generate static SEO landing pages from a metadata JSON.

npm's pre- scripts hook into dev and build automatically. But chaining 3+ steps gets messy fast.