wobsoriano / elysia-autoroutes

File system routes for Elysia.js.
MIT License
112 stars 8 forks source link

`bun build` doesn't work as expected #20

Open kaitakami opened 2 months ago

kaitakami commented 2 months ago

I have set up autoroutes in my elysia server according to the docs.

However, when I run bun run build and I set my entrypoint as index.ts (where I initialize my elysia app) it doesn't generate the routes in the ./routes directory (the routes set using autoroutes). It doesn't throw error neither.

In bun run dev it works amazing, however it doesn't seem to be working with run build?

Is this a bug, expected behaviour, am I missing something?