Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,16 @@ else
success=false
fi

# Activate pnpm (version set in package.json)
# Activate pnpm via corepack
echo -e "${YELLOW}Setting up pnpm...${NC}"
if ! command -v corepack &>/dev/null; then
echo -e "${RED}Error: corepack not found.${NC}"
echo -e "${RED}Install Node.js 16.9+ (which bundles corepack) and re-run this script.${NC}"
echo -e "${RED}See: https://nodejs.org/en/download${NC}"
exit 1
fi
corepack enable pnpm || success=false

# Install Node dependencies
pnpm install || success=false

Expand Down