13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
import fs from "node:fs";
|
|
import path, { join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { execa } from "execa";
|
|
|
|
(async () => {
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
execa("cargo", ["clean"], {
|
|
cwd: join(__dirname, "/../packages/backend-rs"),
|
|
stdio: "inherit",
|
|
});
|
|
})();
|