chore(build): remove thread-loader from webpack build (#39763)

This commit is contained in:
Michael S. Molina
2026-04-29 15:04:34 -03:00
committed by GitHub
parent 8d17c34068
commit 6ce3885f2e
4 changed files with 12 additions and 30 deletions

View File

@@ -45,7 +45,17 @@ if [ ${#js_ts_files[@]} -gt 0 ]; then
# Skip custom OXC build in pre-commit for speed
export SKIP_CUSTOM_OXC=true
# Use quiet mode in pre-commit to reduce noise (only show errors)
npx oxlint --config oxlint.json --fix --quiet "${js_ts_files[@]}"
# Capture output so we can treat "No files found" (all files ignored by
# ignorePatterns) as success rather than a false-positive failure.
output=$(npx oxlint --config oxlint.json --fix --quiet "${js_ts_files[@]}" 2>&1) || {
if echo "$output" | grep -q "No files found"; then
echo "No files to lint after applying ignore patterns"
exit 0
fi
echo "$output" >&2
exit 1
}
[ -n "$output" ] && echo "$output"
else
echo "No JavaScript/TypeScript files to lint"
fi