-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): update package script logic to handle cli tool name as com…
…mand (#29617) ## Current Behavior When we have an inferred target command that matches the entry point of the cli tool, there is a chance we do not replace package scripts correctly e.g. ``` { "dev": "vite", "build": "tsc -b && vite build", "preview": "vite preview" } ``` this could result in package scripts being updated to ``` { "dev": "nx dev", "build": "tsc -b && nx vite:build", "preview": "nx dev preview" } ``` ## Expected Behavior We should update the package scripts correctly to match the desired inferred target ``` { "preview": "nx preview" } ```
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters