Open nayeemrmn opened 3 years ago
This would be a 2.0 change.
It has occurred to me that the output of deno info mod.ts
is merely pretty-print... and the API access deno info --json mod.ts
is still marked as unstable... it's a strong argument for permitting this change in a minor release with some provisions.
Other than the proposed change the --cert
, --import-map
, --reload
flags would be noop'd and hidden until 2.0 removal.
What do you think? @ry @kitsonk
We should do it as deno info --dont-recurse
. @nayeemrmn do you want to take this up?
The
deno info
subcommand should only output cache info and for a single module at a time. We should have a separatedeno graph
subcommand for outputting the dependency graph of a module.deno info
. I propose thatdeno info
doesn't implicitly invokedeno cache
(which it would no longer need to), and should show null cache file paths for uncached modules. You can instead calldeno cache <url> && deno info <url>
for the current behaviour. This design can be applied to query the state of the cache, which partially satisfies feature requests like #5600.This would be a 2.0 change.