#!/bin/bash RUN="docker-compose run --rm" # UP="docker-compose up" name=$(basename $0) command=$1 args=${@:2} case $command in sh) $RUN --service-ports mermaid sh $args ;; i | install) $RUN mermaid sh -c "npx pnpm install $args" ;; add) $RUN mermaid sh -c "npx pnpm -w add $args" ;; test | vitest | e2e ) $RUN mermaid sh -c "npx pnpm $command $args" ;; lint) $RUN mermaid sh -c "npx pnpm -w run lint:fix" ;; dev) $RUN --service-ports mermaid sh -c "npx pnpm run dev" # $UP --rm mermaid sh -c "npx pnpm run dev" ;; help) usage=$( cat <