Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patch for node.js versions

  • Loading branch information...
commit a2baebf6d62fcb3dc720deb526d40aaae55c53a9 1 parent 9695252
@themgt themgt authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 bin/compile
View
12 bin/compile
@@ -68,12 +68,16 @@ echo "-----> Resolving engine versions"
# requested_node_ver=$(cat $BUILD_DIR/package.json | $LP_DIR/vendor/jq -r .engines.node)
#fi
requested_node_ver=""
+if [ -f "${BUILD_DIR}/nodeversion" ]; then
+ echo " - nodeversion file detected, using for semvar" | indent
+ requested_node_ver=$(cat $BUILD_DIR/nodeversion)
+ echo " - requested version: $requested_node_ver" | indent
+fi
# add a warning if no version of node specified
-if [ "${requested_node_ver}" == "" ]; then
- requested_node_ver="stable"
+if [ "$requested_node_ver" == "" ]; then
+ requested_node_ver="0.10.24"
echo
- echo "No version of Node.js specified in package.json, using latest stable, see:" | indent
- echo "https://devcenter.heroku.com/articles/nodejs-versions" | indent
+ echo "No version of Node.js specified in nodeversion, using '${requested_node_ver}'" | indent
echo
fi
Please sign in to comment.
Something went wrong with that request. Please try again.