Skip to content

Conversation

lerouxb
Copy link
Collaborator

@lerouxb lerouxb commented Sep 4, 2023

Found while working on mongodb-js/mongosh#1621. cwd is potentially something quite deep and different from monorepoRoot when running npm run evergreen-release bump and then glob() ends up returning a blank array.

return {
name: packageJson.name,
location: packageJsonPath,
location: path.dirname(packageJsonLocation),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was previously a filename and is now a directory name, just making sure that that is intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Kinda. We only ever used it as a dirname and by the time we return to the outside we just want a path to a directory. Let me clean that up so it is clearer.

@lerouxb lerouxb merged commit aedd3b8 into main Sep 4, 2023
@lerouxb lerouxb deleted the fix-get-packages-in-topological-order branch September 4, 2023 13:13
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