1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 13:16:47 +00:00

feat: improve project clean module's common utility sourcing and bump version to 1.15.10

This commit is contained in:
Tw93
2025-12-29 20:26:16 +08:00
parent af61748977
commit 3eccb7c094
2 changed files with 9 additions and 1 deletions

View File

@@ -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"

2
mole
View File

@@ -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