MCPcopy Create free account
hub / github.com/Aslemammad/venode / copyVendor

Function copyVendor

venode/src/cli.ts:223–231  ·  view source on GitHub ↗
(originalId: string, id: string, vendorPath: string)

Source from the content-addressed store, hash-verified

221}
222
223async function copyVendor(originalId: string, id: string, vendorPath: string) {
224 try {
225 await mkdirp(path.dirname(vendorPath));
226 await fs.copyFile(id, vendorPath);
227 } catch (e) {
228 log.error(`Could not create vendor file for ${originalId}`, e);
229 process.exit(1);
230 }
231}

Callers 1

resolveIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected