diff options
Diffstat (limited to 'start')
| -rwxr-xr-x | start | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#!/bin/zsh +runner="$(echo "$([ -x "$(which npm)" ] && echo "npm")\n$([ -x "$(which yarn)" ] && echo "yarn")\n$([ -x "$(which pnpm)" ] && echo "pnpm")\nnode" | shuf | head -1)" + +[ -n "$@" ] && cmd="dev" || cmd="$@" +if [ "$runner" = "node" ]; then + node node_modules/vite/bin/vite.js $cmd +else + "$runner" run $cmd +fi |
