Update scripts/bump-version.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Azgaar 2026-03-07 17:16:27 +01:00 committed by GitHub
parent af84dfe9ed
commit ff42f711f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,27 @@ function updateIndexHtmlHashes(changedFiles, newVersion, dry) {
console.log(` src/index.html hashes updated for:\n - ${updated.join("\n - ")}`);
} else {
console.log(
` src/index.html (changed files not referenced: ${changedFiles.map(f => f.replace("public/", "")).join(", ")})`
const publicRoot = path.join(repoRoot, "public");
function walk(dir) {
for (const entry of fs.readdirSync(dir, {withFileTypes: true})) {
const full = path.join(dir, entry.name);
if (entry.isDirectory()) {
// Skip third-party vendor bundles under public/libs/**
const relFromPublic = path
.relative(publicRoot, full)
.replace(/\\/g, "/");
if (relFromPublic === "libs" || relFromPublic.startsWith("libs/")) {
continue;
}
walk(full);
} else if (entry.isFile() && entry.name.endsWith(".js")) {
results.push(path.relative(repoRoot, full).replace(/\\/g, "/"));
}
}
}
walk(publicRoot);
);
}
}