Commit 03d6e3ba authored by zeke's avatar zeke

don't forget those utility functions

parent e9a658ea
...@@ -11,6 +11,12 @@ env_file=$3 ...@@ -11,6 +11,12 @@ env_file=$3
bp_dir=$(cd $(dirname $0); cd ..; pwd) bp_dir=$(cd $(dirname $0); cd ..; pwd)
# Load some convenience functions like status(), echo(), and indent()
source $bp_dir/bin/common.sh
# Output npm debug info on error
trap cat_npm_debug_log ERR
if [ "$env_file" ]; then if [ "$env_file" ]; then
status "before:" status "before:"
env env
...@@ -23,12 +29,6 @@ if [ "$env_file" ]; then ...@@ -23,12 +29,6 @@ if [ "$env_file" ]; then
env env
fi fi
# Load some convenience functions like status(), echo(), and indent()
source $bp_dir/bin/common.sh
# Output npm debug info on error
trap cat_npm_debug_log ERR
# Look in package.json's engines.node field for a semver range # Look in package.json's engines.node field for a semver range
semver_range=$(cat $build_dir/package.json | $bp_dir/vendor/jq -r .engines.node) semver_range=$(cat $build_dir/package.json | $bp_dir/vendor/jq -r .engines.node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment