Made changes according to comment

master
lucashorward 5 years ago
parent a22ce34363
commit 06ba9802e9
  1. 4
      src/manifest/mod.rs
  2. 2
      tests/all/manifest.rs

@ -646,7 +646,7 @@ impl CrateData {
}
fn to_commonjs(&self, scope: &Option<String>, disable_dts: bool, out_dir: &Path) -> NpmPackage {
let data = self.npm_data(scope, true, disable_dts, out_dir);
let data = self.npm_data(scope, false, disable_dts, out_dir);
let pkg = &self.data.packages[self.current_idx];
self.check_optional_fields();
@ -745,7 +745,7 @@ impl CrateData {
disable_dts: bool,
out_dir: &Path,
) -> NpmPackage {
let data = self.npm_data(scope, true, disable_dts, out_dir);
let data = self.npm_data(scope, false, disable_dts, out_dir);
let pkg = &self.data.packages[self.current_idx];
self.check_optional_fields();

@ -191,7 +191,6 @@ fn it_creates_a_pkg_json_with_correct_files_on_node() {
let actual_files: HashSet<String> = pkg.files.into_iter().collect();
let expected_files: HashSet<String> = [
"js_hello_world_bg.wasm",
"js_hello_world_bg.js",
"js_hello_world.d.ts",
"js_hello_world.js",
]
@ -226,7 +225,6 @@ fn it_creates_a_pkg_json_with_correct_files_on_nomodules() {
let actual_files: HashSet<String> = pkg.files.into_iter().collect();
let expected_files: HashSet<String> = [
"js_hello_world.d.ts",
"js_hello_world_bg.js",
"js_hello_world_bg.wasm",
"js_hello_world.js",
]

Loading…
Cancel
Save