Skip to content

fix: node --check only checked the first file, check every file - #1164

Merged
rowkav09 merged 1 commit into
mainfrom
fix/per-file-syntax-check
Oct 10, 2026
Merged

rowkav09 merged 1 commit into
mainfrom
fix/per-file-syntax-check

Conversation

@rowkav09

Copy link
Copy Markdown
Member

node --check takes one file, so the shell-expanded globs in npm run check skipped everything after the first file in each glob (a two-file repro with a syntax error in the second exits 0). npm run check now runs node --check on every .js, .mjs and .cjs file (450 files currently, all pass). Adds tests for the script.

node --check takes one file, so the shell-expanded globs in npm run check silently skipped every file after the first. The check script now walks the tree and runs node --check on each .js, .mjs and .cjs file, failing if any fails.
@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@rowkav09
rowkav09 merged commit e3d070a into main Oct 10, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant