Skip to content

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.

@daxpedda daxpedda added the waiting for author Waiting for author to respond label Dec 6, 2024
@daxpedda daxpedda merged commit 5b38cb1 into wasm-bindgen:main Dec 7, 2024
54 of 55 checks passed
@daxpedda
Copy link
Member

daxpedda commented Dec 7, 2024

This is great btw, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author Waiting for author to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants