mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge remote-tracking branch 'origin/master' into mobx6-migration
# Conflicts: # extensions/kube-object-event-status/package-lock.json # extensions/metrics-cluster-feature/package-lock.json # extensions/node-menu/package-lock.json # extensions/node-menu/package.json # extensions/pod-menu/package-lock.json # extensions/pod-menu/package.json
This commit is contained in:
commit
9a702c46a6
20 files changed
+1266
-684
No files matched your search
@@ -351,10 +351,13 @@ export class ExtensionDiscovery extends Singleton {
|
||||
const manifest = await fse.readJson(manifestPath);
|
||||
const installedManifestPath = this.getInstalledManifestPath(manifest.name);
|
||||
const isEnabled = isBundled || ExtensionsStore.getInstance().isEnabled(installedManifestPath);
|
||||
const extensionDir = path.dirname(manifestPath);
|
||||
const npmPackage = path.join(extensionDir, `${manifest.name}-${manifest.version}.tgz`);
|
||||
const absolutePath = (await fse.pathExists(npmPackage)) ? npmPackage : extensionDir;
|
||||
|
||||
return {
|
||||
id: installedManifestPath,
|
||||
absolutePath: path.dirname(manifestPath),
|
||||
absolutePath,
|
||||
manifestPath: installedManifestPath,
|
||||
manifest,
|
||||
isBundled,
|
||||
|
||||
Reference in new issue
Block a user