config/npm: make it use xdg

https://wiki.archlinux.org/title/XDG_Base_Directory#Partial
This commit is contained in:
xeruf 2023-08-07 17:12:59 +02:00
parent da339ad705
commit 6f29d27cd1
2 changed files with 4 additions and 0 deletions

3
.config/npm/npmrc Normal file
View File

@ -0,0 +1,3 @@
prefix=${XDG_DATA_HOME}/npm
cache=${XDG_CACHE_HOME}/npm
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js

View File

@ -44,6 +44,7 @@ export KREW_ROOT="$XDG_DATA_HOME"/krew
export CARGO_HOME="$XDG_STATE_HOME"/cargo export CARGO_HOME="$XDG_STATE_HOME"/cargo
export RUSTUP_HOME="$XDG_STATE_HOME"/rustup export RUSTUP_HOME="$XDG_STATE_HOME"/rustup
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm export NVM_DIR="$XDG_DATA_HOME"/nvm
export N_PREFIX="$XDG_STATE_HOME"/n export N_PREFIX="$XDG_STATE_HOME"/n