From e442f29bbfce8bb66d827bfc6a1052408f7bff5a Mon Sep 17 00:00:00 2001 From: wendy <79672859+pelmeniboiler@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:23:40 -0500 Subject: [PATCH] Update before-build.js --- scripts/before-build.js | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/scripts/before-build.js b/scripts/before-build.js index 5fd3599..05dcf13 100644 --- a/scripts/before-build.js +++ b/scripts/before-build.js @@ -3,7 +3,7 @@ import fs from "fs"; import path from "path"; import jsonFormat from "json-format"; -console.log("Running before-build.js"); +console.log("Running before-build.js with arguments:", process.argv); const VERSION = fs.readFileSync(path.resolve(__dirname, "../VERSION")).toString().trim(); const PATH_PACKAGEJSON = path.resolve(__dirname, "../package.json"); @@ -26,23 +26,3 @@ globaljs = globaljs.replace(winversion, winversion.replace(version, VERSION)); fs.writeFileSync(PATH_GLOBALJS, globaljs); console.log("Completed before-build.js"); - -// after-build.js -import fs from "fs"; -import path from "path"; -import { sync as glob } from "glob"; - -console.log("Running after-build.js"); - -// let files = glob("*.vsix", { cwd: path.resolve(__dirname, "../"), absolute: true }); -// files.forEach((filepath) => { -// let targetpath = path.resolve(__dirname, "../docs/releases", path.basename(filepath)); -// fs.renameSync(filepath, targetpath); -// }) - -fs.copyFileSync( - path.resolve(__dirname, "../CHANGELOG.md"), - path.resolve(__dirname, "../docs/CHANGELOG.md") -) - -console.log("Completed after-build.js");