Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Use correct package manager for automigrate #20428

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Dec 28, 2022

Issue: #17870

What I did

My previous PR, #19425, introduced a --package-manager option to the CLI, but it missed handling the option in automigrate when run directly (vs as part of init). This fixes it so that running npx sb@next automigrate --package-manager=npm (or the deprecated way, npx sb@next automigrate --use-npm) works correctly.

How to test

We have some unit tests, but they don't cover automigrate() itself. I tested by creating a project, adding storybook, adding eslint and an eslintrc.js file, building the changes here in this branch, copying over the dist file into the project, and running npx storybook@next automigrate --use-npm eslintPlugin

@IanVS IanVS merged commit 4764461 into next Dec 31, 2022
@IanVS IanVS deleted the issue-17870-automigrate-pkg-mgr branch December 31, 2022 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants