fix: do not create scripts folders for packages without scripts

This commit is contained in:
daimond113 2024-12-08 10:13:09 +01:00
parent f6fce8be9e
commit e30ec8a6cf
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -213,7 +213,7 @@ impl Project {
.await?;
}
if let Some(scripts) = node.target.scripts() {
if let Some(scripts) = node.target.scripts().filter(|s| !s.is_empty()) {
let scripts_base =
create_and_canonicalize(self.package_dir().join(SCRIPTS_LINK_FOLDER).join(alias))
.await?;