From 199a4e4d501075ee3e606f1e86622e4b1c87b65c Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 4 Feb 2019 12:36:07 -0800 Subject: [PATCH] chore: update script/selector-diff-report for reorg --- script/selector-diff-report | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/script/selector-diff-report b/script/selector-diff-report index ebdcf999..29b6488a 100755 --- a/script/selector-diff-report +++ b/script/selector-diff-report @@ -1,7 +1,7 @@ #!/bin/bash set -e -module=${1:-primer} +module=${1:-@primer/css} version=${2:-latest} function log() { @@ -12,13 +12,11 @@ log "Pulling the latest ${module}/build/data.json ..." curl -sL "https://unpkg.com/${module}@${version}/build/data.json" > before.json log "Building ${module}/build/data.json locally..." -pushd modules/${module} > /dev/null npm run build -popd > /dev/null -cp modules/${module}/build/data.json after.json +cp build/data.json after.json function list_selectors() { - jq -r .cssstats.selectors.values[] $1 | sort + jq -r '.cssstats.selectors.values[]' $1 | sort } list_selectors before.json > before.txt