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
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.