MCPcopy Index your code
hub / github.com/nodejs/corepack / getBinariesFor

Method getBinariesFor

sources/Engine.ts:145–159  ·  view source on GitHub ↗
(name: SupportedPackageManagers)

Source from the content-addressed store, hash-verified

143 }
144
145 getBinariesFor(name: SupportedPackageManagers) {
146 const binNames = new Set<string>();
147
148 for (const rangeDefinition of Object.values(this.config.definitions[name]!.ranges)) {
149 const bins = Array.isArray(rangeDefinition.bin)
150 ? rangeDefinition.bin
151 : Object.keys(rangeDefinition.bin);
152
153 for (const name of bins) {
154 binNames.add(name);
155 }
156 }
157
158 return binNames;
159 }
160
161 async getDefaultDescriptors() {
162 const locators: Array<Descriptor> = [];

Callers 5

mainFunction · 0.80
executeMethod · 0.80
executeMethod · 0.80
Enable.test.tsFile · 0.80
Disable.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected