drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Drizzle kit support custom import/export conditions
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
In monorepo's it's very common to have custom import conditions.
You're server (drizzle integration) may depend on another package with a package.json like this:
```json
"exports": {
".": {
"custom": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
```
AFAIK, drizzle kit does not support this currently. Instead, I always have to build the dependency so drizzle can resolve it from the `import` path.
This makes development paths hard to use.
This is why I want to propose support for custom conditions for `drizzle-kit`.
Contributor guide
Assessment
This issue has not been assessed yet.