dev: specify the source of backend-rs/index.js in Makefile
This commit is contained in:
parent
e4c9a91a16
commit
6a7d8c0b13
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
recursive_wildcard = $(foreach d, $(wildcard $(1:=/*)), $(call recursive_wildcard, $d, $2) $(filter $(subst *, %, $2), $d))
|
||||
|
||||
SRC := Cargo.toml
|
||||
SRC += $(call recursive_wildcard, src, *)
|
||||
|
||||
|
||||
.PHONY: regenerate-entities
|
||||
regenerate-entities:
|
||||
sea-orm-cli generate entity \
|
||||
|
@ -15,7 +21,7 @@ regenerate-entities:
|
|||
src/model/entity/sea_orm_active_enums.rs
|
||||
pnpm run format
|
||||
|
||||
index.js:
|
||||
index.js: $(SRC)
|
||||
NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug
|
||||
[ -f built/index.js ]
|
||||
rm --force index.js
|
||||
|
|
Loading…
Reference in a new issue