packages-condom
v1.2.0
Published
Check your code are not using some dev depedencies
Downloads
14
Readme
packages-condom
Check your code are not using some dev dependencies
Why
In the build process, your code will be tested with non-production packages. In fact all dev dependencies are installed too. Your production code can require some dev dependencies and crash at runtime. This module search in your code all required modules and check if those are defined as dependencies or peer dependencies.
Install
npm install -g packages-condom
Usage
packages-condom <path>
Without any parameters, the condom checks all requires are included as dependencies or optionalDependencies. By default, the peerDependencies are not allowed.
To change the default configuration, some CLI parameters are allowed:
--no-dependency
--peer-dependency
--no-optional-dependency
--glob-pattern <string>
Overwrite glob pattern (specify multiple times to include/exclude a list). Default is['**/*.js', '!node_modules/**/*', '!test/**/*', '!tests/**/*']
Todo
- Better output