Skip to content

Commit 88de54d

Browse files
authored
add EOL in package.json (#1162)
1 parent 3e09cc7 commit 88de54d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/manifest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ impl CrateData {
649649
Target::Deno => return Ok(()),
650650
};
651651

652-
let npm_json = serde_json::to_string_pretty(&npm_data)?;
652+
let npm_json = format!("{}\n", serde_json::to_string_pretty(&npm_data)?);
653653

654654
fs::write(&pkg_file_path, npm_json)
655655
.with_context(|| anyhow!("failed to write: {}", pkg_file_path.display()))?;

0 commit comments

Comments
 (0)