Skip to content

Commit

Permalink
feat(generators/with-postgres-prisma): add pluralize module, pluraliz…
Browse files Browse the repository at this point in the history
…e RESOURCE const instead of hardcoded
  • Loading branch information
phatpham9 committed Feb 15, 2021
1 parent ff389c5 commit 65f3224
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pluralize from 'pluralize';

const ENTITY = '<%= compNameParamCase %>';
const RESOURCE = '<%= compNameParamCasePlural %>';
const RESOURCE = pluralize(ENTITY);

export { ENTITY, RESOURCE };

0 comments on commit 65f3224

Please sign in to comment.