1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🐛 fix old node version

This commit is contained in:
Flam3rboy 2021-10-09 01:53:41 +02:00
parent 44ddcc592d
commit 1ffeedd887

View File

@ -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)`)