From d8ac2c9544eb491acb5618e5247ec58a7d269504 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 9 Jan 2014 18:46:05 +0100 Subject: .functions: Make `np` remove `node_modules` This lets you catch cases where you forgot to add a dependency to `package.json`. Closes #321. --- .functions | 1 + 1 file changed, 1 insertion(+) (limited to '.functions') diff --git a/.functions b/.functions index e78f855..94c5d46 100644 --- a/.functions +++ b/.functions @@ -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} && \ -- cgit v1.2.3