MCPcopy Create free account
hub / github.com/play-co/devkit / installModuleFromName

Function installModuleFromName

src/install/index.js:159–167  ·  view source on GitHub ↗

* Lookup URL for module by name then defer to installModuleFromURL * * @return {Promise } resolves with installed version

(app, name, version, opts)

Source from the content-addressed store, hash-verified

157 * @return {Promise<string>} resolves with installed version
158 */
159function installModuleFromName (app, name, version, opts) {
160 if (name == 'devkit-core') {
161 return installModuleFromURL(app, name, 'git@github:gameclosure/devkit-core', version, opts);
162 }
163 // TODO
164 return Promise.reject(
165 new Error('Installing module by name is not [yet] supported')
166 );
167}
168
169/**
170 * Install a module in an app given a URL

Callers 1

index.jsFile · 0.85

Calls 1

installModuleFromURLFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…