Skip to content

Commit

Permalink
[arborist] [Fix] build-ideal-tree: ensure indentation is preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 7, 2022
1 parent 9c5d5d7 commit f3fe09f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workspaces/arborist/lib/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ module.exports = cls => class IdealTreeBuilder extends cls {
root.meta.lockfileVersion = defaultLockfileVersion
}
}
// ensure indentation is inferred properly
root.meta.indent = root.package[Symbol.for('indent')]
return root
})

Expand Down

0 comments on commit f3fe09f

Please sign in to comment.