File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 55# script/compare-published [tag]
66tag=${1:- ${NPM_TAG:- latest} }
77
8- # this is way faster than `lerna exec npm info . .name`
9- # (but will skip modules that don't have "primer-" in them)
10- modules=` ls -1 modules | egrep primer-`
8+ packages=$( $( dirname $0 ) /get-packages)
119
1210# tabular output separator for column(1)
1311s=,
1412
1513echo " 📦 Comparing Primer modules published @${tag} ..."
1614(
1715 echo " module${s} tag${s} published${s} local"
18- for module in $modules ; do
19- v_published=` npm info ${module} @${tag} .version`
20- v_local=` jq -Mr .version modules/${module} /package.json`
16+ for package in $packages ; do
17+ module=$( jq -r .name " $package /package.json" )
18+ v_published=$( npm info " $module @$tag " .version)
19+ v_local=$( jq -Mr .version " $package /package.json" )
2120 echo " ${module}${s}${tag}${s}${v_published:- x}${s}${v_local} "
2221 done
2322) | column -t -s=${s}
You can’t perform that action at this time.
0 commit comments