From 47ccd7c4cbf5cdcda2ac0bbb546a5b954bbb4acf Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 24 Jun 2020 17:52:54 +0300 Subject: [PATCH] fix feature install, updated `bundledHelmVersion` from package.json --- package.json | 5 ++++- src/main/feature.ts | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 19731b2d9a..cd51dcc8af 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "config": { "bundledKubectlVersion": "1.17.4", - "bundledHelmVersion": "3.1.2" + "bundledHelmVersion": "3.2.4" }, "engines": { "node": ">=12.0 <13.0" @@ -76,14 +76,17 @@ "extraResources": [ { "from": "src/features/", + "to": "features/", "filter": "**/*" }, { "from": "locales/", + "to": "locales/", "filter": "**/*.js" }, { "from": "static/", + "to": "static/", "filter": "**/*" }, "LICENSE" diff --git a/src/main/feature.ts b/src/main/feature.ts index 34a5383543..eece69d2b1 100644 --- a/src/main/feature.ts +++ b/src/main/feature.ts @@ -99,6 +99,10 @@ export abstract class Feature { } 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); } }