Skip to content

[FEATURE]: Drizzle kit support custom import/export conditions #4985

@florianmartens

Description

@florianmartens

Feature hasn't been suggested before.

  • 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:

"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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions