-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat: support passing directories to deno check
#20813
Comments
Seconded. This was on my wishlist as well, such that it's consistent with Currently I'd have to remember to resort to bash expansion i.e. In case it's helpful to deno maintainers, one more use case I've been using |
This is actually not the case. Part of why I love |
I do support this proposal, and wanted to link #20278 as well, since it seems to be in a similar vein. |
It turned out you're absolutely right. That was added since Deno |
Is this being worked on or should i(try to) implement this? |
Hey, if this is an issue that isn't currently being worked on, I would love to try and work on it myself! Please let me know if this sounds fine. |
@lino-levan any thoughts on how to proceed given the contribution offers? |
There's no need to ask before you work on something. Feel free to work on this if you want to! |
That's great! I will take a stab at it 😄 ! |
Hey there, I was able to look through the source code and I believe I was able to find where the arguments are being parsed. However, it seems like the functions/ methods being used to parse the arguments belong to different repositories, namely 'clap' and 'deno_core'. Would it be the best approach to raise these issues in those repositories? Or is there an alternative approach I may be able to look into? I would appreciate any feedback on how to proceed from here! |
I find myself often ending up in a situation where I want to check if all types in a project are valid. Instinctively, I usually type
deno check
and then I'm getting an error that I didn't pass arguments. In my mind I'm thinking "ah right, so I want to type check everything in the current directory". This leads me to typedeno check .
, but this throws another error because directories are not supported. But shoot, I don't have any file which imports every other file in the project. So I'm not sure how to type check the whole project with one command.I found a workaround though: If you have an extensive test suite, there is a high chance that all files in the project are imported at some point. If that's the case then running
deno test
is a better mechanism to type check a project thandeno check
, which seems odd.Feature request:
deno check
.
as the default argument.The text was updated successfully, but these errors were encountered: