alexeyraspopov / picocolors

The tiniest and the fastest library for terminal output formatting with ANSI colors
ISC License
1.29k stars 46 forks source link

API Extractor fails to extract types #77

Open ishon19 opened 1 month ago

ishon19 commented 1 month ago

Hello! I was working on a feature to replace chalk with picocolors in jest repo, however the build process just fails since the @microsoft/api-extractor used in the project is not happy about the types.ts file in the exported picocolors npm package, as shown in the screenshot below:

image

Linking the PR as well for more context: https://github.com/jestjs/jest/pull/15197

But when I manually go to the node_modules/picocolors and change the file name from types.ts to types.d.ts, it just works fine. Just wanted to know, is there any possible workaround? And if this seems to be a potential fix, I'm happy to contribute. Any help/suggestion appreciated! :)

ishon19 commented 1 month ago

@alexeyraspopov would appreciate your suggestions on this one, this has been blocking my PR.