From c6064a30a11703f9067cbf4830f5ef5928b498d2 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 27 May 2016 16:17:16 -0700 Subject: [PATCH] chore(package.json): make the packages installable --- modules/@angular/common/package.json | 4 ++-- modules/@angular/compiler/package.json | 4 ++-- modules/@angular/compiler_cli/package.json | 8 ++++---- modules/@angular/core/package.json | 2 +- modules/@angular/http/package.json | 4 ++-- modules/@angular/license-banner.txt | 2 +- .../@angular/platform-browser-dynamic/package.json | 12 ++++++------ modules/@angular/platform-browser/package.json | 8 ++++---- modules/@angular/platform-server/package.json | 10 +++++----- modules/@angular/router-deprecated/package.json | 8 ++++---- modules/@angular/router/package.json | 8 ++++---- modules/@angular/upgrade/package.json | 8 ++++---- publish-packages.sh | 6 +++--- 13 files changed, 42 insertions(+), 42 deletions(-) diff --git a/modules/@angular/common/package.json b/modules/@angular/common/package.json index 0c6093bcb5..4f6eea2566 100644 --- a/modules/@angular/common/package.json +++ b/modules/@angular/common/package.json @@ -1,6 +1,6 @@ { "name": "@angular/common", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,7 +8,7 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/compiler/package.json b/modules/@angular/compiler/package.json index d44df70a0b..3c5e0d7c29 100644 --- a/modules/@angular/compiler/package.json +++ b/modules/@angular/compiler/package.json @@ -1,6 +1,6 @@ { "name": "@angular/compiler", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,7 +8,7 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/compiler_cli/package.json b/modules/@angular/compiler_cli/package.json index fb99a9b57d..b0a6f6db20 100644 --- a/modules/@angular/compiler_cli/package.json +++ b/modules/@angular/compiler_cli/package.json @@ -1,6 +1,6 @@ { "name": "@angular/compiler-cli", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "Execute angular2 template compiler in nodejs.", "main": "index.js", "typings": "index.d.ts", @@ -14,9 +14,9 @@ }, "peerDependencies": { "typescript": "^1.9.0-dev", - "@angular/compiler": "$$ANGULAR_VERSION$$", - "@angular/platform-server": "$$ANGULAR_VERSION$$", - "@angular/core": "$$ANGULAR_VERSION$$" + "@angular/compiler": "0.0.0-PLACEHOLDER", + "@angular/platform-server": "0.0.0-PLACEHOLDER", + "@angular/core": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/core/package.json b/modules/@angular/core/package.json index 286e863b15..d3fe5eb827 100644 --- a/modules/@angular/core/package.json +++ b/modules/@angular/core/package.json @@ -1,6 +1,6 @@ { "name": "@angular/core", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", diff --git a/modules/@angular/http/package.json b/modules/@angular/http/package.json index 2be7f03213..d849333b0c 100644 --- a/modules/@angular/http/package.json +++ b/modules/@angular/http/package.json @@ -1,6 +1,6 @@ { "name": "@angular/http", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -9,7 +9,7 @@ "license": "MIT", "peerDependencies": { "rxjs": "5.0.0-beta.6", - "@angular/core": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/license-banner.txt b/modules/@angular/license-banner.txt index 499492cef0..962b002753 100644 --- a/modules/@angular/license-banner.txt +++ b/modules/@angular/license-banner.txt @@ -1,5 +1,5 @@ /** - * @license AngularJS v$$ANGULAR_VERSION$$ + * @license AngularJS v0.0.0-PLACEHOLDER * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */ diff --git a/modules/@angular/platform-browser-dynamic/package.json b/modules/@angular/platform-browser-dynamic/package.json index 2c1f170472..553cbbd879 100644 --- a/modules/@angular/platform-browser-dynamic/package.json +++ b/modules/@angular/platform-browser-dynamic/package.json @@ -1,6 +1,6 @@ { "name": "@angular/platform-browser-dynamic", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,9 +8,9 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/common": "$$ANGULAR_VERSION$$", - "@angular/compiler": "$$ANGULAR_VERSION$$", - "@angular/platform-browser": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/common": "0.0.0-PLACEHOLDER", + "@angular/compiler": "0.0.0-PLACEHOLDER", + "@angular/platform-browser": "0.0.0-PLACEHOLDER" } -} \ No newline at end of file +} diff --git a/modules/@angular/platform-browser/package.json b/modules/@angular/platform-browser/package.json index a61980c926..8c1089917d 100644 --- a/modules/@angular/platform-browser/package.json +++ b/modules/@angular/platform-browser/package.json @@ -1,6 +1,6 @@ { "name": "@angular/platform-browser", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,9 +8,9 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/common": "$$ANGULAR_VERSION$$", - "@angular/compiler": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/common": "0.0.0-PLACEHOLDER", + "@angular/compiler": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/platform-server/package.json b/modules/@angular/platform-server/package.json index 5893017068..2e0d830f2d 100644 --- a/modules/@angular/platform-server/package.json +++ b/modules/@angular/platform-server/package.json @@ -1,6 +1,6 @@ { "name": "@angular/platform-server", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,10 +8,10 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/common": "$$ANGULAR_VERSION$$", - "@angular/compiler": "$$ANGULAR_VERSION$$", - "@angular/platform-browser": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/common": "0.0.0-PLACEHOLDER", + "@angular/compiler": "0.0.0-PLACEHOLDER", + "@angular/platform-browser": "0.0.0-PLACEHOLDER" }, "dependencies": { "parse5": "1.3.2" diff --git a/modules/@angular/router-deprecated/package.json b/modules/@angular/router-deprecated/package.json index 24eacb8d96..634a4f0bce 100644 --- a/modules/@angular/router-deprecated/package.json +++ b/modules/@angular/router-deprecated/package.json @@ -1,6 +1,6 @@ { "name": "@angular/router-deprecated", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,9 +8,9 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/common": "$$ANGULAR_VERSION$$", - "@angular/platform-browser": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/common": "0.0.0-PLACEHOLDER", + "@angular/platform-browser": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/router/package.json b/modules/@angular/router/package.json index 76efbf7ec7..1c43c001d5 100644 --- a/modules/@angular/router/package.json +++ b/modules/@angular/router/package.json @@ -1,6 +1,6 @@ { "name": "@angular/router", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "index.js", "jsnext:main": "esm/index.js", @@ -8,9 +8,9 @@ "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/common": "$$ANGULAR_VERSION$$", - "@angular/platform-browser": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/common": "0.0.0-PLACEHOLDER", + "@angular/platform-browser": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/modules/@angular/upgrade/package.json b/modules/@angular/upgrade/package.json index 33a5e8b5b7..a14b2594c3 100644 --- a/modules/@angular/upgrade/package.json +++ b/modules/@angular/upgrade/package.json @@ -1,15 +1,15 @@ { "name": "@angular/upgrade", - "version": "$$ANGULAR_VERSION$$", + "version": "0.0.0-PLACEHOLDER", "description": "", "main": "upgrade.js", "jsnext:main": "esm/upgrade.js", "author": "angular", "license": "MIT", "peerDependencies": { - "@angular/core": "$$ANGULAR_VERSION$$", - "@angular/compiler": "$$ANGULAR_VERSION$$", - "@angular/platform-browser": "$$ANGULAR_VERSION$$" + "@angular/core": "0.0.0-PLACEHOLDER", + "@angular/compiler": "0.0.0-PLACEHOLDER", + "@angular/platform-browser": "0.0.0-PLACEHOLDER" }, "repository": { "type": "git", diff --git a/publish-packages.sh b/publish-packages.sh index 59a9c11251..c17e3654fb 100755 --- a/publish-packages.sh +++ b/publish-packages.sh @@ -14,9 +14,9 @@ fi ./build.sh -echo "====== RENAMING \$\$ANGULAR_VERSION\$\$ to 0.0.0-${VERSION} ======" -find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g" -find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/2.0.0-rc.${VERSION}/g" +echo "====== RENAMING 0.0.0-PLACEHOLDER to 2.0.0-rc.${VERSION} ======" +find ./dist/packages-dist/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/2.0.0-rc.${VERSION}/g" +find ./dist/packages-dist/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/2.0.0-rc.${VERSION}/g" for PACKAGE in \ core \