Check your code are not using some dev dependencies
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.
npm install -g packages-condom
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:
--glob-pattern <string>Overwrite glob pattern (specify multiple times to include/exclude a list). Default is
['**/*.js', '!node_modules/**/*', '!test/**/*', '!tests/**/*']
- Better output