Explorar o código

Fix yarn with a HOME dir wrapper

Emmanuel Bouthenot %!s(int64=6) %!d(string=hai) anos
pai
achega
e66f3eeb32
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      zsh/zshrc

+ 2 - 0
zsh/zshrc

@@ -278,6 +278,8 @@ fi
 export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/config"
 export NPM_CONFIG_CACHE="${XDG_CACHE_HOME}/npm"
 export NPM_CONFIG_TMP="${XDG_RUNTIME_DIR}/npm"
+# yarn is not yet able to use XDG-* directories, workaround:
+alias yarn="HOME=${TMPDIR} yarn"
 
 # Sourcing ~/.zshrc