Open amosbastian opened 1 week ago
@amosbastian Just by having this issue open you solved my problem! Been using esbuild + tsc-alias for a while now, and when I started extending a tsconfig things broke and I had no idea where.
It's a quick workaround and it really doesn't impact build time.
// create full temp config because tsc-alias doesn't like extended configs
// https://github.com/justkey007/tsc-alias/issues/230
await execAsync("tsc --showConfig > tsconfig.temp.json");
// replace aliases
await replaceTscAliasPaths({ outDir, configFile: "tsconfig.temp.json" });
// clean up
await fs.rm("tsconfig.temp.json");
So yeah, thanks! 🍺
I have this
tsconfig.build.json
when I run
tsc-alias -p tsconfig.build.json
it says 0 files were affectedIf I do
tsc --showConfig -p tsconfig.build.json > tsconfig.build.resolved.json
and runtsc-alias -p tsconfig.build.resolved.json
it says 44 files were affected.