Skip to content

Commit

Permalink
fix npm ci condition
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Jun 6, 2024
1 parent 2bfc8f0 commit 4f1b484
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ endif
.PHONY: npm
npm:
ifeq (,$(wildcard $(CURDIR)/package.json))
ifneq ("$(wildcard $(CURDIR)/package-lock.json)","")
npm ci
else
ifeq (,$(wildcard $(CURDIR)/package-lock.json))
npm install
else
npm ci
endif
cd js && $(npm) run build
else
ifneq ("$(wildcard $(CURDIR)/package-lock.json)","")
npm ci
else
ifeq (,$(wildcard $(CURDIR)/package-lock.json))
npm install
else
npm ci
endif
npm run build
endif
Expand Down

0 comments on commit 4f1b484

Please sign in to comment.