Skip to content

Typescript project reference #1839

@rrousselGit

Description

@rrousselGit

🙋 feature request

With typescript 3.0.0 there's now something called "Project reference". It basically links multiple ts packages together in mono-repository. And build them in order in a single tsc call.

https://www.typescriptlang.org/docs/handbook/project-references.html

Faster build time, cool and all. But it requires a custom flag to tsc : tsc -b

🤔 Expected Behavior

Parcel detects that there's project reference activated and pass -b flag

😯 Current Behavior

-b flag isn't passed. Therefore dependencies are not built. Leading to

Cannot resolve dependency "my-dependency"

💁 Possible Solution

If the tsconfig.json contains references field, add -b flag
As a workaround, we can manually call tsc -w -b on another terminal. But then that's the equivalent of not using parcel

🔦 Context

Simply setting up a project with "Project references".

💻 Examples

WIP

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions