#!/bin/bash

rm -rf /app/node_modules
rm -rf /app/.next

bun install
npm rebuild better-sqlite3

bun twui:add || echo "TWUI Already Added"
bun twui:init || echo "TWUI Already Initialized"
bun twui:update

bunx nsqlite schema -t

chmod +x ./src/scripts/shell/start-dev.sh
chmod +x ./src/scripts/shell/start-prod.sh