diff --git a/packages/cli/snap-tests-global/migration-other-hook-tool/snap.txt b/packages/cli/snap-tests-global/migration-other-hook-tool/snap.txt index 1210230c8a..f1fa202e1a 100644 --- a/packages/cli/snap-tests-global/migration-other-hook-tool/snap.txt +++ b/packages/cli/snap-tests-global/migration-other-hook-tool/snap.txt @@ -1,6 +1,6 @@ > vp migrate --no-interactive # hooks should be skipped due to simple-git-hooks -⚠ Detected simple-git-hooks — skipping git hooks setup. Please configure git hooks manually. +⚠ Detected simple-git-hooks — skipping git hooks setup. Please configure git hooks manually, see https://viteplus.dev/guide/migrate#git-hook-tools ◇ Migrated . to Vite+ • Node pnpm • 1 config update applied diff --git a/packages/cli/src/migration/migrator.ts b/packages/cli/src/migration/migrator.ts index 8e301781e9..ef6e6c94f1 100644 --- a/packages/cli/src/migration/migrator.ts +++ b/packages/cli/src/migration/migrator.ts @@ -5080,7 +5080,7 @@ export function preflightGitHooksSetup( const prodDeps = pkgContent.dependencies as Record | undefined; for (const tool of OTHER_HOOK_TOOLS) { if (deps?.[tool] || prodDeps?.[tool] || pkgContent[tool]) { - return `Detected ${tool} — skipping git hooks setup. Please configure git hooks manually.`; + return `Detected ${tool} — skipping git hooks setup. Please configure git hooks manually, see https://viteplus.dev/guide/migrate#git-hook-tools`; } } const huskyReason = checkUnsupportedHuskyVersion(projectPath, deps, prodDeps, packageManager);