aboutsummaryrefslogblamecommitdiff
path: root/bin/vsce_package_last_published_version
blob: c371b7d5c32c77ff5f348d01998c1e10dfb65efe (plain) (tree)
1
2
3
4
5
6
7
8
9








                                              
#!/usr/bin/env sh
set -e

PUBLISHER=$1
PACKAGE_NAME=$2

npx vsce show "${PUBLISHER}.${PACKAGE_NAME}" |
	grep -E -o "Version:\s+(\S+)" |
	sed -r "s/Version:\s+(\S+)/\1/"