| 1 | #!/bin/bash |
| 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | # |
| 4 | # This source code is licensed under the MIT license found in the |
| 5 | # LICENSE file in the root directory of this source tree. |
| 6 | |
| 7 | # Compare TS and Rust React Compiler output on external production files. |
| 8 | # |
| 9 | # Usage: bash compiler/scripts/test-internal-files.sh <config-path> <source-root> [flags] |
| 10 | # Flags: --limit N, --pattern PAT, --project NAME, --dry-run, --no-color |
| 11 | |
| 12 | set -eo pipefail |
| 13 | |
| 14 | REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" |
| 15 | |
| 16 | exec npx tsx "$REPO_ROOT/compiler/scripts/test-internal-files.ts" "$@" |