Skip to content

Commit

Permalink
chore: configure publint
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 4, 2023
1 parent 734a080 commit c381b24
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test

echo "\npublint:"
npx --no -- publint
116 changes: 115 additions & 1 deletion package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"scripts": {
"lint": "eslint .",
"test": "jest",
"prepare": "is-ci || husky install"
"prepare": "is-ci || husky install",
"prepublishOnly": "is-ci || publint"
},
"dependencies": {
"columnify": "^1.6.0",
Expand All @@ -35,6 +36,7 @@
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"jest": "^29.5.0",
"lint-staged": "^13.2.3"
"lint-staged": "^13.2.3",
"publint": "^0.1.15"
}
}

0 comments on commit c381b24

Please sign in to comment.