From 038ff396ae638a7e64381b713a2936f9b9e99ebd Mon Sep 17 00:00:00 2001 From: domi-btnr Date: Sun, 3 Nov 2024 15:00:08 +0100 Subject: [PATCH] Fix build script for PlatformIndicators --- PlatformIndicators/package.json | 2 +- scripts/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlatformIndicators/package.json b/PlatformIndicators/package.json index f717154..589b99d 100644 --- a/PlatformIndicators/package.json +++ b/PlatformIndicators/package.json @@ -17,4 +17,4 @@ } ], "changelogDate": "2024-11-03" -} \ No newline at end of file +} diff --git a/scripts/build.js b/scripts/build.js index 135a331..11b90a2 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -224,8 +224,8 @@ const buildPlugin = (pluginFolder, makeFolder) => { fs.mkdirSync(folder); } + const folderName = manifest.name === "APlatformIndicators" ? "PlatformIndicators" : manifest.name; if (makeFolder) { - const folderName = manifest.name === "APlatformIndicators" ? "PlatformIndicators" : manifest.name; const folder = path.resolve(process.cwd(), "builds", folderName); if (!fs.existsSync(folder)) fs.mkdirSync(folder); if (fs.existsSync(path.resolve(folderName, "README.md")))