Skip to content
Myr

[Fix] `reinstall-packages`: do not include unmet peer deps

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #1948.

authored by Jordan Harband · committed by Jordan Harband · parent 258938e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:nvm.sh+1 added-1 removed
2165 unmodified lines
2166nvm_npm_global_modules() {2167 local NPMLIST2168 local VERSION2169 VERSION="$1"2170 NPMLIST=$(nvm use "${VERSION}" >/dev/null && npm list -g --depth=0 2>/dev/null | command sed 1,1d)2170 NPMLIST=$(nvm use "${VERSION}" >/dev/null && npm list -g --depth=0 2>/dev/null | command sed 1,1d | nvm_grep -v 'UNMET PEER DEPENDENCY')21712172 local INSTALLS2173 INSTALLS=$(nvm_echo "${NPMLIST}" | command sed -e '/ -> / d' -e '/\(empty\)/ d' -e 's/^.* \(.*@[^ ]*\).*/\1/' -e '/^npm@[^ ]*.*$/ d' | command xargs)2174
1548 unmodified lines