#!/bin/bash

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

bun install
npm rebuild better-sqlite3

git submodule add https://git.tben.me/Moduletrace/tailwind-ui-library.git twui || echo "TWUI Already Added"
git submodule update --init twui || echo "TWUI Already Initialized"
git submodule update --remote

bunx nsqlite schema -t

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