Skip to content

Commit

Permalink
link-all: remove existing node_modules (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel authored Aug 6, 2018
1 parent bd18456 commit 9f0b114
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions link-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ for module in ${modules}; do
link_dir=node_modules
fi

echo "${module} => $link_dir/$(basename $module)"
ln -fs ${module} $link_dir
module_dir=${link_dir}/$(basename $module)
echo "${module} => ${module_dir}"
rm -fr ${module_dir}
ln -fs ${module} ${link_dir}

# Symlink executable scripts into place as well. This is not completely
# according to spec (we look in the bin/ directory instead of the { "scripts"
Expand Down

0 comments on commit 9f0b114

Please sign in to comment.