swc/crates/swc_ecma_parser/scripts/flatten-tsc-tests.sh
Donny/강동윤 8afb5af517
chore(repo): Make git faster (#3075)
swc_ecma_parser:
 - Flatten parser test suite ported from `tsc`.

swc:
 - Flatten the reference directory for the `tsc` test suite.
2021-12-20 14:05:57 +09:00

7 lines
221 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
# Remove empty directories
find . -type d -empty -delete
find ./tests/typescript/tsc -mindepth 3 -type f \( -iname '*.ts' -o -iname '*.tsx' \) | xargs -L 1 ./scripts/_/flatten-one-tsc-test.sh