Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .githooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ persona o por un agente. Alinean el manual de versionado del equipo.
El proyecto lo automatiza con un script `prepare` en `package.json`:

```json
"scripts": { "prepare": "git config core.hooksPath .githooks || true" }
"scripts": { "prepare": "git config core.hooksPath .githooks || exit 0" }
```

Así, en cada `yarn install` queda cableado. Manual, si hiciera falta:
Así, en cada `npm install` del propio repo queda cableado. Se usa `prepare` y no `postinstall`
a propósito: npm ejecuta el `postinstall` de las dependencias, así que instalar el paquete en otro
repo le cambiaría su `core.hooksPath`; `prepare` no corre al instalar desde el registro.

Manual, si hiciera falta:

```bash
git config core.hooksPath .githooks
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Formato basado en [Keep a Changelog](https://keepachangelog.com/es-ES/); version

### Eliminado

## [1.0.2] - 2026-11-02

### Corregido
- El cableado de los git hooks (`git config core.hooksPath .githooks`) pasa de `postinstall` a `prepare`: npm ejecuta el `postinstall` de las dependencias, así que `npm install @acertijosapps/android-viewer` dentro de otro repo git le cambiaba su `core.hooksPath` y desactivaba sus hooks (husky, etc.). `prepare` solo corre en el `npm install` del propio repo.

## [1.0.1] - 2026-11-01

### Añadido
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Use the Node.js version in [`.nvmrc`](./.nvmrc). Install dependencies from the r
npm install
```

`npm install` also wires the repository git hooks (`core.hooksPath` → `.githooks/`).
`npm install` also wires the repository git hooks (`core.hooksPath` → `.githooks/`) through the `prepare` script, which does not run when the package is installed as a dependency.

You need the Android SDK (`adb` and `emulator`). The tools are looked up in `ANDROID_HOME`, `ANDROID_SDK_ROOT` or the default SDK location; override them with `ADB` and `EMULATOR`.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@acertijosapps/android-viewer",
"mcpName": "io.github.acertijosapps/android-viewer",
"version": "1.0.1",
"version": "1.0.2",
"description": "Visor web del emulador de Android (screenrecord H.264 + WebCodecs, input por adb, posturas de plegable) y MCP para que un agente lo maneje.",
"type": "module",
"main": "server.js",
Expand All @@ -22,7 +22,7 @@
"start": "node bin/android-viewer.js",
"mcp": "node bin/android-viewer.js mcp",
"check": "node --check bin/android-viewer.js && node --check server.js && node --check lib/device.js && node --check mcp/server.js && node --check public/viewer.js",
"postinstall": "git config core.hooksPath .githooks || exit 0"
"prepare": "git config core.hooksPath .githooks || exit 0"
},
"keywords": [
"android",
Expand Down
4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"source": "github"
},
"websiteUrl": "https://github.com/acertijosapps/android-viewer#readme",
"version": "1.0.1",
"version": "1.0.2",
"packages": [
{
"registryType": "npm",
"identifier": "@acertijosapps/android-viewer",
"version": "1.0.1",
"version": "1.0.2",
"runtimeHint": "npx",
"transport": {
"type": "stdio"
Expand Down
Loading