Open axmad386 opened 1 year ago
With bun, we can run artisan command. Tested and working. But some part are not fully compatible
start
method yet, So artisan tinker will not run// Dont do this
await Route.group(base_path("routes/web"));
// instead do this
await Route.group(()=>import("path/to/route"))
jsonwebtoken
and mysql2
still have open issue related bunThis is working example of using lunoxjs in bun environment https://github.com/axmad386/lunox-bun-example
For now artisan command should run only after build step, or run in watch mode (
pnpm dev
). So tstep by step to run artisan command for now is:pnpm build
orpnpm dev
, wait until source code is compiledpnpm artisan [command]
It will be nice if we can run artisan command without compiling the source code, for example using
ts-node
. But I was tried using it and is complicated for esm type project. I see this magic tool for alternative https://github.com/esbuild-kit/tsx I think we can use it in development.