📦 build(scripts): make start script to only do it's supposed work, add clean script
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user