Commit 7cdaf546 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: improve node_modules packing

parent 07fe09b9
......@@ -350,14 +350,17 @@ update_predownloaded()
COMMITMSG="update node_modules with npm install for $VERSION (see $SDNAME in .gear/rules)"
fi
# drop all exclude node_modules
# TODO: correct .* removing
rm -rf $(ls -1 | grep -v node_modules) .*
if [ -s $RGD/.gear/predownloaded-postinstall-hook ] ; then
sh $RGD/.gear/predownloaded-postinstall-hook $MODE
fi
a= npm prune
a= npm dedup
# drop all exclude node_modules
# TODO: correct .* removing
rm -rf $(ls -1 | grep -v node_modules) .*
#epm assure jq || fatal
#(cd node_modules && rm -rf $(jq -r -c '.devDependencies | keys[]' ../package.json))
......
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