mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
12 lines
330 B
Bash
Executable File
12 lines
330 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 | sort -R | xargs -P 10 -L 1 -I {} node "$SCRIPT_DIR/copy-test.js" {} \; |