drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Using bun as a cli runner

Open
#1,847 2 comments 2 reactions 0 assignees View on GitHub
drizzle/kit enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Describe what you want

My vite project uses `import.meta.env` in many places, and the drizzle cli throws an error when run with node cjs, but if I force `bun -b` to run `drizzle-kit generate:sqlite` it doesn't throw an error but the cli will output the

```
drizzle-kit: v0.20.13
drizzle-orm: v0.29.3

No config path provided, using default 'drizzle.config.ts'
Reading config file './drizzle.config.ts'
0 tables

No schema changes, nothing to migrate 😴
```

I therefore recommend that drizzle-kit use bun as the runner by default, with the added benefit that cli no longer needs to transpile ts, and dotenv loading is automatic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.