Skip to content

Commit

Permalink
chore: force singularize model name
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Dec 8, 2023
1 parent 3996563 commit a98379b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auto-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class AutoWriter {
// import statements
tables.forEach(t => {
const fileName = recase(this.options.caseFile, t, this.options.singularize);
const modelName = makeTableName(this.options.caseModel, t, this.options.singularize, this.options.lang);
// const modelName = makeTableName(this.options.caseModel, t, this.options.singularize, this.options.lang);
const modelName = makeTableName(this.options.caseModel, t, true, this.options.lang);
modelNames.push(modelName);
str += `import { ${modelName} as _${modelName} } from "./${fileName}";\n`;
str += `import type { ${modelName}Attributes, ${modelName}CreationAttributes } from "./${fileName}";\n`;
Expand Down

0 comments on commit a98379b

Please sign in to comment.