mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 19:24:41 +00:00
10 lines
366 B
Bash
Executable File
10 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
wanted=$(sha256sum package-lock.json | cut -d ' ' -f 1)
|
|
installed=$(cat node_modules/.ukmesh-dev-lock 2>/dev/null || true)
|
|
if [ "$wanted" != "$installed" ]; then
|
|
npm ci --cache /npm-cache
|
|
printf '%s\n' "$wanted" > node_modules/.ukmesh-dev-lock
|
|
fi
|
|
exec node node_modules/vite/bin/vite.js --host 0.0.0.0 --port 5175 --strictPort --mode companion
|