Explorar el Código

Fix yarn with a HOME dir wrapper

Emmanuel Bouthenot hace 6 años
padre
commit
e66f3eeb32
Se han modificado 1 ficheros con 2 adiciones y 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