Skip to content

Use TSC monorepo capabilities #887

Open
@coyotte508

Description

@coyotte508

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions