Skip to content

Commit

Permalink
Merge pull request #12 from huuyafwww/feature/add_husky
Browse files Browse the repository at this point in the history
Migrate sort in package.json from CI firing after push to lint-staged
  • Loading branch information
huuyafwww authored Nov 26, 2024
2 parents f14e66d + 6fc92d1 commit 2effda8
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/sort-package-json.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@
"build:watch": "turbo run build:watch",
"clean": "turbo run clean",
"lint:code": "turbo lint:code --parallel",
"prepare": "husky",
"sort:package": "sort-package-json && turbo run sort:package --parallel",
"version": "changeset",
"version:apply": "changeset version",
"version:publish": "changeset publish"
},
"lint-staged": {
"{package.json,**/package.json}": [
"bash -c 'pnpm run sort:package'"
]
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@tsconfig/strictest": "^2.0.5",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"sort-package-json": "^2.10.1",
"turbo": "^v2.3.2",
"typescript": "^5.6.3"
Expand Down
Loading

0 comments on commit 2effda8

Please sign in to comment.