Skip to content

Commit

Permalink
Add pre-push check
Browse files Browse the repository at this point in the history
  • Loading branch information
grubersjoe committed Oct 22, 2024
1 parent 86ee0aa commit 36461e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm check
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"types": "build/index.d.ts",
"scripts": {
"build": "rollup -c",
"check": "pnpx prettier -c . && pnpm exec tsc && pnpm lint",
"deploy": "gh-pages -d example/build",
"dev": "rollup -c -w",
"format": "prettier --write .",
"lint": "eslint .",
"postbuild": "dts-bundle-generator src/index.tsx -o build/index.d.ts --no-check --no-banner",
"predeploy": "cd example && ./sync-version.js && pnpm install && npm run build",
"prepare": "npm run build",
"prepublishOnly": "npx tsc && npm run lint && npm run build"
"predeploy": "cd example && ./sync-version.js && pnpm install && pnpm build",
"prepare": "husky",
"prepublishOnly": "pnpm check && pnpm build"
},
"dependencies": {
"react-activity-calendar": "^2.7.1",
Expand All @@ -47,6 +48,7 @@
"eslint-plugin-react-hooks": "^5.0.0",
"gh-pages": "^6.2.0",
"globals": "^15.11.0",
"husky": "^9.1.6",
"postcss": "^8.4.47",
"prettier": "^3.3.2",
"react": "^18.3.1",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 36461e7

Please sign in to comment.