Updated husky for prettier

This commit is contained in:
Sambo Chea 2021-09-13 20:33:01 +07:00
parent 206cfa93f2
commit b53ca5af8b
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npx lint-staged npx lint-staged

View File

@ -7,7 +7,8 @@
"start": "ts-node-dev --respawn --transpile-only src/index.ts", "start": "ts-node-dev --respawn --transpile-only src/index.ts",
"build": "rm -rf dist && tsc", "build": "rm -rf dist && tsc",
"serve": "npm run build && node dist/index.js", "serve": "npm run build && node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install"
}, },
"repository": { "repository": {
"type": "git", "type": "git",