Commit 510f0ec
authored
fix(arborist): ensure indentation is preserved (#4218)
It turns out that `new Arborist().buildIdealTree().meta.toString()` does
not take into account the indentation in the package.json (tabs, in my
case) the way `npm install --package-lock-only` does.
This fixes that. Also included a bonus commit that removes redundant
Promise stuff inside an `async function`.1 parent a92665c commit 510f0ec
File tree
4 files changed
+60
-12
lines changed- workspaces/arborist
- lib
- arborist
- tap-snapshots/test/arborist
- test/arborist
4 files changed
+60
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
334 | 333 | | |
335 | 334 | | |
336 | 335 | | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
427 | 439 | | |
428 | 440 | | |
429 | 441 | | |
| |||
451 | 463 | | |
452 | 464 | | |
453 | 465 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 466 | + | |
463 | 467 | | |
464 | 468 | | |
465 | 469 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97673 | 97673 | | |
97674 | 97674 | | |
97675 | 97675 | | |
| 97676 | + | |
| 97677 | + | |
| 97678 | + | |
| 97679 | + | |
| 97680 | + | |
| 97681 | + | |
| 97682 | + | |
| 97683 | + | |
| 97684 | + | |
| 97685 | + | |
| 97686 | + | |
| 97687 | + | |
| 97688 | + | |
| 97689 | + | |
| 97690 | + | |
| 97691 | + | |
| 97692 | + | |
| 97693 | + | |
| 97694 | + | |
| 97695 | + | |
| 97696 | + | |
| 97697 | + | |
| 97698 | + | |
| 97699 | + | |
| 97700 | + | |
| 97701 | + | |
| 97702 | + | |
| 97703 | + | |
| 97704 | + | |
| 97705 | + | |
| 97706 | + | |
97676 | 97707 | | |
97677 | 97708 | | |
97678 | 97709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3682 | 3682 | | |
3683 | 3683 | | |
3684 | 3684 | | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
0 commit comments