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.