fix: backend-rs not working in dev-build

This commit is contained in:
Lhcfl 2024-04-28 21:27:42 +08:00
parent c47d5d70e7
commit d17ed06708
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");
})();