From aa2d6db7e0944776d49d704fe0fcf0c49b7e1b8a Mon Sep 17 00:00:00 2001 From: MAJigsaw77 Date: Sat, 20 Jun 2026 22:50:15 +0300 Subject: [PATCH] Add `isRun` and `isInstall` --- project.hxp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/project.hxp b/project.hxp index a7fdbb150..447a33b03 100644 --- a/project.hxp +++ b/project.hxp @@ -549,7 +549,7 @@ class Project extends HXProject displayTarget(); - if (this.command == "run" || this.command == "install") + if (isRun() || isInstall()) { // These commands dont really need much in order to run so to improve the speed, we return here. return; @@ -1808,6 +1808,16 @@ class Project extends HXProject return this.targetFlags.exists("clean"); } + public function isRun():Bool + { + return this.command == "run"; + } + + public function isInstall():Bool + { + return this.command == "install"; + } + public function isBuild():Bool { return this.command == "test" || this.command == "build";