Skip to content

Commit

Permalink
[Tools] Exclude ts type files from i18n_check (#25799)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-lapata authored Nov 20, 2018
1 parent cf64825 commit 0d310d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/i18n/extract_default_translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function extractMessagesFromPathToMap(inputPath, targetMap) {
const entries = await globAsync('*.{js,jsx,pug,ts,tsx,html,hbs,handlebars}', {
cwd: inputPath,
matchBase: true,
ignore: ['**/node_modules/**', '**/__tests__/**', '**/*.test.{js,jsx,ts,tsx}'],
ignore: ['**/node_modules/**', '**/__tests__/**', '**/*.test.{js,jsx,ts,tsx}', '**/*.d.ts'],
});

const { htmlEntries, codeEntries, pugEntries, hbsEntries } = entries.reduce(
Expand Down

0 comments on commit 0d310d3

Please sign in to comment.