mirror of
https://github.com/timvisee/send.git
synced 2026-04-18 21:54:11 -04:00
added sync-npm-dependencies script and hooks
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "checking package-lock.json for changes"
|
||||
if [ "$1" != "$2" ]; then
|
||||
DIFF=$(git diff $1 $2 package-lock.json)
|
||||
if [ "$DIFF" != "" ]; then
|
||||
npm install
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user