diff options
author | Sindre Sorhus <sindresorhus@gmail.com> | 2014-01-09 18:46:05 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-01-09 18:47:11 +0100 |
commit | d8ac2c9544eb491acb5618e5247ec58a7d269504 (patch) | |
tree | 568763551b7d35dc51570b8ac5674367d5098006 | |
parent | 47a67ac3e467e5f8bd812208a8bfd47d6848cced (diff) | |
download | dotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.tar.gz dotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.tar.bz2 dotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.zip |
.functions: Make `np` remove `node_modules`
This lets you catch cases where you forgot to add a dependency to `package.json`.
Closes #321.
-rw-r--r-- | .functions | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -296,6 +296,7 @@ function o() { # defaults to `patch` function np() { git pull --rebase && \ + rm -rf node_modules && \ npm install && \ npm test && \ npm version ${1:=patch} && \ |