mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 02:50:37 +00:00
feat: support luau scripts
This commit is contained in:
parent
0fa17a839f
commit
2b2d280fe0
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,9 @@ pub enum Target {
|
|||
/// The path to the bin export file
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
bin: Option<RelativePathBuf>,
|
||||
/// The exported scripts
|
||||
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||
scripts: BTreeMap<String, RelativePathBuf>,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -164,6 +167,7 @@ impl Target {
|
|||
pub fn scripts(&self) -> Option<&BTreeMap<String, RelativePathBuf>> {
|
||||
match self {
|
||||
Target::Lune { scripts, .. } => Some(scripts),
|
||||
Target::Luau { scripts, .. } => Some(scripts),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue