Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 08657f9

Browse files
committed
fix: ng update showing packages that do not exist in my package
By default if no `packageGroupName` is provided `ng-update` will use the first item in `packageGroup` which in this case it is always `@nguniversal/aspnetcore-engine`. With this change we set the `packageGroupName` of each package, also we remove `ng-update` from `@nguniversal/builders` as this gets updated when running `ng update` on `@nguniversal/express-engine` or `@nguniversal/hapi-engine`. Closes #1542 and closes #1533
1 parent db6c9f2 commit 08657f9

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

modules/aspnetcore-engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"tslib": "TSLIB_VERSION"
2727
},
2828
"ng-update": {
29-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
29+
"packageGroup": "NG_UPDATE_PACKAGE_GROUP",
30+
"packageGroupName": "@nguniversal/aspnetcore-engine"
3031
},
3132
"repository": {
3233
"type": "git",

modules/builders/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,5 @@
2121
"rxjs": "RXJS_VERSION",
2222
"tree-kill": "^1.2.1",
2323
"guess-parser": "^0.4.12"
24-
},
25-
"ng-update": {
26-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
2724
}
2825
}

modules/common/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"tslib": "TSLIB_VERSION"
1717
},
1818
"ng-update": {
19-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
19+
"packageGroup": "NG_UPDATE_PACKAGE_GROUP",
20+
"packageGroupName": "@nguniversal/common"
2021
},
2122
"repository": {
2223
"type": "git",

modules/express-engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"schematics": "./schematics/collection.json",
2525
"ng-update": {
2626
"migrations": "./schematics/migrations/migration-collection.json",
27-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
27+
"packageGroup": "NG_UPDATE_PACKAGE_GROUP",
28+
"packageGroupName": "@nguniversal/express-engine"
2829
},
2930
"repository": {
3031
"type": "git",

modules/hapi-engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"schematics": "./schematics/collection.json",
2525
"ng-update": {
2626
"migrations": "./schematics/migrations/migration-collection.json",
27-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
27+
"packageGroup": "NG_UPDATE_PACKAGE_GROUP",
28+
"packageGroupName": "@nguniversal/hapi-engine"
2829
},
2930
"repository": {
3031
"type": "git",

modules/socket-engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"tslib": "TSLIB_VERSION"
1818
},
1919
"ng-update": {
20-
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
20+
"packageGroup": "NG_UPDATE_PACKAGE_GROUP",
21+
"packageGroupName": "@nguniversal/socket-engine"
2122
},
2223
"repository": {
2324
"type": "git",

0 commit comments

Comments
 (0)