Skip to content

Commit 65f3224

Browse files
committed
feat(generators/with-postgres-prisma): add pluralize module, pluralize RESOURCE const instead of hardcoded
1 parent ff389c5 commit 65f3224

File tree

1 file changed

+3
-1
lines changed
  • generators/with-postgres-prisma/templates/<%= compNameParamCasePlural %>

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import pluralize from 'pluralize';
2+
13
const ENTITY = '<%= compNameParamCase %>';
2-
const RESOURCE = '<%= compNameParamCasePlural %>';
4+
const RESOURCE = pluralize(ENTITY);
35

46
export { ENTITY, RESOURCE };

0 commit comments

Comments
 (0)