valtyr / prisma-kysely

🪄 Generate Kysely types directly from your Prisma schema!
https://www.npmjs.com/package/prisma-kysely
MIT License
951 stars 36 forks source link

Support for node16 and nodenext module resolution #88

Open tonybruess opened 10 months ago

tonybruess commented 10 months ago

Hi there,

The generated types.ts file is importing ./enums. When using node16 or nodenext the import should be ./enums.js.

The error is:

error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './enums.js'?