Bundler: Update to modern npm arguments
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
abc52b1e7b
commit
5079b893be
@ -67,7 +67,7 @@ cd package
|
|||||||
for packagejson in $(find . -type d -name node_modules\* -prune -o -type f -name package.json -print); do
|
for packagejson in $(find . -type d -name node_modules\* -prune -o -type f -name package.json -print); do
|
||||||
pushd $(dirname $packagejson)
|
pushd $(dirname $packagejson)
|
||||||
echo " Downloading prod dependencies"
|
echo " Downloading prod dependencies"
|
||||||
npm install --no-optional --only=prod
|
npm install --omit=dev --omit=optional
|
||||||
if [ $? -ge 1 ] ; then
|
if [ $? -ge 1 ] ; then
|
||||||
echo " ERROR WILL ROBINSON"
|
echo " ERROR WILL ROBINSON"
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
@ -97,7 +97,7 @@ fi
|
|||||||
for packagejson in $(find . -type d -name node_modules\* -prune -o -type f -name package.json -print); do
|
for packagejson in $(find . -type d -name node_modules\* -prune -o -type f -name package.json -print); do
|
||||||
pushd $(dirname $packagejson)
|
pushd $(dirname $packagejson)
|
||||||
echo " Downloading dev dependencies"
|
echo " Downloading dev dependencies"
|
||||||
npm install --no-optional --only=dev
|
npm install --omit=optional
|
||||||
if [ $? -ge 1 ] ; then
|
if [ $? -ge 1 ] ; then
|
||||||
echo " ERROR WILL ROBINSON"
|
echo " ERROR WILL ROBINSON"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user