MCPcopy
hub / github.com/vercel/hyper / constructor

Method constructor

bin/yarn-standalone.js:6307–6320  ·  view source on GitHub ↗
(flags, config, reporter, lockfile)

Source from the content-addressed store, hash-verified

6305
6306class Install {
6307 constructor(flags, config, reporter, lockfile) {
6308 this.rootManifestRegistries = [];
6309 this.rootPatternsToOrigin = (0, (_map || _load_map()).default)();
6310 this.lockfile = lockfile;
6311 this.reporter = reporter;
6312 this.config = config;
6313 this.flags = normalizeFlags(config, flags);
6314 this.resolutions = (0, (_map || _load_map()).default)(); // Legacy resolutions field used for flat install mode
6315 this.resolutionMap = new (_resolutionMap || _load_resolutionMap()).default(config); // Selective resolutions for nested dependencies
6316 this.resolver = new (_packageResolver || _load_packageResolver()).default(config, lockfile, this.resolutionMap);
6317 this.integrityChecker = new (_integrityChecker || _load_integrityChecker()).default(config);
6318 this.linker = new (_packageLinker || _load_packageLinker()).default(config, this.resolver);
6319 this.scripts = new (_packageInstallScripts || _load_packageInstallScripts()).default(config, this.resolver, this.flags.force);
6320 }
6321
6322 /**
6323 * Create a list of dependency requests from the current directories manifests.

Callers

nothing calls this directly

Calls 7

_load_mapFunction · 0.85
normalizeFlagsFunction · 0.85
_load_resolutionMapFunction · 0.85
_load_packageResolverFunction · 0.85
_load_integrityCheckerFunction · 0.85
_load_packageLinkerFunction · 0.85

Tested by

no test coverage detected