diff --git a/hack/utils/build_id.ml b/hack/utils/build_id.ml index 404814d8182..93f69d38fbb 100644 --- a/hack/utils/build_id.ml +++ b/hack/utils/build_id.ml @@ -40,3 +40,11 @@ let is_build_optimized = * v5 (hvvm 3.23, 17 Nov 2017) - 'hh_client lsp' stable *) let build_api_version = 5 + +let build_version_json = + let open Hh_json in + JSON_Object [ + "commit", JSON_String build_revision; + "commit_time", int_ build_commit_time; + "api_version", int_ build_api_version; + ] diff --git a/hack/utils/build_id.mli b/hack/utils/build_id.mli index e5da96c77bc..e5dfba2590a 100644 --- a/hack/utils/build_id.mli +++ b/hack/utils/build_id.mli @@ -27,3 +27,4 @@ val build_minor_version : int val build_api_version : int val build_mode : string val is_build_optimized : bool +val build_version_json : Hh_json.json