Skip to content

Commit f69e598

Browse files
cursoragentaidenybai
authored andcommitted
fix: add warning for uncleaned react-scan files in normal migration path
1 parent a98d117 commit f69e598

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/cli/src/commands/migrate.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,19 @@ export const migrate = new Command()
350350
projectInfo.projectRoot,
351351
);
352352

353+
if (getOtherDetectedFiles().length > 0) {
354+
logger.break();
355+
logger.warn(
356+
"React Scan was detected in additional files that were not automatically cleaned:",
357+
);
358+
for (const file of getOtherDetectedFiles()) {
359+
logger.log(` - ${file}`);
360+
}
361+
logger.warn(
362+
"Please remove React Scan references from these files manually.",
363+
);
364+
}
365+
353366
logger.break();
354367
logger.log(`${highlighter.success("Success!")} Migration complete.`);
355368
logger.log("You may now start your development server.");

0 commit comments

Comments
 (0)