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

deno outdated prints nothing if no config file is found or there's nothing to update #27287

Closed
bartlomieju opened this issue Dec 9, 2024 · 0 comments · Fixed by #27306
Closed
Labels
outdated Related to `deno outdated` tool

Comments

@bartlomieju
Copy link
Member

In a directory that has no deno.json (or package.json):

$ deno outdated

$ touch deno.json
$ deno outdated

It would be a good idea to print some information that there are no dependencies to update.

@bartlomieju bartlomieju added the outdated Related to `deno outdated` tool label Dec 9, 2024
bartlomieju added a commit that referenced this issue Dec 11, 2024
This commit changes "deno outdated" subcommand to
error out if run in a directory that has no config file 
(including parent directories). This matches
"pnpm" behavior.

Also added tests for filtering that yields no results,
to ensure that it exists cleanly, that also matches "pnpm"
behavior.

Closes #27287

---------

Signed-off-by: Bartek Iwańczuk <[email protected]>
Co-authored-by: David Sherret <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outdated Related to `deno outdated` tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant