diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-09-30 12:06:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 12:06:38 -0400 |
commit | 8d24be1a59714761665516e0d78d25059608c29b (patch) | |
tree | aed0140b63441008cb9b549d44948f7a36a4f5f1 /cli/main.rs | |
parent | 1cda3840ff673512f7c6d58fa8402c35c760bc3b (diff) |
refactor(npm): create `cli::npm::managed` module (#20740)
Creates the `cli::npm::managed` module and starts moving more
functionality into it.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 98a2e5d48..1ccd694ee 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -76,7 +76,10 @@ impl SubcommandOutput for Result<(), std::io::Error> { fn spawn_subcommand<F: Future<Output = T> + 'static, T: SubcommandOutput>( f: F, ) -> JoinHandle<Result<i32, AnyError>> { - deno_core::unsync::spawn(f.map(|r| r.output())) + // the boxed_local() is important in order to get windows to not blow the stack in debug + deno_core::unsync::spawn( + async move { f.map(|r| r.output()).await }.boxed_local(), + ) } async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { |