From 2b2d280fe0faf53248b223980ff54c474d41f57d Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:18:41 +0100 Subject: [PATCH] feat: support luau scripts --- src/manifest/target.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manifest/target.rs b/src/manifest/target.rs index 850527c..4e0fb31 100644 --- a/src/manifest/target.rs +++ b/src/manifest/target.rs @@ -117,6 +117,9 @@ pub enum Target { /// The path to the bin export file #[serde(default, skip_serializing_if = "Option::is_none")] bin: Option, + /// The exported scripts + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] + scripts: BTreeMap, }, } @@ -164,6 +167,7 @@ impl Target { pub fn scripts(&self) -> Option<&BTreeMap> { match self { Target::Lune { scripts, .. } => Some(scripts), + Target::Luau { scripts, .. } => Some(scripts), _ => None, } }