cmd/generate-cask-api: include cask renames

This commit is contained in:
Eric Knibbe 2024-05-03 19:16:32 -04:00
parent dfbf26910d
commit 3d985d082e
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -64,6 +64,8 @@ module Homebrew
homebrew_cask_tap_json = JSON.generate(tap.to_internal_api_hash) homebrew_cask_tap_json = JSON.generate(tap.to_internal_api_hash)
File.write("api/internal/v3/homebrew-cask.json", homebrew_cask_tap_json) unless args.dry_run? File.write("api/internal/v3/homebrew-cask.json", homebrew_cask_tap_json) unless args.dry_run?
canonical_json = JSON.pretty_generate(tap.cask_renames)
File.write("_data/cask_canonical.json", "#{canonical_json}\n") unless args.dry_run?
end end
end end