Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmeniboiler committed Dec 9, 2024
2 parents 156e429 + e442f29 commit 3cf09c5
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions scripts/before-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import fs from "fs";
import path from "path";
import jsonFormat from "json-format";

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");

Expand All @@ -24,25 +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");

console.log("Completed before-build.js");

0 comments on commit 3cf09c5

Please sign in to comment.