Skip to content

Commit

Permalink
Merge pull request #26 from jpbochi/yarn-rc-files-fix
Browse files Browse the repository at this point in the history
stop mapping .yarnrc to conainer HOME
  • Loading branch information
jpbochi authored Jul 18, 2018
2 parents 6de7c04 + d1a2fb1 commit 41ad20d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drun
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ while getopts ':a:c:e:h:l:m:p:u:v:w:X:E:I:KNM:APxDV:' OPT; do
EXTRA_OPTS="${EXTRA_OPTS:-} -v $HOME/.npmrc:/usr/etc/npmrc:ro -v $HOME/.npmrc:/usr/local/etc/npmrc:ro"
fi
if [ -s "$HOME/.yarnrc" ]; then
EXTRA_OPTS="${EXTRA_OPTS:-} -v $HOME/.yarnrc:$CONTAINER_HOME/.yarnrc"
fi
if [ -s "$HOME/.npmrc" -a -s "$HOME/.yarnrc" -a ! -s .npmrc ]; then
# workaround for [Yarn not reading /etc/npmrc while npm does](https://github.com/yarnpkg/yarn/issues/1931)
EXTRA_OPTS="${EXTRA_OPTS:-} -v $HOME/.npmrc:$CONTAINER_HOME/.npmrc:ro"
EXTRA_OPTS="${EXTRA_OPTS:-} -v $HOME/.yarnrc:/usr/etc/yarnrc:ro -v $HOME/.yarnrc:/usr/local/etc/yarnrc:ro"
fi
;;
M)
Expand Down

0 comments on commit 41ad20d

Please sign in to comment.