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:
parent
44ddcc592d
commit
1ffeedd887
@ -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)`)
|
||||||
|
Loading…
Reference in New Issue
Block a user