diff --git a/.config/npm/npmrc b/.config/npm/npmrc new file mode 100644 index 0000000..b12cc98 --- /dev/null +++ b/.config/npm/npmrc @@ -0,0 +1,4 @@ +prefix=${XDG_DATA_HOME}/npm +cache=${XDG_CACHE_HOME}/npm +init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js +logs-dir=${XDG_STATE_HOME}/npm/logs diff --git a/.profile b/.profile index b00712e..b8e3f9f 100644 --- a/.profile +++ b/.profile @@ -35,6 +35,9 @@ fi # .inputrc export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc +# .npm/, .npmrc +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc + # editor export EDITOR=vi