workspaces/arborist/test/fixtures/fs-parent-dots/x/y/z/p.js
raw| 1 | process.env.ARBORIST_DEBUG = '1' |
| 2 | |
| 3 | const Arborist = require('../../../..') |
| 4 | const arb = new Arborist({ follow: true }) |
| 5 | const main = async () => { |
| 6 | const tree = await arb.buildIdealTree() |
| 7 | for (const node of tree.inventory.values()) { |
| 8 | const { |
| 9 | fsParent, |
| 10 | path, |
| 11 | location, |
| 12 | package: pkg, |
| 13 | } = node |
| 14 | console.error({ |
| 15 | path, |
| 16 | location, |
| 17 | fsParent: fsParent && fsParent.path, |
| 18 | pkg, |
| 19 | }) |
| 20 | } |
| 21 | } |
| 22 | main() |