mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
12 lines
319 B
Bash
Executable File
12 lines
319 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Usage: `./scripts/tsc/copy-all-tests.sh ~/projects/TypeScript`
|
|
#
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
set -eu
|
|
|
|
npx tsc ./scripts/tsc/copy-test.ts
|
|
|
|
find "$1/tests/cases/conformance" -type f | xargs -P 8 -L 1 -I {} node "$SCRIPT_DIR/copy-test.js" {} \; |