Closed openreply-dleinhaeuser closed 2 years ago
check-peer-dependencies does attempt to install as devDependencies if the peer dep is from a devDependency. Something must not be working correctly.
note to self: npm install --save-dev eslint-config-airbnb
installs all peer dependencies now (npm 8) so to reproduce, delete node_modules/eslint
I misread the code, this isn't currently implemented. I agree it is the proper/desired behavior
When using
check-peer-dependencies --install
it properly identifies and installs missing peer dependencies, however peer dependencies of dev-dependencies are not installed as dev-dependencies.Example:
> npm install --save-dev eslint-config-airbnb
on a freshly initialized otherwise empty project complains about missing peer dependenciesExpected behavior
> npx check-peer-dependencies --install
installs missing peer dependencies ofeslint-config-airbnb
as dev-dependencies since it is itself a dev-dependencyActual behavior
> npx check-peer-dependencies --install
installs missing peer dependencies ofeslint-config-airbnb
as non-dev dependencies