sikanhe / gqtx

Code-first Typescript GraphQL Server without codegen or metaprogramming
458 stars 13 forks source link

Fix CJS type import when moduleResolution is node16 #76

Closed andrew0 closed 8 months ago

andrew0 commented 8 months ago

The types right now currently don't work if the user is using node16 moduleResolution in a CJS project: https://arethetypeswrong.github.io/?p=gqtx%400.9.3

After running yarn build && cd dist && npx @arethetypeswrong/cli --pack with this change:

image
sikanhe commented 8 months ago

@andrew0 This is amazing - appreciate your help