Also ignore `*/node_modules/*` paths when bumping version

This commit is contained in:
Trent Nelson 2021-03-15 13:07:08 -06:00 committed by mergify[bot]
parent 510760d81b
commit 2bf46b789f
1 changed files with 5 additions and 4 deletions

View File

@ -23,6 +23,7 @@ ignores=(
.cargo
target
web3.js/examples
node_modules
)
not_paths=()
@ -30,10 +31,10 @@ for ignore in "${ignores[@]}"; do
not_paths+=(-not -path "*/$ignore/*")
done
# shellcheck disable=2207,SC2068 # Don't want a positional arg if `not-paths` is empty
Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml ${not_paths[@]}))
# shellcheck disable=2207,SC2068 # Don't want a positional arg if `not-paths` is empty
markdownFiles=($(find . -name "*.md" ${not_paths[@]}))
# shellcheck disable=2207
Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml "${not_paths[@]}"))
# shellcheck disable=2207
markdownFiles=($(find . -name "*.md" "${not_paths[@]}"))
# Collect the name of all the internal crates
crates=()