Files
pikasTech-HWLAB/web/hwlab-cloud-web/scripts/build.mjs
T
Lyon a44438779f Formalize Cloud Web DEV CD contract
Merge PR #152 after Code Queue rebase and validation. This lands the DEV Cloud Web publish/apply contract, dist freshness checks, artifact identity evidence, and read-only rollout observation. No PROD changes and no live deploy claim.
2026-05-23 00:20:19 +08:00

10 lines
455 B
JavaScript

import path from "node:path";
import { fileURLToPath } from "node:url";
import { assertCloudWebDistFresh, buildCloudWebDist } from "./dist-contract.mjs";
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const distDir = buildCloudWebDist(rootDir);
const distFreshness = await assertCloudWebDistFresh(rootDir);
console.log(`hwlab-cloud-web build ok: ${distDir} (${distFreshness.files.length} dist files verified fresh)`);