mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add installFromNpm to Extensions
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
5da49d28b1
commit
e40c8a6299
2 files changed
+22
-7
No files matched your search
@@ -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"];
|
||||
|
||||
|
||||
Reference in new issue
Block a user