fix(core): list files from the tree in the ngcli-adapter #5860
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current Behavior
In certain scenarios, when a generator runs a schematic from
@schematics/angular
using thewrapAngularDevkitSchematic
utility, it fails with the errorUnable to determine format for workspace path
. This happens when those schematics read the workspace config because there is a check which only lists files from the recorded changes made during the wrapped schematic execution and from the filesystem. Any changes made by the parent generator or empty tree in tests are not going to be picked as recorded changes, since they were not done in the scope of the wrapped schematic execution.Expected Behavior
Running a schematic from
@schematics/angular
should run successfully and pick files from the existing Nx DevKit Tree.Related Issue(s)
Fixes #