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

Add root package as Nx project #8

Merged
merged 2 commits into from
Mar 4, 2023
Merged

Add root package as Nx project #8

merged 2 commits into from
Mar 4, 2023

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Mar 4, 2023

lerna version does not bump the version of the root package by default. It requires the root package to be listed as an Nx project by declaring it as a workspace in package.json. The root package version needs to be bumped because that is the version used by build-changelog in Jupyter Releaser.

Linked PRs:

@dlqqq dlqqq added the bug Something isn't working label Mar 4, 2023
Comment on lines +24 to 26
"nx": {
"includedScripts": []
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This configuration that tells Nx to not include root package scripts as Nx targets is required to stop root package scripts from causing an infinite loop. For example, yarn build on root calls lerna run build, which calls yarn build on root, etc. Now, lerna run build does not run on the root project because no targets are defined for that project.

@dlqqq dlqqq merged commit 285682d into main Mar 4, 2023
@dlqqq dlqqq deleted the add-root-workspace branch March 4, 2023 16:37
dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
* add package root to workspaces

* configure Nx to not include root scripts as Nx targets
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
* add package root to workspaces

* configure Nx to not include root scripts as Nx targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant