#!/usr/bin/env bash
set -euo pipefail

repo_dir="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd -P)"
eval "$("$repo_dir/nodew" "$repo_dir/scripts/offline-resource-lib.mjs" env)"

if [[ $# -eq 0 ]]; then
  exec "${SHELL:-/bin/bash}" --noprofile --norc
fi
exec "$@"
