Skip to content

Support building with project references #92

@targos

Description

@targos

Currently, the build unconditionally calls tsc. In a monorepo with project references (internal packages), the command must be called with the --build flag.
I'm not sure if this should be automatic (analyse the tsconfig.json and add the flag if it has a references array) or an option to node ace build?

Refs:

assembler/src/bundler.ts

Lines 141 to 155 in 5581c04

/**
* Runs tsc command to build the source.
*/
async #runTsc(outDir: string): Promise<boolean> {
try {
await run(this.cwd, {
stdio: 'inherit',
script: 'tsc',
scriptArgs: ['--outDir', outDir],
})
return true
} catch {
return false
}
}

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