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

Updating the update cmd to add workspace:* for internal upgrade #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guspedroso
Copy link
Collaborator

@guspedroso guspedroso commented May 5, 2023

  • When upgrading internal dependencies, we are using workspace:* instead of the version specified in the package.json for that dependency
  • We are now throwing an error and educating the user on the usage of the jazelle upgrade if they are not including the dependency in the upgrade command
  • The mismatch version error message now shows the correct usage for the jazelle upgrade command

@CLAassistant
Copy link

CLAassistant commented May 5, 2023

CLA assistant check
All committers have signed the CLA.

@guspedroso guspedroso requested a review from lhorie May 5, 2023 03:50
@@ -17,6 +17,12 @@ const upgrade /*: Upgrade */ = async ({root, args}) => {
const {projects} = await getManifest({root});
const roots = projects.map(dir => `${root}/${dir}`);

if (!args.length) {
throw new Error(
'Command must have at least one dependency name. \nUsage: jazelle upgrade [dependency]\n'
Copy link

Choose a reason for hiding this comment

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

Thanks!

@AlexMSmithCA
Copy link
Collaborator

Discussed briefly during a backlog review meeting. TL;DR- this marries us closer to Yarn, as workspace:* is a Yarn-ism. Not necessarily an issue given Jazelle has been more closely coupled with Yarn over time. Just something to keep in mind.

Otherwise, LGTM!

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.

4 participants