We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f245b4 commit 3cf8fe7Copy full SHA for 3cf8fe7
scripts/migration/src/index.ts
@@ -272,6 +272,12 @@ async function processDirectory(
272
}
273
await processDirectory(fullPath, options, config);
274
} else if (entry.isFile() && /\.mdx?$/.test(entry.name)) {
275
+ // Skip root index.mdx file
276
+ const relativePath = path.relative(options.sourcePath || "", fullPath);
277
+ if (relativePath === "index.mdx") {
278
+ console.log(`Skipping root index file: ${entry.name}`);
279
+ continue;
280
+ }
281
console.log(`Found MDX file: ${entry.name}`);
282
try {
283
await processFile(fullPath, options);
0 commit comments