fix: improve update tool output for Fresh 2 projects (#3754)

## Summary
- Detects whether a project is already on Fresh 2 by checking
`deno.json` imports
- Shows "Updating Fresh to X.Y.Z..." instead of "Starting Fresh 1 to
Fresh 2 migration..." for existing Fresh 2 projects
- Only shows "Breaking changes may require additional manual updates"
warning for actual Fresh 1→2 migrations
- Summary/completion messages adapt accordingly ("Update" vs
"Migration")

Closes #3688

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bartek Iwańczuk
2026-04-09 09:48:38 +02:00
committed by GitHub
co-authored by Claude Opus 4.6
parent fc0ff66b80
commit c0a866d027
2 changed files with 56 additions and 15 deletions
-8
View File
@@ -29,14 +29,6 @@ console.log(colors.bgRgb8(
));
// deno-lint-ignore no-console
console.log();
// deno-lint-ignore no-console
console.log(
colors.italic(
"Note: Breaking changes may require additional manual updates.",
),
);
// deno-lint-ignore no-console
console.log();
let unresolvedDirectory = Deno.args[0];
if (flags._.length !== 1) {