MichalLytek / MichalLytek/typegraphql-prisma

Support for ESM modules

Open
#372 1 comment 8 reactions 1 assignee Claimed by @MichalLytek View on GitHub
enhancement
Dominant language
TypeScript
Stars
918
Forks
130
PR merge metrics
No merged PRs in 30d

Description

While the generator binary can still use CJS, it should be possible to setup generator to emit consumable ESM module including the generated types and resolvers.

The scope of the changes:
- change compile target in tsconfig.json
- use `.js` extension in imports
- proper package.json with correctly defined `types` and `main`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.