mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
12 lines
319 B
Bash
12 lines
319 B
Bash
|
#!/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" {} \;
|