Skip to content

Commit

Permalink
fix(package): update deps and npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Mar 16, 2017
1 parent 3992991 commit 4d00b3c
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 394 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var mukla = module.exports = function mukla (name, fn, showStack) {
throw new TypeError('mukla: expect at least `fn` be function')
}
name = name || utils.getFnName(fn) || 'anonymous'
mukla.emit = mukla.reporter && mukla.reporter.emit || null
mukla.emit = (mukla.reporter && mukla.reporter.emit) || null
mukla.emit = typeof mukla.emit === 'function' ? mukla.emit : null

utils.alwaysDone(fn, {
Expand Down
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"lint": "standard --verbose",
"pretest": "npm run lint",
"test": "npm run coverage",
"posttest": "npm run lint:coverage",
"coverage": "nyc node test.js",
"lint:coverage": "nyc check-coverage --lines 0 --branches 0 --statements 0 --functions 0",
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard index.js test.js --fix --verbose",
"test": "npm-run-all -s lint test:*",
"test:api": "nyc --reporter lcov node test.js",
"test:report": "nyc report",
"prerelease": "npm test",
"release": "standard-version --sign --no-verify",
"precommit": "git add --all",
"commit": "git-cz"
"git": "npm-run-all -s git:*",
"git:add": "git add --all",
"git:cz": "git-cz",
"commit": "npm-run-all -s test git"
},
"dependencies": {
"always-done": "^1.1.0",
Expand All @@ -33,12 +32,12 @@
"assertit": "^0.1.0",
"capture-stream": "^0.1.2",
"commitizen": "~2.7.0",
"coveralls": "^2.11.14",
"cz-conventional-changelog": "^1.2.0",
"nyc": "^8.3.2",
"pre-commit": "^1.1.3",
"standard": "^8.5.0",
"standard-version": "^3.0.0"
"cz-conventional-changelog": "1.1.5",
"npm-run-all": "~3.1.2",
"nyc": "^10.1.2",
"pre-commit": "^1.2.2",
"standard": "^9.0.0",
"standard-version": "^4.0.0"
},
"files": [
"index.js",
Expand Down
Loading

0 comments on commit 4d00b3c

Please sign in to comment.