Skip to content

Commit

Permalink
Always reinstall node_modules before publishing new versions (#57).
Browse files Browse the repository at this point in the history
Prevents stagnant versions from being bundled.
  • Loading branch information
brianreavis committed Jul 30, 2014
1 parent 38c4fd3 commit 828ddf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ test-concurrent: clean-test
& node ./node_modules/.bin/_mocha
@make clean-test

release: test
release:
ifeq ($(strip $(version)),)
@echo "\033[31mERROR:\033[0;39m No version provided."
@echo "\033[1;30mmake release version=1.0.0\033[0;39m"
else
rm -rf node_modules
npm install
make test
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' package.json
rm *.bak
git add .
Expand Down

0 comments on commit 828ddf3

Please sign in to comment.