Skip to content

Commit

Permalink
Add pre-push hook to check for duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Assios committed Apr 1, 2024
1 parent d8f5d5f commit 4b862ef
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run check-duplicates
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"private": true,
"sideEffects": false,
"scripts": {
"prepare": "husky install",
"check-duplicates": "npx ts-node ./tests/checkDuplicates.ts",
"build": "run-s build:*",
"build:css": "npm run generate:css -- --minify",
"build:remix": "remix build",
Expand Down Expand Up @@ -41,7 +43,7 @@
"@types/react-dom": "^17.0.17",
"@types/styled-components": "^5.1.25",
"eslint": "^8.20.0",
"husky": "^8.0.1",
"husky": "^8.0.3",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"tailwindcss": "^3.1.0",
Expand Down

1 comment on commit 4b862ef

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for chessguessr ready!

✅ Preview
https://chessguessr-bvvlf8amc-assios.vercel.app

Built with commit 4b862ef.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.