Fix Makefile so JS dependencies don't get into a bad state. (#2230)

This commit is contained in:
Nicholas Tollervey
2024-10-24 11:13:02 +01:00
committed by GitHub
parent 6b1330d28a
commit 00e6cfed29

View File

@@ -40,7 +40,7 @@ check-python:
# Check the environment, install the dependencies. # Check the environment, install the dependencies.
setup: check-node check-npm check-python setup: check-node check-npm check-python
cd core && npm install && cd .. cd core && npm ci && cd ..
ifeq ($(VIRTUAL_ENV),) ifeq ($(VIRTUAL_ENV),)
echo "\n\n\033[0;31mCannot install Python dependencies. Your virtualenv is not activated.\033[0m" echo "\n\n\033[0;31mCannot install Python dependencies. Your virtualenv is not activated.\033[0m"
false false
@@ -60,7 +60,6 @@ build:
# Update the dependencies. # Update the dependencies.
update: update:
cd core && npm update && cd ..
python -m pip install -r requirements.txt --upgrade python -m pip install -r requirements.txt --upgrade
# Run the precommit checks (run eslint). # Run the precommit checks (run eslint).