repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
git_hooks
/
post-merge
blob
4523ab9960e192a4b3eabcb755c43a48af8fec26
1
#!/bin/bash
2
3
if
[[
-n
$
(
git diff-tree
-r --name-only --no-commit-id
ORIG_HEAD HEAD|
grep
-E
'(package.json|npm-shrinkwrap.json)'
) ]];
then
4
echo
"Packaging has changed. Performing an npm install"
5
npm prune
6
npm
install
7
fi