Add installFromNpm to Extensions

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti authored and Sebastian Malton committed 2020-12-09 11:00:07 -05:00
1 parent 5da49d28b1
commit e40c8a6299
2 files changed
+22 -7

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ export class ExtensionLoader {
* Get url to the tarball of the extension package. Assumes package is found from npm regisry.
* @param packageName e.g. "@mirantis/lens-extension-cc"
*/
getNpmPackageTarballUrl(packageName: string) {
getNpmPackageTarballUrl(packageName: string): Promise<string> {
return new Promise((resolve, reject) => {
const command = [extensionInstaller.npmPath, "view", packageName, "dist.tarball", "--silent"];