chore(dicts): minify all JSON files for consistency

This commit is contained in:
CalamitousFelicitousness
2026-03-25 18:10:29 +00:00
parent 838b972d11
commit a0a6a250e0
4 changed files with 5 additions and 386 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ def update_manifest(dicts_dir: str) -> bool:
continue
manifest["dicts"] = entries
with open(manifest_path, "w", encoding="utf-8") as f:
json.dump(manifest, f, indent=2, ensure_ascii=False)
json.dump(manifest, f, ensure_ascii=False, separators=(",", ":"))
f.write("\n")
print(f" Manifest updated: {manifest_path} ({len(entries)} dicts)", file=sys.stderr)
return True
@@ -104,7 +104,7 @@ def main():
os.makedirs(os.path.dirname(args.output) or ".", exist_ok=True)
with open(args.output, "w", encoding="utf-8") as f:
json.dump(manifest, f, indent=2, ensure_ascii=False)
json.dump(manifest, f, ensure_ascii=False, separators=(",", ":"))
f.write("\n")
print(f"\nManifest written: {args.output} ({len(entries)} dicts)", file=sys.stderr)