diff --git a/Makefile b/Makefile index edf4e756fe..1731a33d02 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,27 @@ ifneq (dev,$(wildcard config.env)) endif +.PHONY: pre-commit +pre-commit: format entities + +.PHONY: format +format: + pnpm run format + +.PHONY: entities +entities: + pnpm run migrate + $(MAKE) -C ./packages/backend-rs regenerate-entities + + +.PHONY: build +build: + corepack prepare pnpm@latest --activate + pnpm install + NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug + pnpm run migrate + + .PHONY: db.init db.up db.down db.init: $(MAKE) -C ./dev/db-container init @@ -11,8 +32,3 @@ db.up: $(MAKE) -C ./dev/db-container up db.down: $(MAKE) -C ./dev/db-container down - -.PHONY: entities -entities: - pnpm run migrate - $(MAKE) -C ./packages/backend-rs regenerate-entities