Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/major-moles-cut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix(migrate): `npx sv migrate` fails to run
9 changes: 1 addition & 8 deletions packages/cli/commands/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>', 'migration to run')
.argument('[migration]', 'migration to run')
.option('-C, --cwd <path>', '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]);
});
Expand Down
Loading