Feature request: Allow plugin-specific root directory configuration (e.g. jsRoot for @nx/js) #32284
NoamGaash
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Currently, Nx plugins like @nx/js assume the workspace root (where nx.json resides) as the root for all project discovery and operations. This creates friction in polyglot or multi-root monorepos, where different languages or ecosystems (e.g., JS, Java) are organized under their own subdirectories.
Proposal
Add a configuration option to plugins (starting with @nx/js) to specify a root directory for that plugin's operations (e.g.,
jsRoot
). Example configuration in nx.json:When set, the plugin should:
jsRoot
, not the workspace root.jsRoot
by default.Why
Example use case
A monorepo has the following structure:
Developers want
@nx/js
to only operate withinmonorepo-js
, and a Java plugin to operate withinmonorepo-java
.Request
jsRoot
) for @nx/js and consider similar options for other official plugins.Thank you for considering this enhancement!
Beta Was this translation helpful? Give feedback.
All reactions