mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
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:
1 parent
0bd179068d
commit
bc2f082fca
2 files changed
+3
-3
No files matched your search
@@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user