mirror of
https://github.com/primer/css.git
synced 2024-12-29 00:58:31 +03:00
add compare-published script
This commit is contained in:
parent
92656aa4ec
commit
53ec49609b
18
script/compare-published
Executable file
18
script/compare-published
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
tag=${1:${NPM_TAG}:-latest}
|
||||
modules=`ls -1 modules | egrep primer-`
|
||||
|
||||
# separator
|
||||
s=,
|
||||
|
||||
echo "📦 Comparing Primer modules published @${tag}..."
|
||||
(
|
||||
echo "module${s}tag${s}published${s}local"
|
||||
for module in $modules; do
|
||||
v_published=`npm info ${module}@${tag} .version`
|
||||
v_local=`jq -Mr .version modules/${module}/package.json`
|
||||
echo "${module}${s}${tag}${s}${v_published:-x}${s}${v_local}"
|
||||
done
|
||||
) | column -t -s=${s}
|
Loading…
Reference in New Issue
Block a user