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