Currently pnpm downloads a package from the npm registry, unpacks it and uses the package.json from the unpacked directory to identify what sub-dependencies should be installed.
However, the package.json is available sooner! The registry sends all the package.json's, when the package meta information is requested!
So pnpm can start to download all the subdependencies a lot sooner!
Currently pnpm downloads a package from the npm registry, unpacks it and uses the
package.jsonfrom the unpacked directory to identify what sub-dependencies should be installed.However, the package.json is available sooner! The registry sends all the package.json's, when the package meta information is requested!
So pnpm can start to download all the subdependencies a lot sooner!