knex
knex copied to clipboard
Proper support for Typescript and ESM by migrating to better libraries/frameworks.
I see many problems in this wonderful library adding proper typescript and esm support.
I strongly invite you to consider migrating from:
- Jest to Vitest
- ts-node / ts-register to tsx
vitest
and tsx
properly support both typescript and ESM, which are a must nowadays.
underrated issue 👆
PRs are very welcome!
@kibertoad I'd be glad to work on it, but before investing so much effort in it I'd like to ask you: is there an intention to actually push this from the maintainers' side? Furthermore, did you consider moving to an ESM-first lib?
ESM-first no. I've tried to create a ESM-only webservice as recently as this week, and tooling is still not there. I'm open to dual-publish of ESM+CommonJS.
@kibertoad which tooling are you referring too? Just to share your experience/knowledge.