Skip to content

Commit f36d4f9

Browse files
authored
fix cheerio (#1125)
1 parent 4a120c9 commit f36d4f9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
"[email protected]": "^8.17.1",
141141
"[email protected]": "^1.20.3",
142142
"[email protected]": "^19.0.8",
143-
"[email protected]": "^0.7.2"
143+
"[email protected]": "^0.7.2",
144+
"[email protected]": "1.0.0-rc.12"
144145
}
145146
}
146147
}

pnpm-lock.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/nvms.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ if [[ "$(pnpm -v)" != "8."* ]]; then
3333
fi
3434

3535
if [ $# -gt 0 ]; then
36-
bin="$(which $1 | head -n 1)"
36+
orig_cmd="$1"
37+
fixed_cmd="${orig_cmd/yarn run/pnpm run}"
38+
bin="$(which $fixed_cmd | head -n 1)"
3739
cmd="$@"
3840
shift
3941
args="$(echo $cmd | cut -d' ' -f2-)" # strip "pnpm" from "pnpm X"
4042
if [[ "$cmd" == *"pnpm run "* ]]; then
4143
args="$(echo $cmd | cut -d' ' -f3-)" # strip "pnpm run" from "pnpm run X"
4244
fi
45+
echo "orig cmd: $orig_cmd"
46+
echo "fixed cmd: $fixed_cmd"
4347
echo "bin: $bin"
4448
echo "cmd: $cmd"
4549
echo "args: $args"

0 commit comments

Comments
 (0)