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

fix: add convert command #64

Merged
merged 3 commits into from
Apr 7, 2021
Merged

fix: add convert command #64

merged 3 commits into from
Apr 7, 2021

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

adds the source:convert command

What issues does this PR fix or reference?

@W-9091465@

@WillieRuemmele WillieRuemmele requested a review from a team April 6, 2021 21:07
Copy link
Contributor

@shetzel shetzel left a comment

Choose a reason for hiding this comment

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

small change requested

src/commands/force/source/convert.ts Outdated Show resolved Hide resolved

if (this.flags.rootdir) {
path = [this.project.getPackagePath(this.flags.rootdir)];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right. The rootdir can be (and typically is) outside of the project's packageDirectories. If they want to choose a file or directory within the project's packageDirs then they should use the sourcepath param.

We'll need to validate rootdir and use it in conjunction with any other params to match the toolbelt version.

}

const cs = await this.createComponentSet({
sourcepath: asArray<string>(path || this.flags.sourcepath),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to concat the paths. Test with toolbelt to see what it does. I'm not 100% on this usecase.

@shetzel shetzel merged commit 26e36b2 into main Apr 7, 2021
@shetzel shetzel deleted the wr/convert2 branch April 7, 2021 21:00
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.

2 participants