1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +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" }); let content = fs.readFileSync(file, { encoding: "utf8" });
console.log(file); console.log(file);
content = content content = content
.replaceAll( .replace(
`@fosscord/${part}`, new RegExp(`@fosscord/${part}`),
path.relative(file, path.join(__dirname, "..", "..", part, "dist")).slice(3) path.relative(file, path.join(__dirname, "..", "..", part, "dist")).slice(3)
) )
.replace(importPart, `const $2 = require($5)`) .replace(importPart, `const $2 = require($5)`)