diff --git a/package.json b/package.json index 289cbc8..4140d12 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "license": "MIT", "scripts": { - "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" + "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec; ([ `node -v | cut -d'v' -f2 | cut -d. -f1` -gt 3 ] && (cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage) || true)" }, "dependencies": { "async": "2.6.0",