This commit is contained in:
Andreas Hnida 2024-02-14 16:01:14 +00:00
commit e3c43e06ff
120 changed files with 16894 additions and 0 deletions

14
scripts/clearModules.js Normal file
View file

@ -0,0 +1,14 @@
const fs = require("fs");
const clearModules = (filePath) => {
if (fs.existsSync(filePath)) {
let fileContent = fs.readFileSync(filePath, "utf8");
fileContent = fileContent.replace(/require\s*\([\s\S]*?\)/, "");
fs.writeFileSync(filePath, fileContent, "utf8");
} else {
console.log("File does not exist.");
}
};
clearModules("go.mod");
clearModules("exampleSite/go.mod");