How to typecheck whole project #9735
Replies: 8 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
I want to check types on every file, like how fmt/lint check every file. |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
There are no test files, I just want to check types on src files. |
Beta Was this translation helpful? Give feedback.
-
I would expect |
Beta Was this translation helpful? Give feedback.
-
A lot of the type checking in Deno is situational, for example, scripts imported as web workers are type checked as web workers. Not having a root module that is run means that valuable information is missing, meaning that the type checking can be inaccurate or incomplete. What would be a use case for type checking just every file when that file is not being imported anywhere? |
Beta Was this translation helpful? Give feedback.
-
Thanks, I was just setting up a CI for my project and didn't see an option for checking whole project. Checking main entry point and utility scripts should be adequate, thanks 🙂. |
Beta Was this translation helpful? Give feedback.
-
Here is a solution: #12113 (comment) |
Beta Was this translation helpful? Give feedback.
-
I think it's something like:
deno test {**,.}/*.ts --no-run
Beta Was this translation helpful? Give feedback.
All reactions