We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7112e7e commit d2624adCopy full SHA for d2624ad
1 file changed
packages/cli/src/migration/bin.ts
@@ -863,7 +863,10 @@ async function executeMigrationPlan(
863
if (plan.frameworkShimFrameworks) {
864
updateMigrationProgress('Adding TypeScript shim');
865
for (const framework of plan.frameworkShimFrameworks) {
866
- if (!hasFrameworkShim(workspaceInfo.rootDir, framework)) {
+ if (
867
+ detectFramework(workspaceInfo.rootDir).includes(framework) &&
868
+ !hasFrameworkShim(workspaceInfo.rootDir, framework)
869
+ ) {
870
addFrameworkShim(workspaceInfo.rootDir, framework, report);
871
}
872
for (const pkg of workspaceInfo.packages) {
0 commit comments