windows: do not include dev dependencies in the prebuilt package

This makes the package smaller.

Before this change:
    added 981 packages from 1497 contributors [...]
    53M etherpad-lite-win.zip

After this change:
    added 734 packages from 1043 contributors [...]
    43M etherpad-lite-win.zip

Closes #3651.
This commit is contained in:
muxator 2019-10-20 03:12:39 +02:00
parent 283100db6b
commit ce666f19bd

View file

@ -37,6 +37,10 @@ cd $TMP_FOLDER
rm -rf node_modules
rm -f etherpad-lite-win.zip
# setting NODE_ENV=production ensures that dev dependencies are not installed,
# making the windows package smaller
export NODE_ENV=production
echo "do a normal unix install first..."
bin/installDeps.sh || exit 1