📦 build(scripts): make start script to only do it's supposed work, add clean script

This commit is contained in:
retrozinndev
2025-08-12 18:46:10 -03:00
parent 3cd717b5d4
commit 344085ed10
2 changed files with 10 additions and 3 deletions
+4 -3
View File
@@ -20,9 +20,10 @@ function start() {
exec "$file"
}
if [[ -f "$file" ]]; then
if [[ -f $file ]]; then
start
else
pnpm build
start
echo "[error] can't start project: no executable found on default directory"
echo "[tip] specify the executable path: start \"\$path\""
exit 1
fi