summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:53:41 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:53:41 +0200
commit509b2c3b71c7c95903f408c8a80b10281106cf9d (patch)
tree8fc83b6a673c6b40ca7c66eddf21bde89ab7b5e8
parentMerge branch 'master' of http://github.com/fosscord/fosscord-server (diff)
downloadserver-509b2c3b71c7c95903f408c8a80b10281106cf9d.tar.xz
:bug: fix old node version
-rw-r--r--bundle/scripts/build.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js
index 9939558d..c6a98b80 100644
--- a/bundle/scripts/build.js
+++ b/bundle/scripts/build.js
@@ -39,8 +39,8 @@ function transpileFiles() {
 			let content = fs.readFileSync(file, { encoding: "utf8" });
 			console.log(file);
 			content = content
-				.replaceAll(
-					`@fosscord/${part}`,
+				.replace(
+					new RegExp(`@fosscord/${part}`),
 					path.relative(file, path.join(__dirname, "..", "..", part, "dist")).slice(3)
 				)
 				.replace(importPart, `const $2 = require($5)`)