Skip to content

Commit c5c5cf8

Browse files
committed
🔨 Upgrade makefile-ci
2 parents 97f2d57 + 7c0adff commit c5c5cf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.modules/makefile-ci/src/node.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ $(NODEJS_CACHE_PATH)/node-version: $(NODEJS_CACHE_PATH)
145145
$(Q)echo $(NODEJS_VERSION) > $@
146146

147147
# A target that will run node install only if lockfile was changed
148-
$(NODEJS_STATEFILE): $(wildcard $(NODEJS_LOCKFILE))
148+
NODEJS_PACKAGE_JSON_FILES := $(shell find . -name package.json -not -path './node_modules/*' -not -path './.git/*')
149+
150+
$(NODEJS_STATEFILE): $(wildcard $(NODEJS_LOCKFILE)) $(NODEJS_PACKAGE_JSON_FILES)
149151
@$(call log,info,"[NodeJS] Ensure dependencies....",1)
150152
$(Q)${NODEJS_INSTALL}
151153
$(Q)${TOUCH} $@

0 commit comments

Comments
 (0)