chore: add husky pre-commit

fix: test
This commit is contained in:
Louis 2024-08-26 14:20:08 +07:00
parent 6d33ff60f9
commit bb889ef885
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx pretty-quick --staged
npm run lint --fix

View File

@ -41,14 +41,16 @@
"build": "yarn build:web && yarn build:electron",
"build:publish": "yarn copy:assets && yarn build:web && yarn workspace jan build:publish",
"dev:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi dev",
"build:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi build"
"build:joi": "yarn workspace @janhq/joi install && yarn workspace @janhq/joi build",
"prepare": "husky"
},
"devDependencies": {
"concurrently": "^8.2.1",
"cpx": "^1.5.0",
"husky": "^9.1.5",
"rimraf": "^3.0.2",
"wait-on": "^7.0.1",
"run-script-os": "^1.1.6"
"run-script-os": "^1.1.6",
"wait-on": "^7.0.1"
},
"version": "0.0.0"
}