From 3259146a91e7c432d613582c3b12e2697dee4d50 Mon Sep 17 00:00:00 2001 From: Ijemma Onwuzulike Date: Fri, 27 Sep 2024 08:41:48 -0700 Subject: [PATCH] chore: testing --- next.config.js | 7 +++++++ package.json | 4 ++-- src/controllers/utils/buildDocs.ts | 2 +- src/shared/utils/wrapConsole.ts | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/next.config.js b/next.config.js index 75ff3c9b..5e98398f 100644 --- a/next.config.js +++ b/next.config.js @@ -12,3 +12,10 @@ module.exports = { }, i18n, }; + +// TODO: create a migration that migrates: +// Project.type +// ExampleSuggestion.translations.createdAt +// ExampleSuggestion.translations.updatedAt +// Example.translations.createdAt +// Example.translations.updatedAt diff --git a/package.json b/package.json index e0a5beb5..5273cf57 100644 --- a/package.json +++ b/package.json @@ -73,8 +73,8 @@ "./node_modules/.bin/prettier --write", "./node_modules/.bin/eslint" ], - "src*.{ts,tsx}": [ - "echo \"run it back\"; exit 1" + "**/*.ts?(x)": [ + "./node_modules/.bin/tsc" ] }, "license": "ISC", diff --git a/src/controllers/utils/buildDocs.ts b/src/controllers/utils/buildDocs.ts index 86277487..3b3d2891 100644 --- a/src/controllers/utils/buildDocs.ts +++ b/src/controllers/utils/buildDocs.ts @@ -54,7 +54,7 @@ const cleanExamples = ({ examples, version }: { examples: IncomingExample[], ver ['source', 'translations'] ); if (version === Version.VERSION_1) { - cleanedExample.pronunciationss = example.source.pronunciations?.[0]?.audio || ''; + cleanedExample.pronunciation = example.source.pronunciations?.[0]?.audio || ''; } else { cleanedExample.pronunciations = example.source.pronunciations.map(({ audio }) => audio); } diff --git a/src/shared/utils/wrapConsole.ts b/src/shared/utils/wrapConsole.ts index 50456dc8..e196bd92 100644 --- a/src/shared/utils/wrapConsole.ts +++ b/src/shared/utils/wrapConsole.ts @@ -1,5 +1,5 @@ import chalk from 'chalk'; -console.green = (...args) => console.log(chalk.green(...args)); // eslint-disable-line -console.blue = (...args) => console.log(chalk.blue(...args)); // eslint-disable-line -console.red = (...args) => console.log(chalk.red(...args)); // eslint-disable-line +console.green = (...args) => console.log(chalk.green(...args)); +console.blue = (...args) => console.log(chalk.blue(...args)); +console.red = (...args) => console.log(chalk.red(...args));