mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add wrappers for pnpm and pnpx in the script
This commit is contained in:
parent
24d4862dfd
commit
eba1e9cc8e
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue