Skip to content

chore: update yeoman-generator to v5 #3421

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 5 commits into from
Sep 26, 2022
Merged

Conversation

snitin315
Copy link
Member

@snitin315 snitin315 commented Sep 24, 2022

What kind of change does this PR introduce?
chore

Did you add tests for your changes?
No.

If relevant, did you update the documentation?
No.

Summary
update yeoman-generator to v5.

Does this PR introduce a breaking change?
No.

Other information
No/

@snitin315 snitin315 requested a review from a team as a code owner September 24, 2022 02:54
@snitin315 snitin315 changed the title chore: update yeoman-generator chore: update yeoman-generator to v5 Sep 24, 2022
@codecov
Copy link

codecov bot commented Sep 24, 2022

Codecov Report

Merging #3421 (11ad91d) into next (f304ab2) will increase coverage by 0.16%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #3421      +/-   ##
==========================================
+ Coverage   91.61%   91.78%   +0.16%     
==========================================
  Files          22       22              
  Lines        1587     1583       -4     
  Branches      447      446       -1     
==========================================
- Hits         1454     1453       -1     
+ Misses        133      130       -3     
Impacted Files Coverage Δ
packages/generators/src/addon-generator.ts 92.98% <100.00%> (+0.25%) ⬆️
packages/generators/src/init-generator.ts 85.29% <100.00%> (-2.21%) ⬇️
packages/generators/src/index.ts 86.36% <0.00%> (+6.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f304ab2...11ad91d. Read the comment docs.

@snitin315 snitin315 marked this pull request as draft September 24, 2022 10:30
Comment on lines -22 to -34
if (!existsSync(this.generationPath)) {
this.cli.logger.log(
`${this.cli.colors.blue(
"ℹ INFO ",
)} supplied generation path doesn't exist, required folders will be created.`,
);
try {
mkdirSync(this.generationPath, { recursive: true });
} catch (error) {
this.cli.logger.error(`Failed to create directory.\n ${error}`);
process.exit(2);
}
}
Copy link
Member Author

@snitin315 snitin315 Sep 24, 2022

Choose a reason for hiding this comment

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

This is now handled by the yeoman-generator itself. I've updated the test cases accordingly.

Comment on lines +9 to +10
// eslint-disable-next-line @typescript-eslint/no-var-requires
Object.assign(Generator.prototype, require("yeoman-generator/lib/actions/install"));
Copy link
Member Author

Choose a reason for hiding this comment

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

Install action is deprecated and is not included by default

Breaking change

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Looks good, please rebase

@webpack-bot
Copy link

@snitin315 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@alexander-akait Please review the new changes.

@snitin315
Copy link
Member Author

Rebased.

@snitin315 snitin315 merged commit 820db8f into next Sep 26, 2022
@snitin315 snitin315 deleted the update-yeoman-generator branch September 26, 2022 10:24
snitin315 added a commit that referenced this pull request Oct 8, 2022
snitin315 added a commit that referenced this pull request Oct 22, 2022
snitin315 added a commit that referenced this pull request Nov 6, 2022
snitin315 added a commit that referenced this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants