You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably not a real issue, perhaps something is missing in my hook…
Here's my pre-push hook (to build a cjs version before pushing), with husky 8.0.3
#!/bin/sh."$(dirname "$0")/_/husky.sh"if pnpm test&& pnpm run build;then# commit should be done only if there is changed files in cjs, if not git command exit with code -1 (and this hook fails)if [ -n"$(git diff --name-only|grep -E '^cjs/')" ];then
git commit --no-verify -m "rebuild cjs" cjs
fifi
The commit with changed cjs files is ok, but the push is done without it (my local branch include it but not the remote branch)
Is there a way to include it ?
(if not, I will move the rebuild in a after-commit hook, but I prefer before pushing to avoid a lot of rebuild commits, even if it's not so important)
The text was updated successfully, but these errors were encountered:
Probably not a real issue, perhaps something is missing in my hook…
Here's my pre-push hook (to build a cjs version before pushing), with husky 8.0.3
The commit with changed cjs files is ok, but the push is done without it (my local branch include it but not the remote branch)
Is there a way to include it ?
(if not, I will move the rebuild in a after-commit hook, but I prefer before pushing to avoid a lot of rebuild commits, even if it's not so important)
The text was updated successfully, but these errors were encountered: