Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
- Updated electrobun.config.ts to include environment-based settings for stability and external dependencies. - Refactored package.json scripts for improved build processes and streamlined commands. - Added new build scripts for Linux and renderer, while removing the obsolete build-server script. - Enhanced pre-build validation to ensure required files are present and added logging for better visibility. - Updated clean-build script to remove additional artifact directories for thorough cleanup.
12 lines
394 B
JavaScript
12 lines
394 B
JavaScript
import { rmSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
|
for (const dir of ["build", "dist", "app_dist", "artifacts"]) {
|
|
rmSync(path.join(rootDir, dir), { recursive: true, force: true });
|
|
}
|
|
|
|
console.log("clean: removed build, dist, app_dist, and artifacts");
|