mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
Remove local npm after installing since we no longer need it (saves ~4MB).
This commit is contained in:
parent
f216a691a1
commit
9197272632
@ -27,4 +27,6 @@ if [ $NODE_ENV == 'production' ]; then
|
|||||||
find . -type d -name 'test' -exec rm -rf '{}' \; 2> /dev/null || true
|
find . -type d -name 'test' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
find . -type d -name 'doc' -exec rm -rf '{}' \; 2> /dev/null || true
|
find . -type d -name 'doc' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
find . -type d -name 'man' -exec rm -rf '{}' \; 2> /dev/null || true
|
find . -type d -name 'man' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
|
# And npm - we've finished with it
|
||||||
|
find . -type d -name 'npm' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user