1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 17:59:16 +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"