We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01fa90c commit 28362c4Copy full SHA for 28362c4
scripts/translate.js
@@ -508,12 +508,12 @@ async function main() {
508
console.log(`Debug: ${opts.debug}`);
509
console.log('');
510
511
- // Find all doc files
512
- const files = await fg(['**/*.md', '**/*.mdx'], {
+ // Find all doc files (dedupe to guard against glob returning overlapping results)
+ const files = [...new Set(await fg(['**/*.md', '**/*.mdx'], {
513
cwd: DOCS_DIR,
514
absolute: true,
515
ignore: ['**/node_modules/**'],
516
- });
+ }))];
517
518
console.log(`Found ${files.length} doc files`);
519
0 commit comments