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

feat(core): export detectProjects utility function #3740

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

fahslaj
Copy link
Contributor

@fahslaj fahslaj commented Jun 21, 2023

Description

Exports the detectProjects() function used by Lerna.

Motivation and Context

This allows external tooling to operate on the same project graph that Lerna does:

const { detectProjects } = require("lerna/utils");
const { projectGraph, projectFileMap } = await detectProjects();

#3721

How Has This Been Tested?

This has been tested manually.

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)
  • Chore (change that has absolutely no effect on users)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nx-cloud
Copy link

nx-cloud bot commented Jun 21, 2023

☁️ Nx Cloud Report

Attention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here.

CI is running/has finished running commands for commit 34e4c13. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 8 targets

Sent with 💌 from NxCloud.

@fahslaj fahslaj force-pushed the chore/expose-project-graph branch from 3c32010 to 34e4c13 Compare June 22, 2023 15:36
@fahslaj fahslaj marked this pull request as ready for review June 22, 2023 15:53
@fahslaj fahslaj requested a review from JamesHenry June 22, 2023 15:54
@fahslaj fahslaj changed the title chore(core): export detectProjects function chore(core): export detectProjects utility function Jun 22, 2023
@JamesHenry JamesHenry changed the title chore(core): export detectProjects utility function feat(core): export detectProjects utility function Jun 25, 2023
@JamesHenry JamesHenry merged commit 641fecb into lerna:main Jun 25, 2023
14 checks passed
@JamesHenry JamesHenry deleted the chore/expose-project-graph branch June 25, 2023 07:41
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.

None yet

2 participants