Skip to content

Commit

Permalink
chore: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ijemmao committed Sep 27, 2024
1 parent 0a2a1e7 commit 3259146
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/utils/buildDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions src/shared/utils/wrapConsole.ts
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit 3259146

Please sign in to comment.