(flags, config, reporter, lockfile)
| 6222 | |
| 6223 | class Install { |
| 6224 | constructor(flags, config, reporter, lockfile) { |
| 6225 | this.rootManifestRegistries = []; |
| 6226 | this.rootPatternsToOrigin = (0, (_map || _load_map()).default)(); |
| 6227 | this.lockfile = lockfile; |
| 6228 | this.reporter = reporter; |
| 6229 | this.config = config; |
| 6230 | this.flags = normalizeFlags(config, flags); |
| 6231 | this.resolutions = (0, (_map || _load_map()).default)(); // Legacy resolutions field used for flat install mode |
| 6232 | this.resolutionMap = new (_resolutionMap || _load_resolutionMap()).default(config); // Selective resolutions for nested dependencies |
| 6233 | this.resolver = new (_packageResolver || _load_packageResolver()).default(config, lockfile, this.resolutionMap); |
| 6234 | this.integrityChecker = new (_integrityChecker || _load_integrityChecker()).default(config); |
| 6235 | this.linker = new (_packageLinker || _load_packageLinker()).default(config, this.resolver); |
| 6236 | this.scripts = new (_packageInstallScripts || _load_packageInstallScripts()).default(config, this.resolver, this.flags.force); |
| 6237 | } |
| 6238 | |
| 6239 | /** |
| 6240 | * Create a list of dependency requests from the current directories manifests. |
nothing calls this directly
no test coverage detected