Add pnpm dependency installation for rln tests

This commit is contained in:
stubbsta 2025-06-06 12:53:52 +02:00
parent da4946f59b
commit cb12c7766e
3 changed files with 21 additions and 5 deletions

View File

@ -112,11 +112,8 @@ ifeq (, $(shell which cargo))
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
endif
anvil: rustup
ifeq (, $(shell which anvil 2> /dev/null))
# Install Anvil if it's not installed
./scripts/install_anvil.sh
endif
rln-deps: rustup
./scripts/install_rln_tests_dependencies.sh
deps: | deps-common nat-libs waku.nims

8
scripts/install_pnpm.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Install pnpm
if ! command -v pnpm &> /dev/null; then
echo "pnpm is not installed, installing it now..."
curl -L https://unpkg.com/@pnpm/self-installer | node
fi

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Install Anvil
if ! command -v anvil &> /dev/null; then
./scripts/install_anvil.sh
fi
#Install pnpm
if ! command -v pnpm &> /dev/null; then
./scripts/install_pnpm.sh
fi