Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

shared: Fix lint errors in new NPM scripts.

Greg Pricef9ae386050ea
diff --git a/static/shared/tools/npm-postversion b/static/shared/tools/npm-postversion
index 94ebc9da594..e6dc5405bfd 100755
--- a/static/shared/tools/npm-postversion
+++ b/static/shared/tools/npm-postversion
@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -eu -o pipefail
+# shellcheck disable=SC2154 # expect this to run as NPM script
+: "${npm_package_version}"
+
should_color=
-if [ -t 2 ]; then # if we're sending to a terminal
+if [ -t 2 ]; then # if we're sending to a terminal
should_color=yes
fi
diff --git a/static/shared/tools/npm-version b/static/shared/tools/npm-version
index d15b7f17e28..c62eac02b8c 100755
--- a/static/shared/tools/npm-version
+++ b/static/shared/tools/npm-version
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -eu -o pipefail
+# shellcheck disable=SC2154 # expect this to run as NPM script
+: "${npm_package_version}"
+
git commit -am "shared: Bump version to ${npm_package_version}"
git tag "shared-${npm_package_version}"