From 12200eea4cad25924ee5052e06aafaa63dd0632c Mon Sep 17 00:00:00 2001 From: Yago Date: Thu, 7 Jul 2016 23:44:45 +0200 Subject: [PATCH] prepublish:test script --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1a8643b..54fc0e2 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,9 @@ "bot" ], "scripts": { - "prepublish": "./node_modules/.bin/babel -d ./lib src", - "test": "./node_modules/.bin/mocha test/index.js --timeout 10000", + "prepublish": "babel -d ./lib src", + "test": "mocha test/index.js --timeout 10000", + "prepublish:test": "npm run prepublish && npm run test", "test-cov": "./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", "gen-doc": "./node_modules/.bin/jsdoc2md --src src/telegram.js -t README.hbs > README.md", "eslint": "./node_modules/.bin/eslint ./src"