diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-01-15 19:15:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 19:15:39 -0500 |
commit | 4e72ca313a8fa1d826783bdc5657937da97d590c (patch) | |
tree | 254bb4074df8a8dfe42200bc0e613b7e082651f3 /cli/tools/bundle.rs | |
parent | 3ff80eb1521c49a43e0fae53840e5a636571ebfe (diff) |
refactor: use globbing from deno_config (#21925)
Diffstat (limited to 'cli/tools/bundle.rs')
-rw-r--r-- | cli/tools/bundle.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/bundle.rs b/cli/tools/bundle.rs index d66a993d6..c70392419 100644 --- a/cli/tools/bundle.rs +++ b/cli/tools/bundle.rs @@ -99,9 +99,10 @@ async fn bundle_action( let out_file = &bundle_flags.out_file; if let Some(out_file) = out_file { + let out_file = cli_options.initial_cwd().join(out_file); let output_bytes = bundle_output.code.as_bytes(); let output_len = output_bytes.len(); - util::fs::write_file(out_file, output_bytes, 0o644)?; + util::fs::write_file(&out_file, output_bytes, 0o644)?; log::info!( "{} {:?} ({})", colors::green("Emit"), |