Golang utility to check changes in requirements.txt and package.json
./isChangedLinux -npm=/home/project/package.json
./isChangedLinux -pip=/home/project/requirements.txt
In package.json checks only two arguments: "dependencies" and "devDependencies".
First check save maps to history.gob file. Second - compare maps and return Exit.code(10) if changed, Exit.code(11) if equal.
To check pip file requirements.txt
./isChanged -pip=/home/project/requirements.txt
Check if package.json changed remove old node_modules and npm install
Makefile
./isChangedLinux -npm=/home/project/package.json \
if [ $$? -eq 10 ] ; \
then cd $(JS_DIR) && rm -rf node_modules && npm install ; fi