diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-13 14:03:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 18:03:07 +0000 |
commit | d192d84a0e0b9954882211b827f17512ad37be7d (patch) | |
tree | 2aa50a9a3785a34097fab0acd1ab245313994ff7 /cli/main.rs | |
parent | 6e8618ae0f55bcaa4cfaaa579b4e21f9f74b117d (diff) |
refactor(cli): add `Emitter` struct (#18690)
Removes the functions in the `emit` module and replaces them with an
`Emitter` struct that can have "ctor dependencies" injected rather than
using functions to pass along the dependencies.
This is part of a long term refactor to move more functionality out of
proc state.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 849e0979c..60eb9288f 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -71,7 +71,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { DenoSubcommand::Cache(cache_flags) => { let ps = ProcState::from_flags(flags).await?; ps.load_and_type_check_files(&cache_flags.files).await?; - ps.cache_module_emits()?; + ps.emitter.cache_module_emits(&ps.graph())?; Ok(0) } DenoSubcommand::Check(check_flags) => { |