symlink된 `node_modules` 구조
info
This article only describes how pnpm's node_modules are structured when
there are no packages with peer dependencies. For the more complex scenario of
dependencies with peers, see how peers are resolved.
pnpm's node_modules layout uses symbolic links to create a nested structure of
dependencies.
Every file of every package inside node_modules is a hard link to the
content-addressable store. Let's say you install foo@1.0.0 that depends on
bar@1.0.0. pnpm will hard link both packages to node_modules like this:
node_modules
└── .pnpm
    ├── bar@1.0.0
    │   └── node_modules
    │       └── bar -> <store>/bar
    │           ├── index.js
    │           └── package.json
    └── foo@1.0.0
        └── node_modules
            └── foo -> <store>/foo
                ├── index.js
                └── package.json