Skip to content

Commit

Permalink
get node version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jun 11, 2018
1 parent f7a0b18 commit a6f5b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BUILD_DIR=`cd ${0%/*} && pwd -P`

NODE_VERSION=${NODE_VERSION:-8.11.2}
NODE_VERSION=`jq -r '.engines.node' package.json `
ARCH=${ARCH:-armv6l}

NODE_NAME=node-v${NODE_VERSION}-linux-${ARCH}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "github:hobbyquaker/redmatic",
"private": true,
"main": "none",
"engines": {
"node": "8.11.2"
},
"dependencies": {
"npm": "6.1.0",
"node-red": "0.18.7",
Expand Down

0 comments on commit a6f5b59

Please sign in to comment.