#!/usr/bin/env node const fs = require("fs"); const path = require("path"); const ROOT_DIR = "."; const SKIP_DIRS = ["node_modules", ".git", "dist", "build", ".cache"]; const BUTTON_TAG_RE = /]*?)?>/gi; function fixButtons(html) { return html.replace(BUTTON_TAG_RE, (match, attrs) => { if (attrs && /\btype\s*=/i.test(attrs)) return match; return attrs ? `