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): use package manager workspace globs to find projects #9131

Merged
merged 1 commit into from Mar 2, 2022

Conversation

FrozenPandaz
Copy link
Collaborator

Current Behavior

Every single package.json file is used to determine projects for the workspace when workspace.json does not exist.

Expected Behavior

Package manager workspaces glob patterns are used to find projects.

Pnpm is not supported yet.

Related Issue(s)

Fixes #

@nx-cloud
Copy link

nx-cloud bot commented Feb 25, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit 80bc323. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Feb 25, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/5GkuqjWaWRNHgnpHHeMusP44VcXF
✅ Preview: Canceled

[Deployment for 80bc323 canceled]

}

function jsPluginConfig(nxJson: NxJsonConfiguration): NrwlJsPluginConfig {
return nxJson?.pluginsConfig['@nrwl/js'] ?? {};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
return nxJson?.pluginsConfig['@nrwl/js'] ?? {};
return nxJson?.pluginsConfig?.['@nrwl/js'] ?? {};

@@ -784,6 +820,8 @@ export function buildWorkspaceConfigurationFromGlobs(
): WorkspaceJsonConfiguration {
const projects: Record<string, ProjectConfiguration> = {};

console.log({ projectFiles });
Copy link
Member

Choose a reason for hiding this comment

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

Make sure to remove this, or lock it behind NX_VERBOSE_LOGGING one

@FrozenPandaz FrozenPandaz merged commit 5964379 into nrwl:master Mar 2, 2022
@FrozenPandaz FrozenPandaz deleted the pm-workspaces-nodes branch March 2, 2022 21:03
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants