Skip to content

Commit f3fe09f

Browse files
committed
[arborist] [Fix] build-ideal-tree: ensure indentation is preserved
1 parent 9c5d5d7 commit f3fe09f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

workspaces/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ module.exports = cls => class IdealTreeBuilder extends cls {
333333
root.meta.lockfileVersion = defaultLockfileVersion
334334
}
335335
}
336+
// ensure indentation is inferred properly
337+
root.meta.indent = root.package[Symbol.for('indent')]
336338
return root
337339
})
338340

0 commit comments

Comments
 (0)