fdarian / prisma-generator-drizzle

A Prisma generator for generating Drizzle schema with ease
88 stars 10 forks source link

Add js extension to import paths #28

Closed daniel-nagy closed 5 months ago

daniel-nagy commented 5 months ago

This PR adds the .js extension to relative imports. This is required when the moduleResolution is NodeNext. However, I believe this is harmless otherwise. So the simplest solution may be to just always add the extension to relative imports. I could be wrong though. I did not test other configuration.

If you want to use this branch as a temporary workaround you can istall it using

yarn add daniel-nagy/prisma-generator-drizzle#js-ext-pkg

or a similar git URL if you're not using yarn.

resolves #18

fdarian commented 5 months ago

Thanks! I'm not really familiar with the nodenext resolution