Skip to content

Commit

Permalink
Merge branch 'main' into @chrispader/theme-switching-going-live
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pader committed Dec 13, 2023
2 parents c27c2f2 + 93dfb53 commit ab996c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/findUnusedKeys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readonly SRC_DIR="${LIB_PATH}/src"
readonly STYLES_DIR="${LIB_PATH}/src/styles"
readonly STYLES_FILE="${LIB_PATH}/src/styles/index.ts"
readonly UTILS_STYLES_FILE="${LIB_PATH}/src/styles/utils"
readonly UTILS_STYLES_GENERATORS_FILE="${LIB_PATH}/src/styles/utils/generators"
readonly STYLES_KEYS_FILE="${LIB_PATH}/scripts/style_keys_list_temp.txt"
readonly UTIL_STYLES_KEYS_FILE="${LIB_PATH}/scripts/util_keys_list_temp.txt"
readonly REMOVAL_KEYS_FILE="${LIB_PATH}/scripts/removal_keys_list_temp.txt"
Expand Down Expand Up @@ -325,7 +326,8 @@ find_util_usage_as_styles() {
fi

find_theme_style_and_store_keys "${file}" 0 "${root_key}"
done < <(find "${UTILS_STYLES_FILE}" -type f \( "${FILE_EXTENSIONS[@]}" \))
done < <(find "${UTILS_STYLES_FILE}" -type f \( -path "${UTILS_STYLES_GENERATORS_FILE}" -prune -o -name "${FILE_EXTENSIONS[@]}" \) -print)

}

lookfor_unused_utils() {
Expand Down

0 comments on commit ab996c7

Please sign in to comment.