2021-06-30 22:23:21 +08:00
|
|
|
{
|
|
|
|
"name": "root",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2021-09-15 14:08:37 +08:00
|
|
|
"lerna": "lerna",
|
2021-09-22 18:59:50 +08:00
|
|
|
"prepublish": "lerna run prepublish",
|
|
|
|
"test:ci": "jest -c config/jest.ci.config.js",
|
2021-09-15 14:08:37 +08:00
|
|
|
"lint": "eslint packages --ext .ts --ext .tsx",
|
2021-10-26 18:08:27 +08:00
|
|
|
"fix-lint": "eslint --fix packages --ext .ts --ext .tsx",
|
2022-06-06 15:43:20 +08:00
|
|
|
"release": "lerna publish -m 'chore(*): publish'",
|
|
|
|
"release:canary": "branch=$(git rev-parse --abbrev-ref HEAD); lerna publish --canary --preid $branch -m 'chore(*): publish'",
|
2022-05-20 11:36:44 +08:00
|
|
|
"commit": "git cz",
|
|
|
|
"prepare": "husky install"
|
2021-06-30 22:23:21 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-05-20 11:47:08 +08:00
|
|
|
"@commitlint/cli": "^16.0.0",
|
|
|
|
"@commitlint/config-conventional": "^16.0.0",
|
2021-09-15 14:08:37 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
|
|
"@typescript-eslint/parser": "^4.31.1",
|
2022-05-20 11:36:44 +08:00
|
|
|
"commitizen": "^4.0.4",
|
|
|
|
"cz-customizable": "^6.2.0",
|
2021-09-15 14:08:37 +08:00
|
|
|
"eslint": "^7.32.0",
|
2021-10-27 14:11:02 +08:00
|
|
|
"eslint-config-prettier": "^8.3.0",
|
2022-01-20 14:06:26 +08:00
|
|
|
"eslint-config-standard": "^16.0.3",
|
|
|
|
"eslint-plugin-import": "^2.25.4",
|
|
|
|
"eslint-plugin-node": "^11.1.0",
|
|
|
|
"eslint-plugin-promise": "^6.0.0",
|
2021-09-15 14:08:37 +08:00
|
|
|
"eslint-plugin-react": "^7.25.1",
|
2021-07-02 16:06:02 +08:00
|
|
|
"husky": "^6.0.0",
|
|
|
|
"lerna": "^4.0.0",
|
2021-08-20 17:32:06 +08:00
|
|
|
"lint-staged": "^11.0.0",
|
2022-05-23 21:32:02 +08:00
|
|
|
"prettier": "^2.5.0"
|
2021-07-02 16:06:02 +08:00
|
|
|
},
|
|
|
|
"workspaces": [
|
|
|
|
"packages/*"
|
|
|
|
],
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
2022-05-20 11:36:44 +08:00
|
|
|
"pre-commit": "lint-staged",
|
|
|
|
"commit-msg": "commitlint --edit $1"
|
2021-07-02 16:06:02 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
2021-09-15 14:08:37 +08:00
|
|
|
"*.{ts,tsx,html}": [
|
2021-07-02 16:06:02 +08:00
|
|
|
"prettier --write",
|
2022-06-06 15:23:20 +08:00
|
|
|
"eslint --fix"
|
2021-07-02 16:06:02 +08:00
|
|
|
]
|
2021-06-30 22:23:21 +08:00
|
|
|
}
|
|
|
|
}
|