diff options
Diffstat (limited to 'bin/vsce_package_last_published_version')
-rwxr-xr-x | bin/vsce_package_last_published_version | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/vsce_package_last_published_version b/bin/vsce_package_last_published_version new file mode 100755 index 0000000..c371b7d --- /dev/null +++ b/bin/vsce_package_last_published_version @@ -0,0 +1,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/" |