diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-05 11:04:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 17:04:16 +0200 |
commit | 7ed90a20d04982ae15a52ae2378cbffd4b6839df (patch) | |
tree | 3297d6f7227fbf1cf80e17a2a376ef4dfa52e6ad /cli/tools/fmt.rs | |
parent | 0544d60012006b1c7799d8b6eafacec9567901ad (diff) |
fix: better handling of npm resolution occurring on workers (#24094)
Closes https://github.com/denoland/deno/issues/24063
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index ef3d48cb5..b37a8e06b 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -211,7 +211,7 @@ fn format_markdown( codeblock_config.line_width = line_width; dprint_plugin_typescript::format_text( &fake_filename, - text, + text.to_string(), &codeblock_config, ) } @@ -255,7 +255,11 @@ pub fn format_file( ), _ => { let config = get_resolved_typescript_config(fmt_options); - dprint_plugin_typescript::format_text(file_path, file_text, &config) + dprint_plugin_typescript::format_text( + file_path, + file_text.to_string(), + &config, + ) } } } |