scripts/xdg-wrappers/npm
2026-01-11 15:33:53 +01:00

7 lines
199 B
Bash
Executable file

#!/bin/zsh
#dep:npm
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
next=$(next-in-path npm $0)
if (( $? != 0 )); then exit 1; fi
$next $@