Skip to content

Commit da2385e

Browse files
committed
fix(setup): avoid yarn install prompt
1 parent ece698c commit da2385e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.devcontainer/setup.sh

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ set -e
33

44
cd "$(dirname "$0")/.."
55

6-
echo "Installing packages..."
7-
corepack enable
8-
9-
curl -L https://foundry.paradigm.xyz | bash
10-
116
# Dynamically determine the home directory of the current user
127
USER_HOME=$(eval echo ~"$USER")
138

14-
# Source the user's .bashrc and run foundryup
9+
# Install Foundry
10+
curl -L https://foundry.paradigm.xyz | bash
1511
# source "$USER_HOME/.bashrc"
1612
"$USER_HOME/.foundry/bin/foundryup"
13+
14+
# Install yarn, dependencies, and build the project
15+
corepack enable
16+
17+
# Avoid yarn generating a prompt for corepack to install yarn
18+
corepack prepare [email protected] --activate
19+
20+
yarn

0 commit comments

Comments
 (0)