getMainFilePath util function fails because of hardcoded target name

Open
#26,517 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
build-system, cli

Research direction

Start with the getMainFilePath utility and trace how the add command handles a missing build target in an interactive execution context. Check the existing target lookup and interaction flow; done means non-build target names no longer fail silently and an interactive user can choose the target when build is absent.

Written by the indexing model from the issue text.

Description

area: @schematics/angular freq1: low severity3: broken type: bug/fix
Command

add

Description

I've seen a lot of cases when people are using different name for their build targets, for various reasons. So if the build is not found, the getMainFilePath fails, which is not right in my opinion

Describe the solution you'd like

It should ask interactively which target should be used if build is not found, when interactivity is enabled in the execution context

Describe alternatives you've considered

No response

Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.