Skip to content

Commit

Permalink
install in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Jan 12, 2025
1 parent 695c1bf commit a33c506
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion d2js/js/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ fi
. "$(dirname "$0")/../../ci/sub/lib.sh"
PATH="$(cd -- "$(dirname "$0")" && pwd)/../../ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"

if ! command -v bun >/dev/null && [ -n "${CI-}" ]; then
curl -fsSL https://bun.sh/install | sh -s --
fi

if ! bun --version >/dev/null 2>&1; then
echoerr "You need bun to build d2js."
echoerr "You need bun to build d2.js: curl -fsSL https://bun.sh/install | bash"
exit 1
fi

_make "$@"

0 comments on commit a33c506

Please sign in to comment.