kaitakami / elysiajs-drizzleORM-lucia-auth-template

Elysiajs, drizzleORM and Lucia Auth template
MIT License
5 stars 0 forks source link

bun build doesn't support glob patterns (or outdir?) #1

Open tribixbite opened 4 months ago

tribixbite commented 4 months ago

from a fresh git clone + bun install: `\elysiajs-drizzleORM-lucia-auth-template> bun run build $ bun build ./src/index.ts ./src/routes///* --outdir build --target bun error: ModuleNotFound resolving ".\src\routes\api" (entry point)

error: ModuleNotFound resolving ".\src\routes\api\v1" (entry point) error: script "build" exited with code 1`

also from bun docs: Currently, the --compile flag can only accept a single entrypoint at a time and does not support the following flags:

kaitakami commented 3 months ago

This is an elysia-autoroutes issue. I created an issue in their repo, hoping for a response soon. But it seems he hasn't released anything for a while and honestly I don't think he will add support to bun.build soon.

Probably I will implement my own simple version of elysia-routes to get rid of this issue.

Thank you @tribixbite for raising this issue!