build: Darwin fix

This commit is contained in:
2026-03-14 02:59:46 +01:00
parent 54a54c026b
commit 63d3e7d55f
5 changed files with 169 additions and 182 deletions

View File

@@ -2,6 +2,24 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Check if the marmot-ts submodule is initialised
if [[ ! -f "$ROOT_DIR/marmot-ts/package.json" ]]; then
echo "marmot-ts submodule is not initialised." >&2
if [[ -t 0 ]]; then
read -rp "Initialise it now? [y/N] " answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
git -C "$ROOT_DIR" submodule update --init marmot-ts
else
echo "Skipping marmot e2e tests."
exit 0
fi
else
echo "Run 'git submodule update --init marmot-ts' to initialise it." >&2
exit 1
fi
fi
cd "$ROOT_DIR/marmot-ts"
if [[ ! -d node_modules ]]; then