Skip to content

Commit

Permalink
fix cheerio (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukrbublik authored Oct 31, 2024
1 parent 4a120c9 commit f36d4f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
"[email protected]": "^8.17.1",
"[email protected]": "^1.20.3",
"[email protected]": "^19.0.8",
"[email protected]": "^0.7.2"
"[email protected]": "^0.7.2",
"[email protected]": "1.0.0-rc.12"
}
}
}
1 change: 1 addition & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion scripts/nvms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ if [[ "$(pnpm -v)" != "8."* ]]; then
fi

if [ $# -gt 0 ]; then
bin="$(which $1 | head -n 1)"
orig_cmd="$1"
fixed_cmd="${orig_cmd/yarn run/pnpm run}"
bin="$(which $fixed_cmd | head -n 1)"
cmd="$@"
shift
args="$(echo $cmd | cut -d' ' -f2-)" # strip "pnpm" from "pnpm X"
if [[ "$cmd" == *"pnpm run "* ]]; then
args="$(echo $cmd | cut -d' ' -f3-)" # strip "pnpm run" from "pnpm run X"
fi
echo "orig cmd: $orig_cmd"
echo "fixed cmd: $fixed_cmd"
echo "bin: $bin"
echo "cmd: $cmd"
echo "args: $args"
Expand Down

0 comments on commit f36d4f9

Please sign in to comment.