Skip to content

Commit

Permalink
codemod upgrade: show link of migration guide after upgrade (#71036)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Oct 9, 2024
1 parent b082e09 commit 01c42a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next-codemod/bin/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ export async function runUpgrade(
await runTransform(codemod, process.cwd(), { force: true })
}

console.log() // new line
if (codemods.length > 0) {
console.log(`${pc.green('✔')} Codemods have been applied successfully.`)
}
console.log(
`\n${pc.green('✔')} Your Next.js project has been upgraded successfully. ${pc.bold('Time to ship! 🚢')}`
`Please review the local changes and read the Next.js 15 migration guide to complete the migration. https://nextjs.org/docs/canary/app/building-your-application/upgrading/version-15`
)
}

Expand Down

0 comments on commit 01c42a8

Please sign in to comment.