yarnpkg/yarn

XDG compliance

Open

#2.334 aberto em 23 de dez. de 2016

Ver no GitHub
 (23 comments) (173 reactions) (0 assignees)JavaScript (2.731 forks)batch import
good first issuehelp wanted

Métricas do repositório

Stars
 (41.514 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador