Add wrappers for pnpm and pnpx in the script

This commit is contained in:
Sander Declerck 2025-07-18 15:58:49 +02:00
parent 24d4862dfd
commit eba1e9cc8e
No known key found for this signature in database

View file

@ -69,6 +69,14 @@ function yarn() {
wrapCommand "yarn" "aikido-yarn" "$@" wrapCommand "yarn" "aikido-yarn" "$@"
} }
function pnpm() {
wrapCommand "pnpm" "aikido-pnpm" "$@"
}
function pnpx() {
wrapCommand "pnpx" "aikido-pnpx" "$@"
}
function npm() { function npm() {
if [[ "$1" == "-v" || "$1" == "--version" ]] && [[ $# -eq 1 ]]; then if [[ "$1" == "-v" || "$1" == "--version" ]] && [[ $# -eq 1 ]]; then
# If args is just -v or --version and nothing else, just run the npm version command # If args is just -v or --version and nothing else, just run the npm version command