Skip to content

Commit 1baf102

Browse files
chore(bun): pretty print bun lockfile (#10418)
### Description TSIA ### Testing Instructions `turbo_dev prune` on a bun repo should produce a `bun.lock` that isn't a single line
1 parent 5747458 commit 1baf102

File tree

1 file changed

+1
-1
lines changed
  • crates/turborepo-lockfiles/src/bun

1 file changed

+1
-1
lines changed

crates/turborepo-lockfiles/src/bun/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl Lockfile for BunLockfile {
198198
}
199199

200200
fn encode(&self) -> Result<Vec<u8>, crate::Error> {
201-
Ok(serde_json::to_vec(&self.data)?)
201+
Ok(serde_json::to_vec_pretty(&self.data)?)
202202
}
203203

204204
fn global_change(&self, other: &dyn Lockfile) -> bool {

0 commit comments

Comments
 (0)