I have a folder structure like:
src/app1/main.ts
src/app2/main.ts
and I want the result to be:
dist/app1.js
dist/app2.js
I tried to do this with the following command:
esbuild src/**/main.ts --outdir=dist --entry-names=[dir] --bundle
But you end up with this instead:
dist/app1/.js
dist/app2/.js
This feels unintended as a lot of the examples in the docs say --entry-names=[dir]/[name] but this would produce a // if done literally.