Skip to content

Commit

Permalink
remove pluralize dependency; rely on sequelize pluralization instead
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Nov 6, 2019
1 parent d7c03c8 commit 31e5e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/schema-manager.js
@@ -1,4 +1,3 @@
const plural = require('pluralize');
const { capitalize, omit, pick } = require('./utils/lodash-natives');

const StrategyInterface = require('./strategy-interface');
Expand Down Expand Up @@ -400,7 +399,7 @@ class SchemaManager {
let { title } = _modelOptions.get(this);

if (!title) {
title = capitalize(plural.singular(model.name));
title = capitalize(model.options.name.singular);
}

return {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -45,9 +45,7 @@
"oas",
"oasv3"
],
"dependencies": {
"pluralize": "^8.0.0"
},
"dependencies": {},
"devDependencies": {
"@release-it/conventional-changelog": "^1.1.0",
"acorn": "^7.1.0",
Expand Down

0 comments on commit 31e5e06

Please sign in to comment.