diff --git a/package.json b/package.json index aca5c5cdc0b..76a96c3cf9b 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "gypfile": true, "binary": { - "module_name": "mapbox-gl-native", + "module_name": "mapbox_gl_native", "module_path": "./lib/", "host": "https://mapbox-node-binary.s3.amazonaws.com", "remote_path": "./{name}/v{version}", diff --git a/platform/node/scripts/after_success.sh b/platform/node/scripts/after_success.sh index 7ef8f535454..95921a42c22 100755 --- a/platform/node/scripts/after_success.sh +++ b/platform/node/scripts/after_success.sh @@ -4,7 +4,7 @@ set -e set -o pipefail if [[ -n ${PUBLISH:-} ]]; then - if [[ "${BUILDTYPE}" == "Debug" ]]; then + if [[ "${BUILDTYPE}" != "Release" ]]; then echo "Please run this script in release mode (BUILDTYPE=Release)." exit 1 else