Fix: Enable build on Node 20 and harden version injection

- Relaxed `engines.node` in `package.json` from `>=22` to `>=20` to match the hosting environment (Node 20.x), resolving strict engine failures during install.
- Modified `scripts/build-dist.mjs` to throw an error (instead of warning) if version injection fails, preventing silent failures.
- Updated `npm run build` to include `verify:dist:deploy-artifact` as a mandatory post-build step, ensuring the final artifact contains the expected version markup.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-11 12:45:56 +00:00
1 parent 0bd179068d
commit bc2f082fca
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -185,7 +185,7 @@ function injectVersionInfo() {
fs.writeFileSync(indexHtmlPath, content);
console.log(`Injected version (via fallback regex): ${hash.slice(0, 8)} • ${date}`);
} else {
console.warn('Could not find placeholder or tagline to inject version info.');
throw new Error('Could not find placeholder or tagline to inject version info.');
}
}
}