pnpm --parallel -r dev runs the dev script for every package that has it. It has to do it in parallel because by default, pnpm runs these scripts in the order of dependencies, for example:
typegpu runs first, because typegpu-docs depends on it
typegpu-docs runs after all dependencies' scripts have been ran.
This does not work for watch scripts, because they never finish. This however creates a problem, where if typegpu-docs builds before typegpu does, we get an error, so we usually have to rerun the script a couple times.
Where dev:build builds a package in development mode, so no need to do production-step checks and such, and dev:watch works like dev worked previously.
pnpm --parallel -r dev
runs thedev
script for every package that has it. It has to do it in parallel because by default, pnpm runs these scripts in the order of dependencies, for example:typegpu
runs first, becausetypegpu-docs
depends on ittypegpu-docs
runs after all dependencies' scripts have been ran.This does not work for watch scripts, because they never finish. This however creates a problem, where if typegpu-docs builds before typegpu does, we get an error, so we usually have to rerun the script a couple times.
Possible solution
Change:
Into:
Where
dev:build
builds a package in development mode, so no need to do production-step checks and such, anddev:watch
works likedev
worked previously.