add "optional" flag to plugin configuration #23140
Closed
janschab
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
Added a sample solution that introduces the 'optional' flag to plugin configuration in nx. Feel free to test it out and share your thoughts! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @janschab Thanks for the feature suggestion. I don't think |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, to build the application, the presence of packages for plugins defined in nx.json > plugins is required. Not all plugins are necessary for building the project, such as eslint or jest. When I omit devDependencies (among which are packages of these plugins) during installation, nx cannot build the graph. I don't want to add these packages as regular dependencies because they are not needed to build the application.
I propose adding an 'optional' flag to the plugin configuration so that nx can continue building without throwing an error in case packages for such marked plugins are missing.
Beta Was this translation helpful? Give feedback.
All reactions