#!/bin/bash -e

# Have Greenkeeper update the project's npm lockfile to match the new dependency versions
NPM_VERSION=$(npm --version)

# Lockfiles are only supported on npm 5+
IFS='.' read -ra NPM_VERSION_COMPONENTS <<< "$NPM_VERSION"
if [[ "${NPM_VERSION_COMPONENTS[0]}" -ge 5 ]]; then
  greenkeeper-lockfile-update
else
  echo "WARN: npm version $NPM_VERSION does not support lockfiles"
fi

#!/bin/bash -e

# Have Greenkeeper update the project's npm lockfile to match the new dependency versions
NPM_VERSION=$(npm --version)

# Lockfiles are only supported on npm 5+
IFS='.' read -ra NPM_VERSION_COMPONENTS <<< "$NPM_VERSION"
if [[ "${NPM_VERSION_COMPONENTS[0]}" -ge 5 ]]; then
  echo "INFO: npm version $NPM_VERSION supports lockfiles"
  greenkeeper-lockfile-update
else
  echo "WARN: npm version $NPM_VERSION DOES NOT support lockfiles"
fi

Write to console when npm version does support lockfiles
CWAP-204: Write to console when npm version does support lockfiles
