From c98c669d5ad04485e8025705827a635d116b44a4 Mon Sep 17 00:00:00 2001 From: Mike Bender Date: Mon, 18 Mar 2024 09:20:20 -0400 Subject: [PATCH] Add cases for packages that do not have JS or Python - Just ignore them in that case - Log an error if a package is unrecognized --- tools/update_version.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/update_version.sh b/tools/update_version.sh index c737569dd..d1fd141d2 100755 --- a/tools/update_version.sh +++ b/tools/update_version.sh @@ -134,6 +134,9 @@ case "$package" in packaging) update_file packaging/setup.cfg 'version = ' '' "$extra" ;; + auth-keycloak | dashboard-object-viewer | table-example) + # Packages that don't have any Python to publish, just ignore + ;; *) { log_error "Unhandled plugin $package. You will need to add wiring in $SCRIPT_NAME" @@ -149,6 +152,14 @@ case "$package" in # The working directory is already `plugins/`, so we just specify workspace as `src/js` and it does the right thing npm version "$npm_version" --workspace=src/js ;; + json | packaging | utilities) + # Packages that don't have any JS to publish, just ignore + ;; + *) + { + log_error "Unhandled JS plugin $package. You will need to add JS wiring in $SCRIPT_NAME" + exit 90 + } esac log_info "Done updating $package version to $version${extra}"