Keep symbolic links when copying node_modules or we run into problems because they no longer know which module they belong to.

This commit is contained in:
Simo Kinnunen
2014-07-30 17:49:39 +09:00
parent 05549ce32a
commit 93973dc953
2 changed files with 10 additions and 2 deletions

View File

@@ -28,3 +28,11 @@ indent() {
cat_npm_debug_log() {
test -f $build_dir/npm-debug.log && cat $build_dir/npm-debug.log
}
cp_keep_links() {
if [ "$(uname)" == "Darwin" ]; then
cp -p "$@"
else
cp --preserve=links "$@"
fi
}