Skip to content

Conversation

@sjarva
Copy link
Contributor

@sjarva sjarva commented Dec 15, 2022

Description

  • added glob as a dependency in the packages that used globby
  • removed globby as a dependency
  • replaced (mostly async) functions from globby with (sync) function from glob
  • did one modification because globby accepted an array of string as param, but glob accepts only one string as param

Motivation and Context

Closes #2370

How Has This Been Tested?

I ran all of the tests with the yarn test command. I'm not sure does this change needs new tests, but if so, I'm happy to add them.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
{cwd, ignore: ['**/node_modules/**']}
).then((pJsons = []) => {
return pJsons.map((pJson) => require(Path.join(cwd, pJson)));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the part that needed some more modification - glob does not accept an array of strings, I decided to loop over the workspaces array. The flapMap is needed because glob.sync returns an array.

Copy link
Member

Choose a reason for hiding this comment

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

Tbh I rely on the tests here. If all tests still pass we should be able to expect we're good.

Copy link
Member

@escapedcat escapedcat left a comment

Choose a reason for hiding this comment

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

Awesome @sjarva , thanks a lot!

{cwd, ignore: ['**/node_modules/**']}
).then((pJsons = []) => {
return pJsons.map((pJson) => require(Path.join(cwd, pJson)));

Copy link
Member

Choose a reason for hiding this comment

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

Tbh I rely on the tests here. If all tests still pass we should be able to expect we're good.

@escapedcat escapedcat merged commit 33e4f4e into conventional-changelog:master Dec 15, 2022
@sjarva sjarva deleted the chore/change-globby-to-glob branch December 15, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants