Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
amiram committed Feb 17, 2018
2 parents 24ac051 + f8a62cc commit 52a7b2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#smart-update
# smart-update

Update npm packages after git merge/pull only if dependencies were changed.

##Background
## Background

Suppose you did "git pull" and your package.json was changed. You'll probably want to run `npm update`. However, you'd like to do it only if the `dependencies` or `devDependencies` sections were changed. This package will examine also the content of the dependencies and compare the old and new ones.

Use [husky](https://www.npmjs.com/package/husky) to connect the scripts to git hooks.
Expand All @@ -17,4 +18,4 @@ Usage:
"postrewrite": "smart-update",
</pre>

3. Do `git pull` or `git merge`
3. Do `git pull` or `git merge`

0 comments on commit 52a7b2a

Please # to comment.