From 522e322cf57250ff1d005d2c48964ac05de403e4 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 10 Nov 2023 10:43:09 -0800 Subject: [PATCH] Switch accessibility checkers to pnpx --- Makefile | 2 +- scripts/bin/axe-ff | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 32822c9..9f22395 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ lint-css: $(CSS_DIR)/*.css equal-access: cp -r $(OUTPUT_DIR) $(OUTPUT_DIR).eac find $(OUTPUT_DIR).eac -type f -name "*.html" | xargs -n1 sd 'content-visibility:auto;' '' - achecker $(OUTPUT_DIR).eac/ + pnpm --package accessibility-checker dlx achecker $(OUTPUT_DIR).eac/ rm -rf $(OUTPUT_DIR).eac .PHONY: validate-json diff --git a/scripts/bin/axe-ff b/scripts/bin/axe-ff index 8c7d5b6..d0cb3ef 100755 --- a/scripts/bin/axe-ff +++ b/scripts/bin/axe-ff @@ -5,4 +5,4 @@ PATH="scripts/bin:$PATH" output_dir="$1" shift urls="$(echo "$*" | tr ' ' '\n' | sd '^https?://[^/]*' "file://$PWD/$output_dir" | sd '/$' '/index.html' | tr '\n' ' ')" -axe $urls -b firefox --show-errors +pnpm --package @axe-core/cli -s dlx axe $urls -b firefox --show-errors