File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ ! /node_modules /
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ trap _trap SIGHUP SIGINT SIGTERM
205205
206206echo ' + Looking up dotfiles'
207207DOTFILES=" $( cat " $HOME /.config/dotfiles/location" ) "
208+ NODE_MODULES=.bin/node_modules/
208209PLUGINS=" $HOME /.config/dotfiles/plugins"
209210
210211if [ " $DOTFILES " = ' ' ] ; then
@@ -311,6 +312,15 @@ if $update ; then
311312 echo ' + Update dotfiles'
312313 sh " $DOTFILES " /bootstrap/dotfiles-update -f || _exit " $? "
313314
315+ if [ -d " ${NODE_MODULES} " ] ; then
316+ echo ' * Node Modules @ ' " ${NODE_MODULES} "
317+ find " ${NODE_MODULES} " -mindepth 1 -maxdepth 1 -type d |
318+ while read -r module ; do
319+ echo ' ° Install ' " ${HOME} /${module} "
320+ _do npm --prefix " ${HOME} /${module} " clean-install
321+ done
322+ fi
323+
314324fi
315325
316326if $plugins ; then
You can’t perform that action at this time.
0 commit comments