diff --git a/package.json b/package.json index 62008ca..be9f154 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,15 @@ "node": ">=6" }, "scripts": { - "clean": "rm -rf node_modules build coverage dist", - "build": "npm run lint && npm run buildDist", - "buildDist": "rm -rf dist/* && ./node_modules/.bin/tsc", "test": "npm run lint && npm run mocha", + "lint": "tslint -c tslint.json 'src/**/*.ts'", "mocha": "node --preserve-symlinks -r source-map-support/register node_modules/mocha/bin/_mocha --opts src/test/mocha.opts", - "cover": "rm -rf coverage && nyc --reporter=lcov --reporter=text-summary npm run test", - "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'" + "cover": "npm run cleanCoverage && nyc --reporter=lcov --reporter=text-summary npm run test", + "compile": "./node_modules/.bin/tsc", + "cleanCoverage": "rm -rf .nyc_output coverage", + "cleanDist": "rm -rf dist", + "build": "npm run lint && npm run buildDist", + "buildDist": "npm run cleanDist && npm run compile" }, "repository": { "type": "git",