Merge branch 'fix-dev-build' into 'develop'

fix: backend-rs not working in dev-build

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

See merge request firefish/firefish!10780
This commit is contained in:
Linca 2024-05-06 13:55:20 +00:00
commit 070da75672
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import path, { join } from "node:path";
import { fileURLToPath } from "node:url";
import { execa } from "execa";
import fs from "node:fs";
(async () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@ -32,4 +33,6 @@ import { execa } from "execa";
stdio: "inherit",
}
);
fs.copyFileSync("packages/backend-rs/index.js", "packages/backend-rs/built/index.js");
})();