mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-01-05 23:59:09 +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
|
/// The path to the bin export file
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
bin: Option<RelativePathBuf>,
|
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>> {
|
pub fn scripts(&self) -> Option<&BTreeMap<String, RelativePathBuf>> {
|
||||||
match self {
|
match self {
|
||||||
Target::Lune { scripts, .. } => Some(scripts),
|
Target::Lune { scripts, .. } => Some(scripts),
|
||||||
|
Target::Luau { scripts, .. } => Some(scripts),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue