Archived
Make git installs install build dependencies
This commit is contained in:
@@ -133,7 +133,7 @@ npm install -g github:jmfederico/pi-web#main
|
|||||||
pi-web install
|
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
|
## Development quick start
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
"start": "tsx src/server/index.ts",
|
"start": "tsx src/server/index.ts",
|
||||||
"start:sessiond": "tsx src/server/sessiond.ts",
|
"start:sessiond": "tsx src/server/sessiond.ts",
|
||||||
"clean": "rm -rf dist",
|
"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",
|
"pack:dry": "npm pack --dry-run",
|
||||||
"prepublishOnly": "npm run verify",
|
"prepublishOnly": "npm run verify",
|
||||||
"publish:npm": "npm publish --access public"
|
"publish:npm": "npm publish --access public"
|
||||||
|
|||||||
Reference in New Issue
Block a user