Open
Description
tsc has monorepo capabilities I wasn't even aware of
you can add this to the root/base tsconfig.json
:
"composite": true,
"incremental": true
and build with tsc -b
and in individual package.json, add "references": [{ "path": "..." }]
to reference dependencies
And typescript takes care to cache builds, and build dependencies automatically. No need to do pnpm --filter package... build
to build all sub-dependencies (and even if we keep that command, it'll be faster anyway due to caching)