From f8a62ccd04cd7aaffa160d8a8ed481818aea31f8 Mon Sep 17 00:00:00 2001 From: Amiram Korach Date: Sun, 18 Feb 2018 01:23:07 +0200 Subject: [PATCH] Update readme.md --- readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e0ab1aa..3be299d 100755 --- a/readme.md +++ b/readme.md @@ -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. @@ -17,4 +18,4 @@ Usage: "postrewrite": "smart-update", -3. Do `git pull` or `git merge` \ No newline at end of file +3. Do `git pull` or `git merge`