mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 06:33:28 +00:00
Make use of flatten-packages when distributing
This commit is contained in:
parent
980e55afd3
commit
de400614ea
@ -9,6 +9,13 @@ PACKAGE_JSON=`cat package.json`
|
||||
VERSION=$(parse_json "$PACKAGE_JSON" version)
|
||||
NAME=$(parse_json "$PACKAGE_JSON" name)
|
||||
|
||||
if [ -z flatten-packages ]; then
|
||||
echo "Missing flatten-packages npm module."
|
||||
echo "Install it with:"
|
||||
echo " $ npm install -g flatten-packages"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function print_banner() {
|
||||
local message=$1
|
||||
|
||||
@ -40,6 +47,7 @@ function distribute() {
|
||||
cd build/$package
|
||||
|
||||
RESIN_BUNDLE=$os npm install --production --force
|
||||
flatten-packages .
|
||||
|
||||
cd ..
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user