Skip to content

Commit 979454c

Browse files
committed
minor changes
1 parent 9ae64d1 commit 979454c

File tree

3 files changed

+1228
-1216
lines changed

3 files changed

+1228
-1216
lines changed

build/updateVersion.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ console.log("Updating to version " + package.version);
1313
files.forEach((file) => {
1414
const filePath = `${directoryPath}/${file}`;
1515
let content = fs.readFileSync(filePath, "utf8");
16-
content = content.replace(oldText, package.version);
16+
while(content.includes(oldText)) {
17+
content = content.replace(oldText, package.version);
18+
}
1719
// content = content.replace(new RegExp(oldText, "g"), newText);
1820
fs.writeFileSync(filePath, content, "utf8");
1921
console.log(`Replaced text in ${file}`);

0 commit comments

Comments
 (0)