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

[Feature] Support NX Monorepos #801

Closed
wants to merge 9 commits into from

Conversation

brianespinosa
Copy link
Contributor

@brianespinosa brianespinosa commented May 8, 2022

Resolves #800

WIP. Creating a draft PR for visibility, and for CI. Includes an NX fixture repo and tests. Two expect statements to get green and then add the NX fixture use case to other packages to verify NX works there as well.

I might get a chance to come back and finish this evening.

Adds a fixture for validating if we can discover available NX packages
- Set up initial logic with async getWorkspaces
- Get typings correct for new Tool
- Prepare logic for returning Package types
- Set up test for TDD on adding @nrwl/devkit
@changeset-bot
Copy link

changeset-bot bot commented May 8, 2022

⚠️ No Changeset found

Latest commit: a8fe805

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 8, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a8fe805:

Sandbox Source
Vanilla Configuration

andrejilderda added a commit to andrejilderda/desktop-ui that referenced this pull request May 14, 2022
"nx": "*"
},
"peerDependencies": {
"@nrwl/devkit": "*",
Copy link
Member

Choose a reason for hiding this comment

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

is it always explicitly installed by Nx users? 🤔

@@ -1,16 +1,30 @@
{
"name": "get-workspaces",
"name": "@changesets/get-workspaces",
Copy link
Member

Choose a reason for hiding this comment

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

In general @manypkg/get-packages is also under our control - so any logic that tries to find packages in a given monorepo should be added there. Given this situation I don't think there is any strong reason to create @changesets/get-workspaces

@jericopingul
Copy link

Hello @brianespinosa 👋 just wondering when would we expect for this change to be available?

@sledorze
Copy link

@Andarist any news on this?

@vemundeldegard
Copy link

It would be great to see this come into action. We are currently in the progress of making use of mono-repos and are considering nx. Nx does mention changesets in their documentation for version management, but how they expect this to actually work is not known to me.

@brianespinosa
Copy link
Contributor Author

I am going to go ahead and decline this PR as I think there is a better approach that is more extensible as proposed in #849

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.

[Feature Request] Support NX Monorepos
5 participants