diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-16 20:48:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 20:48:50 +0100 |
commit | 636af2850c90f6bf7005a270d95b68bc9718de75 (patch) | |
tree | 9ebffa025237f1ef42226e3168780beac2768b95 /cli/main.rs | |
parent | 8ab20a4582016542ac3d8140593f817ab920005f (diff) |
refactor(cli): rename fs module to fs_util (#8380)
This commit renames "fs" module in "cli/" to "fs_util". This is purely
cosmetic change; there were a few places which aliased "crate::fs"
to "deno_fs" which was very confusing with "fs" module in ops.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/main.rs b/cli/main.rs index 87e817cf0..11674a8b6 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -22,7 +22,7 @@ mod flags; mod flags_allow_net; mod fmt; mod fmt_errors; -mod fs; +mod fs_util; mod http_cache; mod http_util; mod import_map; @@ -57,7 +57,6 @@ use crate::coverage::CoverageCollector; use crate::coverage::PrettyCoverageReporter; use crate::file_fetcher::File; use crate::file_fetcher::FileFetcher; -use crate::fs as deno_fs; use crate::media_type::MediaType; use crate::permissions::Permissions; use crate::program_state::ProgramState; @@ -381,7 +380,7 @@ async fn bundle_command( if let Some(out_file_) = out_file.as_ref() { let output_bytes = output.as_bytes(); let output_len = output_bytes.len(); - deno_fs::write_file(out_file_, output_bytes, 0o644)?; + fs_util::write_file(out_file_, output_bytes, 0o644)?; info!( "{} {:?} ({})", colors::green("Emit"), @@ -583,8 +582,9 @@ async fn run_with_watch(flags: Flags, script: String) -> Result<(), AnyError> { .collect(); if let Some(import_map) = program_state.flags.import_map_path.clone() { - paths_to_watch - .push(fs::resolve_from_cwd(std::path::Path::new(&import_map)).unwrap()); + paths_to_watch.push( + fs_util::resolve_from_cwd(std::path::Path::new(&import_map)).unwrap(), + ); } // FIXME(bartlomieju): new file watcher is created on after each restart |