diff --git a/justfiles/tools.just b/justfiles/tools.just index ad3ec18..4d54aaf 100644 --- a/justfiles/tools.just +++ b/justfiles/tools.just @@ -222,10 +222,10 @@ clean: done fi - # Also clean nushell submodule if it exists - if [ -d "nushell/target" ]; then - echo "Removing nushell/target..." - rm -rf "nushell/target" + # Also clean nushell submodule if it exists (use cargo clean for complex projects) + if [ -d "nushell" ]; then + echo "Cleaning nushell submodule..." + cd nushell && cargo clean && cd .. fi # Clean specific plugin