mirror of
https://github.com/facebook/react.git
synced 2026-02-25 23:54:58 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
10 lines
459 B
Bash
Executable File
10 lines
459 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generates a TypeScript performance trace in a tmp folder, then runs the analyze-trace npm module
|
|
# to identify any hotspots that might cause slow compilation
|
|
# See https://github.com/microsoft/typescript-analyze-trace for CLI args
|
|
|
|
set -eo pipefail
|
|
|
|
tmp_dir=$(mktemp -d -t forget-XXXXXXXXXX)
|
|
./node_modules/typescript/bin/tsc -p ./tsconfig.json --generateTrace $tmp_dir --incremental false && npx @typescript/analyze-trace $tmp_dir "$@"
|