File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -67,21 +67,13 @@ for NEXTJS_VERSION in 10 11 12 13; do
67
67
rm -rf node_modules .next .env.local 2> /dev/null || true
68
68
69
69
echo " [nextjs@$NEXTJS_VERSION ] Installing dependencies..."
70
-
71
70
# set the desired version of next long enough to run yarn, and then restore the old version (doing the restoration now
72
71
# rather than during overall cleanup lets us look for "latest" in every loop)
73
-
74
- if [ " $NEXTJS_VERSION " -eq " 13" ]; then
75
- SPECIFIC_NEXT_VERSION=" 13.4.9"
76
- else
77
- SPECIFIC_NEXT_VERSION=" $NEXTJS_VERSION .x"
78
- fi
79
-
80
72
cp package.json package.json.bak
81
73
if [[ $( uname) == " Darwin" ]]; then
82
- sed -i " " /" next.*latest" /s/latest/" ${SPECIFIC_NEXT_VERSION} " / package.json
74
+ sed -i " " /" next.*latest" /s/latest/" ${NEXTJS_VERSION} .x " / package.json
83
75
else
84
- sed -i /" next.*latest" /s/latest/" ${SPECIFIC_NEXT_VERSION} " / package.json
76
+ sed -i /" next.*latest" /s/latest/" ${NEXTJS_VERSION} .x " / package.json
85
77
fi
86
78
87
79
# Next.js v13 requires React 18.2.0
You can’t perform that action at this time.
0 commit comments