yarnpkg/yarn

XDG compliance

Open

#2,334 建立於 2016年12月23日

在 GitHub 查看
 (23 留言) (173 反應) (0 負責人)JavaScript (2,731 fork)batch import
good first issuehelp wanted

倉庫指標

Star
 (41,514 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hi :)

I noted that Yarn doesn't fit the XDG basedir specification. 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

貢獻者指南