From 489fb79d6e8e0e4f6e6300737d252bc88e434584 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Wed, 9 Jan 2019 11:08:32 -0800 Subject: [PATCH] fall back to older jshint for older node --- travis-node-script.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/travis-node-script.sh b/travis-node-script.sh index fe3859b7..8cd67577 100644 --- a/travis-node-script.sh +++ b/travis-node-script.sh @@ -6,5 +6,9 @@ git clone https://github.com/creationix/nvm.git ~/.nvm source ~/.nvm/nvm.sh nvm install ${1:-"v0.12.18"} +if [ "$1" = "v4" ]; then + node -e "pack=require('./package.json');pack.devDependencies['grunt-contrib-jshint']='^1.1.0';require('fs').writeFileSync('./package.json', JSON.stringify(pack, null, 2));" +fi + npm install npm test