Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TypeScript to verify CLI reference output #4311

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

RunDevelopment
Copy link
Contributor

@RunDevelopment RunDevelopment commented Nov 30, 2024

This PR adds a new CI test that uses the TypeScript compiler to verify that all JS and TS files in cli/tests/references are valid JS/TS. This ensures that invalid JS/TS will be caught even if human review misses some error.

Since I use the TS compiler to verify JS files, I also enabled type checking for them. So we will hopefully catch invalid glue code early now.


I'm still working out the kinks.

@RunDevelopment RunDevelopment marked this pull request as ready for review November 30, 2024 16:15
@RunDevelopment
Copy link
Contributor Author

Alright, I changed it to only check JS syntax for now. Fixing all the type errors in JS will require some more work, but that can be a follow-up PR.

For now, this PR just checks the types of .d.ts files and the syntax of .js files.

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