diff --git a/rc/bashrc b/rc/bashrc index a67ca91e..846eb74a 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -612,7 +612,7 @@ if hash corepack 2> /dev/null; then alias npm="corepack npm" alias npx="corepack npx" if ! hash prettier 2> /dev/null; then - alias prettier="pnpm exec prettier --cache --ignore-unknown" + alias prettier="pnpx prettier --cache --ignore-unknown" fi else echo "Information: corepack is not installed." diff --git a/rc/zshrc b/rc/zshrc index f65fded8..544be816 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -602,7 +602,7 @@ if hash corepack 2>/dev/null; then alias npm="corepack npm" alias npx="corepack npx" if ! hash prettier 2>/dev/null; then - alias prettier="pnpm exec prettier --cache --ignore-unknown" + alias prettier="corepack pnpx prettier --cache --ignore-unknown" fi else echo "Information: corepack is not installed."