Bundler: Update to modern npm arguments
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
abc52b1e7b
commit
5079b893be
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ cd package
|
|||
for packagejson in $(find . -type d -name node_modules\* -prune -o -type f -name package.json -print); do
|
||||
pushd $(dirname $packagejson)
|
||||
echo " Downloading prod dependencies"
|
||||
npm install --no-optional --only=prod
|
||||
npm install --omit=dev --omit=optional
|
||||
if [ $? -ge 1 ] ; then
|
||||
echo " ERROR WILL ROBINSON"
|
||||
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
|
||||
pushd $(dirname $packagejson)
|
||||
echo " Downloading dev dependencies"
|
||||
npm install --no-optional --only=dev
|
||||
npm install --omit=optional
|
||||
if [ $? -ge 1 ] ; then
|
||||
echo " ERROR WILL ROBINSON"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue