ember-cli-dependency-checker is an Ember CLI addon designed to safeguard development workflows by automatically detecting and alerting developers to missing npm, pnpm, and historically, bower dependencies within an Ember project. It executes these checks before crucial `ember` commands run, preventing common errors and ensuring a consistent development environment. The latest stable version is 3.4.0. Releases are irregular, driven primarily by bug fixes, internal dependency updates, and enhancements like new package manager support (e.g., pnpm). Its key differentiator is its deep integration into the Ember CLI ecosystem, providing pre-command validation that other generic dependency checkers might not offer in the same seamless way.
Verified import paths — ran on the pinned version, not inferred.
For application developers, direct programmatic import of the main addon object is uncommon. Ember CLI consumes this addon's `index.js` directly as a CommonJS module. While modern Ember applications might transpile ESM syntax, the addon itself exports CJS at its root.
The core `Checker` class is available from an internal path. This is a CommonJS default export. While direct import of internal modules is generally discouraged due to potential breaking changes, modern Ember CLI tooling typically allows ESM import syntax for such files through transpilation.
Internal utility functions like `isGitRepo` are provided as named CommonJS exports from their respective `lib/utils` modules. Use named import syntax. Again, accessing internal paths is not part of the public API and should be done with caution.
Illustrates how to add the `ember-cli-dependency-checker` addon to an Ember CLI project and explains its automatic operation.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.