jorgebucaran / colorette

🌈Easily set your terminal text color & styles
MIT License
1.61k stars 51 forks source link

fix: add `types` to `exports` for `package.json` #96

Closed ahnpnl closed 2 years ago

ahnpnl commented 2 years ago

Summary

types corresponds to main only. main/types will be completely ignored by Node/TypeScript if exports is defined. This is mentioned at https://github.com/microsoft/TypeScript/issues/49160#issuecomment-1137482639

Related to https://github.com/kulshekhar/ts-jest/issues/3800

kibertoad commented 2 years ago

thank you!

koooge commented 1 year ago

I encountered a build error with "moduleResolution": "node16" and it seems to relate to this. Could you release the next version?

jorgebucaran commented 1 year ago

Apologies for the late reply and missing this earlier! I've just published it now. Thanks! 💯