diff options
author | KrisChambers <Kris.chambers@outlook.com> | 2020-09-07 09:59:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 15:59:47 +0200 |
commit | 1cd226750065e6101c0a38694ff9f96a40b437d0 (patch) | |
tree | 846632d932c7a7584f3e00d4fed8cd358be75aa8 /cli/global_state.rs | |
parent | 7a8b27aa25b419a9daef976793c59bd22d35551a (diff) |
feat(info): Dependency count and sizes (#6786)
This commit changes "deno info" subcommand logic.
- Modules are no longer loaded into V8 isolate - analysis
is done using ModuleGraph.
- Removed deno_core::Deps structure.
- Modules are no longer type-checked and transpiled -
"compiled" file is shown only if it is already available.
- Added number of unique dependencies for root module.
- Changed tree output:
- file size is shown next to the dependency
- repeated dependencies are marked with "*"
- used less spaces in prefix to save terminal width
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r-- | cli/global_state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs index 6add7b7b4..2dfec4a72 100644 --- a/cli/global_state.rs +++ b/cli/global_state.rs @@ -160,11 +160,11 @@ impl GlobalState { if should_compile { if self.flags.no_check { - self.ts_compiler.transpile(module_graph).await?; + self.ts_compiler.transpile(&module_graph).await?; } else { self .ts_compiler - .compile(self, &out, target_lib, permissions, module_graph, allow_js) + .compile(self, &out, target_lib, permissions, &module_graph, allow_js) .await?; } } |