1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix feature install, updated bundledHelmVersion from package.json

This commit is contained in:
Roman 2020-06-24 17:52:54 +03:00
parent adb8555239
commit 47ccd7c4cb
2 changed files with 9 additions and 2 deletions

View File

@ -40,7 +40,7 @@
}, },
"config": { "config": {
"bundledKubectlVersion": "1.17.4", "bundledKubectlVersion": "1.17.4",
"bundledHelmVersion": "3.1.2" "bundledHelmVersion": "3.2.4"
}, },
"engines": { "engines": {
"node": ">=12.0 <13.0" "node": ">=12.0 <13.0"
@ -76,14 +76,17 @@
"extraResources": [ "extraResources": [
{ {
"from": "src/features/", "from": "src/features/",
"to": "features/",
"filter": "**/*" "filter": "**/*"
}, },
{ {
"from": "locales/", "from": "locales/",
"to": "locales/",
"filter": "**/*.js" "filter": "**/*.js"
}, },
{ {
"from": "static/", "from": "static/",
"to": "static/",
"filter": "**/*" "filter": "**/*"
}, },
"LICENSE" "LICENSE"

View File

@ -99,6 +99,10 @@ export abstract class Feature {
} }
protected manifestPath() { protected manifestPath() {
return path.join(__dirname, '..', 'features', this.name); const devPath = path.join(__dirname, "..", 'src/features', this.name);
if(fs.existsSync(devPath)) {
return devPath;
}
return path.join(__dirname, "..", 'features', this.name);
} }
} }