IssueRaiser

XDG compliance

Hi :) I noted that Yarn doesn't fit the [XDG basedir specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). It could be nice to support it. **What is the current behavior?** Currently Yarn creates its own data / cache / config directories: - ```$HOME/.yarn``` - ```$HOME/.yarn-cache``` - ```$HOME/.yarn-config``` **What is the expected behavior?** Next the desired replacement (or fallback) of each directory. - ```$HOME/.yarn```: ```${XDG_DATA_HOME:-$HOME/.local/share}/yarn``` - ```$HOME/.yarn-cache```: ```${XDG_CACHE_HOME:-$HOME/.cache}/yarn``` - ```$HOME/.yarn-config```: ```${XDG_CONFIG_HOME:-$HOME/.config}/yarn``` OS: Linux

Posted by Conaclos on Dec 23, 2016, 11:29 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

support (Sysadmin)

XDG compliance

ConaclosDec 23, 2016, 11:29 AM

Hi :) I noted that Yarn doesn't fit the [XDG basedir specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). It could be nice to support it. **What is the current behavior?** Currently Yarn creates its own data / cache / config directories: - ```$HOME/.yarn``` - ```$HOME/.yarn-cache``` - ```$HOME/.yarn-config``` **What is the expected behavior?** Next the desired replacement (or fallback) of each directory. - ```$HOME/.yarn```: ```${XDG_DATA_HOME:-$HOME/.local/share}/yarn``` - ```$HOME/.yarn-cache```: ```${XDG_CACHE_HOME:-$HOME/.cache}/yarn``` - ```$HOME/.yarn-config```: ```${XDG_CONFIG_HOME:-$HOME/.config}/yarn``` OS: Linux

Comments (0)

No comments yet. Start the discussion.

Comment on this issue