message: Fix preview subcommand when package has dashes on its name
diff: @@ -6,6 +6,7 @@ use std::path::Path;
  use crate::settings::Settings;
  +use failure::ResultExt;
  use reqwest::multipart::Form;
  pub fn publish(zone_id: &str, settings: Settings) -> Result<(), failure::Error> {
  @@ -28,7 +29,7 @@ pub fn publish(zone_id: &str, settings: Settings) -> Result<(), failure::Error>
  }
  fn build_form() -> Result<Form, failure::Error> {
  - let name = krate::Krate::new("./")?.name;
  + let name = krate::Krate::new("./")?.name.replace("-", "_");
  build_generated_dir()?;
  modify_js(&name)?;
  concat_js(&name)?;
  @@ -56,7 +57,9 @@ fn build_generated_dir() -> Result<(), failure::Error> {
  fn modify_js(name: &str) -> Result<(), failure::Error> {
  let bindgen_js_path = format!("./pkg/{}.js", name);
  - let bindgen_js: String = fs::read_to_string(&bindgen_js_path)?.parse()?;
  + let bindgen_js: String = fs::read_to_string(&bindgen_js_path)
  + .context(format!("Error reading {}", bindgen_js_path))?
  + .parse()?;
  // i am sorry for this hack, plz forgive
  let modded = bindgen_js.replace("module_or_path instanceof WebAssembly.Module", "true");
  