diff --git a/package.json b/package.json index 0889d107..5dc6ca3a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/build-dist.mjs b/scripts/build-dist.mjs index 947f83cb..6e5d84ac 100644 --- a/scripts/build-dist.mjs +++ b/scripts/build-dist.mjs @@ -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.'); } } }