Add FORCE_COLOR and tsc --pretty
This commit is contained in:
parent
c53ef19ab4
commit
e27fdfb212
@ -5,6 +5,7 @@ export async function run(command: string, args: string[], cwd?: string) {
|
||||
return new Subprocess(command, args, {
|
||||
...process.env,
|
||||
PATH: getPathVariable(),
|
||||
FORCE_COLOR: '1',
|
||||
})
|
||||
.run(cwd)
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ export async function build(...argv: string[]) {
|
||||
const args = parse(argv)
|
||||
const path = args.esm ? join(args.project, 'tsconfig.esm.json') : args.project
|
||||
const watchArgs = args.watch ? ['--watch', '--preserveWatchOutput'] : []
|
||||
await run(tsc, ['--build', path, ...watchArgs])
|
||||
await run(tsc, ['--build', '--pretty', path, ...watchArgs])
|
||||
}
|
||||
build.help = 'Build or watch TypeScript project'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user