typecheck (628B)
1 #!/usr/bin/env bash 2 set -euo pipefail 3 4 # Ensure Node.js v24 is available 5 script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 6 "$script_dir/node" --version >/dev/null 7 8 # Generate tsconfig.json 9 cat >"$script_dir/../tsconfig.json" <<'EOF' 10 { 11 "compilerOptions": { 12 "target": "esnext", 13 "module": "nodenext", 14 "moduleResolution": "nodenext", 15 "lib": ["esnext"], 16 "strict": true, 17 "skipLibCheck": true, 18 "noEmit": true, 19 "esModuleInterop": true, 20 "forceConsistentCasingInFileNames": true, 21 "types": ["node"] 22 }, 23 "include": ["**/*.ts"] 24 } 25 EOF 26 27 npx --yes --package @typescript/native-preview tsgo