Skip to content

fix: cablear los git hooks con prepare en vez de postinstall - #11

Merged
bgoswaldo merged 1 commit into
betafrom
fix/hooks-prepare
Nov 2, 2026
Merged

bgoswaldo merged 1 commit into
betafrom
fix/hooks-prepare

Conversation

@bgoswaldo

Copy link
Copy Markdown
Contributor

Cambia postinstall por prepare: npm ejecuta el postinstall de las dependencias y fijaba core.hooksPath=.githooks en el repo de quien instalara el paquete. Verificado con npm pack + instalación en un repo git temporal.

npm ejecuta el postinstall de las dependencias, así que instalar
@acertijosapps/android-viewer dentro de otro repo git le fijaba
core.hooksPath=.githooks y desactivaba sus hooks (husky, etc.).
prepare solo corre en el npm install del propio repo, no al instalar
el paquete desde el registro.

Actualiza .githooks/README.md, CONTRIBUTING.md y el CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bgoswaldo
bgoswaldo merged commit 4b2beba into beta Nov 2, 2026
2 checks passed
@bgoswaldo
bgoswaldo deleted the fix/hooks-prepare branch November 2, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant