mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +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
+2
-2
@@ -4,12 +4,12 @@
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"engines": {
|
||||
"node": ">=22"
|
||||
"node": ">=20"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "npm run build && npx serve dist",
|
||||
"serve": "npx serve",
|
||||
"build": "node scripts/build-dist.mjs",
|
||||
"build": "node scripts/build-dist.mjs && npm run verify:dist:deploy-artifact",
|
||||
"build:css": "postcss css/tailwind.source.css -o css/tailwind.generated.css",
|
||||
"build:beacon:bundle": "node scripts/build-beacon.mjs",
|
||||
"build:beacon": "npm run build:beacon:bundle && npm run lint:inline-styles",
|
||||
|
||||
Reference in new issue
Block a user