From 3eccb7c094d9ac6a87db419a8d12027fbf11176b Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 29 Dec 2025 20:26:16 +0800 Subject: [PATCH] feat: improve project clean module's common utility sourcing and bump version to 1.15.10 --- lib/clean/project.sh | 8 ++++++++ mole | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/clean/project.sh b/lib/clean/project.sh index 8d5e205..1663b2a 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -2,6 +2,14 @@ # Project Purge Module (mo purge) # Removes heavy project build artifacts and dependencies set -euo pipefail + +PROJECT_LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +CORE_LIB_DIR="$(cd "$PROJECT_LIB_DIR/../core" && pwd)" +if ! command -v ensure_user_dir > /dev/null 2>&1; then + # shellcheck disable=SC1090 + source "$CORE_LIB_DIR/common.sh" +fi + # Targets to look for (heavy build artifacts) readonly PURGE_TARGETS=( "node_modules" diff --git a/mole b/mole index aa42c89..6c3b765 100755 --- a/mole +++ b/mole @@ -25,7 +25,7 @@ source "$SCRIPT_DIR/lib/core/common.sh" trap cleanup_temp_files EXIT INT TERM # Version info -VERSION="1.15.9" +VERSION="1.15.10" MOLE_TAGLINE="Deep clean and optimize your Mac." # Check TouchID configuration