diff --git a/build.sh b/build.sh index 07f9cb0d41..9b45f02815 100755 --- a/build.sh +++ b/build.sh @@ -33,6 +33,11 @@ TSC_PACKAGES=(compiler-cli NODE_PACKAGES=(compiler-cli benchpress) +NG_UPDATE_PACKAGE_GROUP=$( + echo \[\"${PACKAGES[@]}\"] | sed 's/ /", "/g' +) + + BUILD_ALL=true BUNDLE=true VERSION_PREFIX=$(node -p "require('./package.json').version") @@ -491,6 +496,9 @@ do rsync -am --include="package.json" --include="*/" --exclude=* ${SRC_DIR}/ ${NPM_DIR}/ rsync -am --include="*.externs.js" --include="*/" --exclude=* ${SRC_DIR}/ ${NPM_DIR}/ + # Replace the NG_UPDATE_PACKAGE_GROUP value with the JSON array of packages. + perl -p -i -e "s/\"NG_UPDATE_PACKAGE_GROUP\"/${NG_UPDATE_PACKAGE_GROUP}/g" ${NPM_DIR}/package.json < /dev/null 2> /dev/null + cp ${ROOT_DIR}/README.md ${NPM_DIR}/ fi diff --git a/packages/animations/package.json b/packages/animations/package.json index 278211f675..bcbb39c185 100644 --- a/packages/animations/package.json +++ b/packages/animations/package.json @@ -17,5 +17,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/common/package.json b/packages/common/package.json index bac145971e..af7fd8225c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -19,5 +19,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/compiler-cli/package.json b/packages/compiler-cli/package.json index 9fc4537205..4b04290089 100644 --- a/packages/compiler-cli/package.json +++ b/packages/compiler-cli/package.json @@ -34,5 +34,8 @@ "bugs": { "url": "https://github.com/angular/angular/issues" }, - "homepage": "https://github.com/angular/angular/tree/master/packages/compiler-cli" + "homepage": "https://github.com/angular/angular/tree/master/packages/compiler-cli", + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" + } } diff --git a/packages/compiler/package.json b/packages/compiler/package.json index f94e61dcaa..2569fa40d4 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -14,5 +14,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/core/package.json b/packages/core/package.json index 3161a3fedb..2d67e1d883 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,5 +18,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/forms/package.json b/packages/forms/package.json index d81fcefeb0..e81bb32fbb 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json @@ -20,5 +20,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/http/package.json b/packages/http/package.json index 78b2d28a6a..a034886252 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -19,5 +19,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/language-service/package.json b/packages/language-service/package.json index 8776c2d723..27fd0ce4a9 100644 --- a/packages/language-service/package.json +++ b/packages/language-service/package.json @@ -10,5 +10,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/platform-browser-dynamic/package.json b/packages/platform-browser-dynamic/package.json index cba46009cc..9e2facc331 100644 --- a/packages/platform-browser-dynamic/package.json +++ b/packages/platform-browser-dynamic/package.json @@ -20,5 +20,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/platform-browser/package.json b/packages/platform-browser/package.json index 4b3574cb82..1a990e6a21 100644 --- a/packages/platform-browser/package.json +++ b/packages/platform-browser/package.json @@ -18,5 +18,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/platform-server/package.json b/packages/platform-server/package.json index 50d9100062..208965b867 100644 --- a/packages/platform-server/package.json +++ b/packages/platform-server/package.json @@ -24,5 +24,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/platform-webworker-dynamic/package.json b/packages/platform-webworker-dynamic/package.json index 5a10203e7b..6a4f6f0096 100644 --- a/packages/platform-webworker-dynamic/package.json +++ b/packages/platform-webworker-dynamic/package.json @@ -21,5 +21,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/platform-webworker/package.json b/packages/platform-webworker/package.json index e3f8ae9803..e3a3740c50 100644 --- a/packages/platform-webworker/package.json +++ b/packages/platform-webworker/package.json @@ -19,5 +19,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/router/package.json b/packages/router/package.json index 6ec296847c..c2b6f4272c 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -28,5 +28,8 @@ "@angular/common": "0.0.0-PLACEHOLDER", "@angular/platform-browser": "0.0.0-PLACEHOLDER", "rxjs": "^5.5.0" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/service-worker/package.json b/packages/service-worker/package.json index e945daa756..5c33e5de79 100644 --- a/packages/service-worker/package.json +++ b/packages/service-worker/package.json @@ -21,5 +21,8 @@ }, "bin": { "ngsw-config": "./ngsw-config.js" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } } diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 17eabf0591..5e92fad670 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -20,5 +20,8 @@ "repository": { "type": "git", "url": "https://github.com/angular/angular.git" + }, + "ng-update": { + "packageGroup": "NG_UPDATE_PACKAGE_GROUP" } }