If I have .ts
files that I want transpiled into .js
how do I do that using a config file rather than having to specify flags in bun build
?
e.g. This command does what I want:
bun build *.ts --outdir=./dist
But if I use this tsconfig.json
:
{
"compilerOptions": {
"outDir": "./dist",
},
"include": ["*.ts"],
}
And run bun build
without any flags it doesn’t work.
bun build v1.1.24 (85a32991)
error: Missing entrypoints. What would you like to bundle?
Is there a way to use a config file and not have to use flags every time?
10