Skip to content

Commit

Permalink
Made changes according to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashorward committed May 5, 2020
1 parent a22ce34 commit 06ba980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions tests/all/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down Expand Up @@ -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",
]
Expand Down

0 comments on commit 06ba980

Please # to comment.