This project attempts to analyze npm package contents for issues with their TypeScript types, particularly ESM-related module resolution issues. Packages can be explored via the website or CLI. The following kinds of problems can be detected in the node10
, node16
, and bundler
module resolution modes:
- π Resolution failed
- β No types
- π Masquerading as CJS
- πΊ Masquerading as ESM
β οΈ ESM (dynamic import only)- π Used fallback condition
- π€¨ CJS default export
- βοΈ Incorrect default export
- β Missing
export =
- π Unexpected module syntax
- π₯΄ Internal resolution error
- π΅οΈββοΈ Named exports
You can check packages on disk with @arethetypeswrong/cli
. See its README for usage.
Contributions are welcome! Take a look at the open issues or read about how to contribute to open source.