vscode-exts/bin/ovsx_package_last_published_version

9 lines
173 B
Text
Raw Permalink Normal View History

2024-10-10 17:35:30 +03:00
#!/usr/bin/env sh
set -e
PUBLISHER=$1
PACKAGE_NAME=$2
(npx ovsx get --metadata "${PUBLISHER}.${PACKAGE_NAME}" || echo '{"version":"not yet published"}') |
jq -r .version