drizzle-team / drizzle-team/drizzle-orm
[BUG]: Cannot create migrations when using: import "server-only"
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.29.3
### What version of `drizzle-kit` are you using?
0.20.13
### Describe the Bug
Clone repo https://github.com/gnllucena/drizzle-import-server-only
`bun install`
`bun run migration:generate`
The command will only create the `meta` folder and the `_journal.json` file on `src/server/data/migrations/` folder.
If you remove the `import “server-only”` from `src/server/data/schema/customers-schema.ts` you’ll notice that the migrations are generated normally.
### Expected behavior
The migrations should be created when schema uses `import "server-only"`
### Environment & setup
OS: macOS 14.2.1 23C71 arm64
Kernel: 23.2.0
Shell: fish 3.5.0
Contributor guide
Assessment
This issue has not been assessed yet.