Support a property to disable extending targetDefault when configuring Nx targets #22630
MJez29
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
-
Motivation
I recently merged a standalone repo into a monorepo. In the monorepo there is a number of standardized targets (ex.
lint
) which are defined innx.json
with standardized inputs, outputs and caching. Prior to moving the standalone repo into the monorepo I migrated it onto Nx and created targets that usednx:run-commands
and copied the commands from the scripts in the package.json.When I merged the standalone repo into the monorepo I began experiencing caching issues because the inputs and outputs of the
lint
targetDefault were unintentionally applying to the standalone repo'slint
target. This was undesired behaviour because that specific target was not compatible with the defaults and there is no easy way to opt outSuggestion
I am suggesting a
noTargetDefaults
property configurable on a target to disable inheriting target defaults on the targetBeta Was this translation helpful? Give feedback.
All reactions