vscode-exts/bin/vsce_package_last_published_version
2024-10-10 17:35:30 +03:00

9 lines
169 B
Bash
Executable file

#!/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/"