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
6767 rm -rf node_modules .next .env.local 2> /dev/null || true
6868
6969 echo " [nextjs@$NEXTJS_VERSION ] Installing dependencies..."
70-
7170 # set the desired version of next long enough to run yarn, and then restore the old version (doing the restoration now
7271 # 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-
8072 cp package.json package.json.bak
8173 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
8375 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
8577 fi
8678
8779 # Next.js v13 requires React 18.2.0
You can’t perform that action at this time.
0 commit comments