chore: rebuild better-sqlite3 and ensure curl install
This commit is contained in:
parent
0bba4fd1f1
commit
60da918434
1 changed files with 7 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ if command -v apt-get >/dev/null 2>&1; then
|
||||||
apt-get update -y || true
|
apt-get update -y || true
|
||||||
apt-get install -y --no-install-recommends curl ca-certificates gnupg || true
|
apt-get install -y --no-install-recommends curl ca-certificates gnupg || true
|
||||||
fi
|
fi
|
||||||
install_node() {
|
install_node() {
|
||||||
local current_node_major=""
|
local current_node_major=""
|
||||||
if command -v node >/dev/null 2>&1; then
|
if command -v node >/dev/null 2>&1; then
|
||||||
current_node_major=$(node -v | sed -E 's/^v([0-9]+).*/\1/')
|
current_node_major=$(node -v | sed -E 's/^v([0-9]+).*/\1/')
|
||||||
|
|
@ -50,6 +50,12 @@ else
|
||||||
echo "[start-web] apt-get unavailable; skipping system deps install" >&2
|
echo "[start-web] apt-get unavailable; skipping system deps install" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Rebuild native better-sqlite3 bindings for the current Node version
|
||||||
|
if command -v npm >/dev/null 2>&1; then
|
||||||
|
echo "[start-web] rebuilding better-sqlite3 for current Node runtime"
|
||||||
|
(npm rebuild better-sqlite3 >/dev/null 2>&1 && echo "[start-web] better-sqlite3 rebuilt") || echo "[start-web] rebuild skipped (using existing bindings)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Bun keeps its store in node_modules/.bun by default; ensure it exists and is writable
|
# Bun keeps its store in node_modules/.bun by default; ensure it exists and is writable
|
||||||
mkdir -p node_modules/.bun >/dev/null 2>&1 || true
|
mkdir -p node_modules/.bun >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue