File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const constants = Object.freeze({
2
2
golangVersion : "1.22.2" ,
3
3
4
4
nodeVersion : "21.7.2" ,
5
+ yarnVersion : "1.22.19" ,
5
6
6
7
rollkitLatestTag : "v0.13.3" ,
7
8
rollkitLatestSha : "45b1573" ,
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ INSTALL_NODE_VER=21.7.2
6
6
INSTALL_NVM_VER=0.39.7
7
7
INSTALL_YARN_VER=1.22.19
8
8
9
- # You can pass node version as an argument to this script
9
+ # You can pass node and yarn versions as arguments to this script
10
10
if [ " $1 " != ' ' ]; then
11
11
echo " ==> Using specified node version - $1 "
12
12
INSTALL_NODE_VER=$1
13
13
fi
14
+ if [ " $2 " != ' ' ]; then
15
+ echo " ==> Using specified yarn version - $2 "
16
+ INSTALL_YARN_VER=$2
17
+ fi
18
+
19
+
14
20
15
21
echo " ==> Ensuring .bashrc exists and is writable"
16
22
touch ~ /.bashrc
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ You will also need Yarn installed for web app development.
17
17
If you don't have yarn or nodejs, run this command to install it using cURL on most Linux distros and macOS:
18
18
19
19
``` bash
20
- curl -sSL https://rollkit.dev/install-yarn.sh | sh -s {{constants.nodeVersion}}
20
+ curl -sSL https://rollkit.dev/install-yarn.sh | sh -s {{constants.nodeVersion}} {{constants.yarnVersion}}
21
21
```
22
22
:::
23
23
You can’t perform that action at this time.
0 commit comments