Skip to content

Commit

Permalink
fix(cli/tools/installer): allow remote import maps
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed May 5, 2021
1 parent 89b61b5 commit dd78e82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cli/tools/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,8 @@ pub fn install(
}

if let Some(import_map_path) = flags.import_map_path {
let mut copy_path = file_path.clone();
copy_path.set_extension("import_map.json");
executable_args.push("--import-map".to_string());
executable_args.push(copy_path.to_str().unwrap().to_string());
extra_files.push((copy_path, fs::read_to_string(import_map_path)?));
executable_args.push(import_map_path);
}

if let Some(config_path) = flags.config_path {
Expand Down

0 comments on commit dd78e82

Please sign in to comment.