Skip to content

Commit

Permalink
fix: step update
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Dec 23, 2024
1 parent 13a0f2e commit 543bdaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/codemod/src/actions/migrate-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating package.json...');
await migrateJson(packagesJson);
spinner.stop('Migrated package.json');
step++;
}
step++;
}

/** ======================== 2. Migrate import nextui to heroUI ======================== */
Expand All @@ -79,8 +79,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating import nextui to heroui...');
migrateImportPackageWithPaths(nextuiFiles);
spinner.stop('Migrated import nextui to heroui');
step++;
}
step++;
}

/** ======================== 3. Migrate NextUIProvider to HeroUIProvider ======================== */
Expand All @@ -96,8 +96,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating NextUIProvider to HeroUIProvider...');
migrateNextuiProvider(nextuiFiles);
spinner.stop('Migrated NextUIProvider to HeroUIProvider');
step++;
}
step++;
}

/** ======================== 4. Migrate tailwindcss ======================== */
Expand All @@ -115,8 +115,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating tailwindcss...');
migrateTailwindcss(tailwindcssFiles);
spinner.stop('Migrated tailwindcss');
step++;
}
step++;
}

/** ======================== 5. Migrate css variables ======================== */
Expand All @@ -132,8 +132,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating css variables...');
migrateCssVariables(files);
spinner.stop('Migrated css variables');
step++;
}
step++;
}

/** ======================== 6. Migrate npmrc optional (Pnpm only) ======================== */
Expand All @@ -153,8 +153,8 @@ export async function migrateAction(projectPaths?: string[], options = {} as Mig
spinner.start('Migrating npmrc...');
migrateNpmrc(npmrcFiles);
spinner.stop('Migrated npmrc');
step++;
}
step++;
}

p.outro(chalk.green('✅ Migration completed!'));
Expand Down

0 comments on commit 543bdaf

Please sign in to comment.