Open History to see the last commit
1import { rm } from 'node:fs/promises'
2import { execFileSync } from 'node:child_process'
3
4// TypeScript does not remove outputs belonging to deleted source files.
5// Start clean so removed codecs cannot remain in a locally packed artifact.
6await rm(new URL('../dist/', import.meta.url), { recursive: true, force: true })
7execFileSync('tsc', ['-p', 'tsconfig.build.json'], { stdio: 'inherit' })