fix feature install, updated bundledHelmVersion from package.json

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

No files matched your search

+4 -1
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"
+5 -1
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);
} }
} }