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

feat: implement interactive version command #377

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

barak007
Copy link

@barak007 barak007 commented Jan 12, 2022

This PR will add a version command to pleb. This command with upgrade all packages in a workspace and aims to replace lerna version with support for npm@8

  • decide on cli interface (skip interactive?, arguments)
  • cli for selecting version per package
    • UX
  • upgrade command with the entire flow
    • UX
  • handle ignoredPackages
  • host context for the external cli action taken by the upgrade command
  • tests

}
} else if (key.name === 'return') {
const versionMap = packages.reduce<Record<string, string>>((acc, { displayName }, i) => {
acc[displayName] = possibleVersions[i]![selected[i]!]!.version;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only take version that are not the current (0 index)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant