Skip to content

Commit

Permalink
chore: In Makefile, add target ts_check. Use it to make node_modules.…
Browse files Browse the repository at this point in the history
… See the PR.

Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 committed Sep 24, 2024
1 parent c39c9bd commit 3361dfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mobile/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
check-program = $(foreach exec,$(1),$(if $(shell PATH="$(PATH)" which $(exec)),,$(error "Missing deps: no '$(exec)' in PATH")))
check-file = $(foreach file,$(1),$(if $(wildcard $(file)),,$(error "Missing file: $(file)")))

node_modules: package.json package-lock.json
ts_check:
npm run ts:check

node_modules: ts_check package.json package-lock.json
$(call check-program, npm)
(npm install && touch $@) || true
.PHONY: node_modules
Expand Down

0 comments on commit 3361dfa

Please sign in to comment.