From 10a1842b2616e574e436f1f1019d0223aba0b77d Mon Sep 17 00:00:00 2001 From: Manuel Serret Date: Sat, 23 Aug 2025 15:50:22 +0200 Subject: [PATCH] fix(migrate): `npx sv migrate` fails to run --- .changeset/major-moles-cut.md | 5 +++++ packages/cli/commands/migrate.ts | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 .changeset/major-moles-cut.md diff --git a/.changeset/major-moles-cut.md b/.changeset/major-moles-cut.md new file mode 100644 index 00000000..c4b35d0a --- /dev/null +++ b/.changeset/major-moles-cut.md @@ -0,0 +1,5 @@ +--- +'sv': patch +--- + +fix(migrate): `npx sv migrate` fails to run diff --git a/packages/cli/commands/migrate.ts b/packages/cli/commands/migrate.ts index abb684b9..17df3604 100644 --- a/packages/cli/commands/migrate.ts +++ b/packages/cli/commands/migrate.ts @@ -7,15 +7,8 @@ import { forwardExitCode } from '../utils/common.js'; export const migrate = new Command('migrate') .description('a CLI for migrating Svelte(Kit) codebases') - .argument('', 'migration to run') + .argument('[migration]', 'migration to run') .option('-C, --cwd ', 'path to working directory', process.cwd()) - .configureHelp({ - formatHelp() { - // we'll pass the responsibility of presenting the help menu over to `svelte-migrate` - runMigrate(process.cwd(), ['--help']); - return ''; - } - }) .action((migration, options) => { runMigrate(options.cwd, [migration]); });