add -json flag to allow json types export

This commit is contained in:
Cameron Taylor
2025-01-02 21:23:51 -08:00
committed by Josh Tynjala
parent ff3ccf159d
commit 03ea041e0e
9 changed files with 50 additions and 0 deletions

View File

@@ -353,6 +353,11 @@ class HTML5Platform extends PlatformTarget
project.haxeflags.push("-xml " + targetDirectory + "/types.xml");
}
if (project.targetFlags.exists("json"))
{
project.haxeflags.push("--json " + targetDirectory + "/types.json");
}
if (Log.verbose)
{
project.haxedefs.set("verbose", 1);