Update husky & lint-staged, tweak their scripts
This commit is contained in:
parent
3226aec0bf
commit
7cc4687e87
2 changed files with 467 additions and 319 deletions
763
package-lock.json
generated
763
package-lock.json
generated
File diff suppressed because it is too large
Load diff
23
package.json
23
package.json
|
@ -7,19 +7,11 @@
|
|||
"test": "jest src",
|
||||
"start-dev": "ts-node src/index.ts",
|
||||
"start-watch": "nodemon",
|
||||
"precommit": "lint-staged",
|
||||
"postcommit": "git update-index --again",
|
||||
"format": "prettier --write \"./**/*.ts\"",
|
||||
"typeorm": "ts-node ./node_modules/typeorm/cli.js",
|
||||
"build": "rimraf dist && tsc",
|
||||
"start-prod": "cross-env NODE_ENV=production node dist/index.js"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
@ -59,13 +51,24 @@
|
|||
"@types/node": "^10.12.0",
|
||||
"@types/tmp": "0.0.33",
|
||||
"babel-jest": "^24.5.0",
|
||||
"husky": "^0.14.3",
|
||||
"husky": "^1.3.1",
|
||||
"jest": "^24.5.0",
|
||||
"lint-staged": "^7.2.0",
|
||||
"lint-staged": "^8.1.5",
|
||||
"nodemon": "^1.17.5",
|
||||
"prettier": "^1.16.4",
|
||||
"rimraf": "^2.6.2",
|
||||
"tslint": "^5.13.1",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue