move postinstall to setup
This commit is contained in:
parent
7ca514c224
commit
315841d5dd
|
@ -146,7 +146,6 @@
|
|||
"type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
|
||||
"pretest": "yarn lint",
|
||||
"prelint": "yarn setup",
|
||||
"postinstall": "husky install",
|
||||
"lint": "yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-lint && yarn yarn-lint && yarn pretty-lint && yarn spellcheck",
|
||||
"code-lint": "eslint . --ext '.js' --cache",
|
||||
"type-lint": "tsc",
|
||||
|
|
|
@ -29,7 +29,8 @@ function setup() {
|
|||
function runSetupAsync() {
|
||||
return exec("yarn", ["install"], "Install dependencies")
|
||||
.then(() => exec("yarn", ["link"], "Create webpack symlink"))
|
||||
.then(() => exec("yarn", ["link", "webpack"], "Link webpack into itself"));
|
||||
.then(() => exec("yarn", ["link", "webpack"], "Link webpack into itself"))
|
||||
.then(() => exec("yarn", ["run", "husky", "install"]));
|
||||
}
|
||||
|
||||
function checkSymlinkExistsAsync() {
|
||||
|
|
Loading…
Reference in New Issue