Skip to content

Commit

Permalink
build(projects): replace husky by simple-git-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 10, 2022
1 parent 3bce01a commit d3bf4db
Show file tree
Hide file tree
Showing 9 changed files with 457 additions and 1,169 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

99 changes: 0 additions & 99 deletions commitlint.config.js

This file was deleted.

12 changes: 6 additions & 6 deletions examples/ts-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
},
"devDependencies": {
"@soybeanjs/cli": "workspace:*",
"@types/prompts": "^2.4.1",
"@types/prompts": "^2.4.2",
"bumpp": "^8.2.1",
"eslint": "^8.26.0",
"eslint-config-soybeanjs": "0.1.2",
"eslint": "^8.29.0",
"eslint-config-soybeanjs": "0.2.1",
"esno": "^0.16.3",
"npm-check-updates": "^16.3.16",
"tsup": "^6.4.0",
"typescript": "^4.8.4",
"npm-check-updates": "^16.5.5",
"tsup": "^6.5.0",
"typescript": "^4.9.4",
"zx": "^7.1.1"
}
}
38 changes: 22 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@
"files": [
"dist"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "tsup",
"lint": "eslint . --fix",
"cz": "czg",
"commit": "soybean git-commit",
"esno": "esno",
"cleanup": "esno ./scripts/cleanup.ts",
"update-pkg": "ncu --deep -u",
"update-version": "bumpp package.json",
"publish-pkg": "pnpm -r publish --access public",
"release": "pnpm update-version && pnpm publish-pkg",
"sync-pkg": "esno ./scripts/sync.ts",
"prepare": "husky install"
"sync-pkg": "esno ./scripts/sync.ts"
},
"dependencies": {
"commander": "^9.4.1",
Expand All @@ -46,19 +42,29 @@
},
"devDependencies": {
"@soybeanjs/cli": "workspace:*",
"@types/prompts": "^2.4.1",
"@types/prompts": "^2.4.2",
"bumpp": "^8.2.1",
"commitlint": "^17.2.0",
"cz-git": "^1.3.12",
"czg": "^1.3.12",
"eslint": "^8.26.0",
"eslint-config-soybeanjs": "0.1.2",
"eslint": "^8.29.0",
"eslint-config-soybeanjs": "0.2.1",
"esno": "^0.16.3",
"husky": "^8.0.1",
"npm-check-updates": "^16.3.16",
"lint-staged": "^13.1.0",
"npm-check-updates": "^16.5.5",
"rimraf": "^3.0.2",
"tsup": "^6.4.0",
"typescript": "^4.8.4",
"simple-git-hooks": "^2.8.1",
"tsup": "^6.5.0",
"typescript": "^4.9.4",
"zx": "^7.1.1"
},
"simple-git-hooks": {
"commit-msg": "pnpm soybean git-commit-verify",
"pre-commit": "pnpm exec lint-staged --concurrent false"
},
"lint-staged": {
"*": [
"eslint . --fix"
]
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
Loading

0 comments on commit d3bf4db

Please sign in to comment.