Finds multiple modules versions in your node_modules
It is possible that a single package gets included multiple times in your bundle due to different package versions, resulting in extra bloat and may lead to bugs.
npm i @streamrail/npm-check --save-dev
I recommend running this script before your tests in the following way:
In package.json:
"scripts": {
"test": "node node_modules/@streamrail/npm-check/npm-check.js && ... build && ... test",
},
The default behaviour of the script is to exit with error when multiple versions found.
Valid:
Invalid: