Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TSC monorepo capabilities #887

Open
coyotte508 opened this issue Sep 2, 2024 · 0 comments
Open

Use TSC monorepo capabilities #887

coyotte508 opened this issue Sep 2, 2024 · 0 comments
Labels

Comments

@coyotte508
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant