-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular-devkit/core): allow property remove with workspace API
Removal changes were previously being improperly recorded with the wrong parent. A property can now be directly removed by setting the value to undefined or by using the delete operator.
- Loading branch information
1 parent
055d9c3
commit d4bdf2e
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/angular_devkit/core/src/workspace/json/test/cases/ObjectRemove.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": 1, | ||
// Comment | ||
"schematics": { | ||
"@angular/schematics:component": { | ||
"prefix": "abc" | ||
} | ||
}, | ||
"x-foo": { | ||
"is": ["good", "great", "awesome"] | ||
}, | ||
"x-bar": 5, | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/angular_devkit/core/src/workspace/json/test/cases/ObjectRemoveMultiple.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"version": 1, | ||
// Comment | ||
"x-foo": { | ||
"is": ["good", "great", "awesome"] | ||
}, | ||
"x-bar": 5, | ||
} |
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