Skip to content

Commit

Permalink
Fix prepare script and remove unnecessary scripts. Update git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Feb 14, 2024
1 parent f03fc6f commit 7d15762
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm eslint
pnpm lint-staged
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pnpm coverage
pnpm limit
pnpm size-limit
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
},
"scripts": {
"build": "tsup",
"limit": "size-limit",
"staged": "lint-staged",
"eslint": "eslint src/**/*.ts",
"test": "NODE_OPTIONS=\"--no-warnings --import tsx\" ava",
"coverage": "c8 pnpm test",
"coverage:report": "c8 pnpm test && c8 report --reporter=html",
"ci": "c8 pnpm test && c8 report --reporter=json",
"preinstall": "npx only-allow pnpm",
"prepare": "husky"
"prepare": "npx is-in-ci || husky install"
},
"devDependencies": {
"@octetstream/eslint-config": "8.0.2",
Expand Down

0 comments on commit 7d15762

Please sign in to comment.