tweak(lerna/setup): Slightly tweak setup for lerna monorepo

* Added @octokit/core (peer-dep for lerna)
* Added yarn bootstrap on post-install script to automatically bootstrap lerna repo
This commit is contained in:
Franco Sanllehi authored and GitHub committed 2021-05-02 22:15:24 -04:00
1 parent ba8f722c35
commit 1ac4b6dd8d
2 files changed
+1188 -21

No files matched your search

+3 -2
View File
@@ -5,6 +5,7 @@
"repository": "https://github.com/project-error/new-phone-who-dis",
"license": "CC-BY-NC-SA-4.0",
"devDependencies": {
"@octokit/core": "^3.4.0",
"husky": "^5.1.3",
"lerna": "^3.22.1",
"prettier": "^2.2.1",
@@ -15,11 +16,11 @@
"prepare": "husky install",
"bootstrap": "lerna bootstrap",
"format:staged": "pretty-quick --staged",
"postinstall": "husky install"
"postinstall": "husky install && yarn bootstrap"
},
"husky": {
"hooks": {
"pre-commit": "npm run format:staged"
"pre-commit": "npx run format:staged"
}
}
}