diff --git a/scripts/percy-skip-deps.sh b/scripts/percy-skip-deps.sh index a9a697347..4ac304fdc 100755 --- a/scripts/percy-skip-deps.sh +++ b/scripts/percy-skip-deps.sh @@ -16,6 +16,16 @@ git log --no-merges --name-only --pretty=format: ${RANGE} | grep -Ev '^$' | sort if [[ "${FILE}" =~ ^ui/src/.+ ]]; then echo "[P] ${FILE}" exit 1 + elif [[ "${FILE}" == "ui/package.json" ]]; then + echo "[?] ${FILE}" + git diff --no-prefix --diff-filter=M --unified=0 ${RANGE} -- ui/package.json | grep -E '^\+ ' | tr -d '":,' | while read I NAME VERSION ; do + if [[ "${NAME}" =~ ^(@types|@sentry)/.+ ]]; then + echo "[S] ${NAME}: ${VERSION}" + else + echo "[P] ${NAME}: ${VERSION}" + exit 1 + fi + done else echo "[ ] ${FILE}" fi