Browse Source

Fix yarn with a HOME dir wrapper

Emmanuel Bouthenot 5 years ago
parent
commit
e66f3eeb32
1 changed files with 2 additions and 0 deletions
  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