Builds errors bugfix

This commit is contained in:
2026-10-16 16:54:55 +01:00
parent af12852fb9
commit 8a981c854a
8 changed files with 50 additions and 6 deletions
+2
View File
@@ -5,6 +5,7 @@ import { rmSync, writeFileSync } from "fs";
import bunextInit from "../../functions/bunext-init";
import { v4 } from "uuid";
import { updatePageLastmodRecord } from "../../utils/page-lastmod-record";
import disposeBundlerContexts from "../../functions/bundler/dispose-bundler-contexts";
const { HYDRATION_DST_DIR, BUNX_CWD_PAGES_REWRITE_DIR, BUNDLER_CTX_MAP_JSON, SSR_BUNDLER_CTX_MAP_JSON, BUNX_CWD_MODULE_CACHE_DIR, BUILD_INFO_JSON, } = grabDirNames();
export default function () {
return new Command("build")
@@ -21,6 +22,7 @@ export default function () {
catch (error) { }
global.BUNEXT_SKIPPED_BROWSER_MODULES = new Set();
await bunextInit({ build_only: true });
await disposeBundlerContexts({ stop_service: true });
// A failed bundle must fail the command: CI and scripts rely on
// the exit code instead of grepping logs.
if (global.BUNEXT_BUILD_FAILED) {