Skip to content

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