Skip to content

Fix the terser script and drop the unrunnable eslint-check script#173

Merged
soulgalore merged 1 commit into
mainfrom
script-fixes
May 17, 2026
Merged

Fix the terser script and drop the unrunnable eslint-check script#173
soulgalore merged 1 commit into
mainfrom
script-fixes

Conversation

@soulgalore
Copy link
Copy Markdown
Member

The terser script was running with --compresss (three s's). Terser silently
treated the typo as an unknown flag and skipped compression entirely, so the
shipped coach.min.js was mangled-only. Correcting it to --compress shrinks
the bundle from 54,739 to 52,739 bytes — a ~2 KB win on every release with
zero behaviour change.

The eslint-check script was a relic: it pipes the output of eslint --print-config .eslintrc.js (the file is now
eslint.config.cjs) into
eslint-config-prettier-check, a binary that modern eslint-config-prettier
no longer ships. The script could not run; dropping it removes confusion.

Co-authored-by: Claude noreply@anthropic.com

  The terser script was running with --compresss (three s's). Terser silently
  treated the typo as an unknown flag and skipped compression entirely, so the
  shipped coach.min.js was mangled-only. Correcting it to --compress shrinks
  the bundle from 54,739 to 52,739 bytes — a ~2 KB win on every release with
  zero behaviour change.

  The eslint-check script was a relic: it pipes the output of eslint --print-config .eslintrc.js (the file is now
  eslint.config.cjs) into
  eslint-config-prettier-check, a binary that modern eslint-config-prettier
  no longer ships. The script could not run; dropping it removes confusion.

  Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit dd178ab into main May 17, 2026
3 checks passed
@soulgalore soulgalore deleted the script-fixes branch May 17, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant