dev: format the code on entity regeneration

This commit is contained in:
naskya 2024-04-07 12:20:46 +09:00
parent 18f4114f18
commit e4c9a91a16
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -13,6 +13,7 @@ regenerate-entities:
done
sed -i 's/#\[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum)\]/#[derive(Debug, PartialEq, Eq, EnumIter, DeriveActiveEnum)]\n#[cfg_attr(not(feature = "napi"), derive(Clone))]\n#[cfg_attr(feature = "napi", napi_derive::napi)]/' \
src/model/entity/sea_orm_active_enums.rs
pnpm run format
index.js:
NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug