Skip to content

feat: use sf-plugins-core #116

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

Merged
merged 2 commits into from
Sep 2, 2021
Merged

feat: use sf-plugins-core #116

merged 2 commits into from
Sep 2, 2021

Conversation

mdonnalley
Copy link
Collaborator

What does this PR do?

Uses new hook interface from sf-plugins-core

What issues does this PR fix or reference?

@W-9811480@

@mdonnalley mdonnalley self-assigned this Aug 30, 2021
deployers = deployers.reduce((x, y) => x.concat(y), [] as Deployer[]);
const hookResults = await SfHook.run(this.config, 'sf:deploy', options);

let deployers = hookResults.successes.map((s) => s.result).reduce((x, y) => x.concat(y), [] as Deployer[]);
Copy link
Contributor

Choose a reason for hiding this comment

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

@mdonnalley can reduce be replaced with flatMap()?

@mdonnalley mdonnalley requested a review from peternhale August 30, 2021 21:15
@mdonnalley mdonnalley merged commit bf81d08 into main Sep 2, 2021
@mdonnalley mdonnalley deleted the mdonnalley/sf-plugins-core branch September 2, 2021 01:35
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