mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
require script is present during pack step iff any pkg procs are type script
This commit is contained in:
@@ -77,6 +77,12 @@ pub enum PackageProcedure {
|
||||
Script(JsProcedure),
|
||||
}
|
||||
impl PackageProcedure {
|
||||
pub fn is_script(&self) -> bool {
|
||||
match self {
|
||||
Self::Js(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
#[instrument]
|
||||
pub fn validate(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user