swc/crates/swc_atoms/scripts/add-from-cargo-check.sh

6 lines
184 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu
export CARGO_TERM_COLOR=never
cargo check 2>&1 | grep 'no rules expected the token' | sed -e 's/error: no rules expected the token `"//' | sed -e 's/"`//'