Make git installs install build dependencies

This commit is contained in:
Federico Jaramillo Martinez
2026-05-08 18:59:58 +02:00
parent f89c055e59
commit dfb88fec7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ npm install -g github:jmfederico/pi-web#main
pi-web install
```
This uses npm's git install flow and runs the package `prepare` script to build `dist/` on the target machine.
This uses npm's git install flow and runs the package `prepare` script to install build-time dev dependencies if needed, then build `dist/` on the target machine.
## Development quick start
+1 -1
View File
@@ -28,7 +28,7 @@
"start": "tsx src/server/index.ts",
"start:sessiond": "tsx src/server/sessiond.ts",
"clean": "rm -rf dist",
"prepare": "npm run build",
"prepare": "sh -c 'command -v tsc >/dev/null 2>&1 && command -v vite >/dev/null 2>&1 || npm install --include=dev --ignore-scripts; npm run build'",
"pack:dry": "npm pack --dry-run",
"prepublishOnly": "npm run verify",
"publish:npm": "npm publish --access public"