swc/crates/swc_plugin/scripts/test.sh

12 lines
247 B
Bash
Raw Normal View History

#!/usr/bin/env bash
## This script assumes `plugins` is in `$CDPATH`
set -eu
(cd plugins && cargo build && ls -al target/debug)
export PLUGINS_DIR=$(cd plugins > /dev/null && pwd)
echo "Using plugins at $PLUGINS_DIR"
(cd runner && cargo test)