From e30ec8a6cf6aa97b4aaf2f527f34e5a3a218f34e Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Sun, 8 Dec 2024 10:13:09 +0100 Subject: [PATCH] fix: do not create scripts folders for packages without scripts --- src/linking/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linking/mod.rs b/src/linking/mod.rs index b1de1fb..cf38183 100644 --- a/src/linking/mod.rs +++ b/src/linking/mod.rs @@ -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?;