diff --git a/build.sh b/build.sh index a93bd22e9e..2e5d18c6fd 100755 --- a/build.sh +++ b/build.sh @@ -94,4 +94,8 @@ do modules/\@angular/typings/es6-promise/es6-promise.d.ts rm ${UMDES6PATH} + cat ./modules/@angular/license-banner.txt > ${UMDES5PATH}.tmp + cat ${UMDES5PATH} >> ${UMDES5PATH}.tmp + mv ${UMDES5PATH}.tmp ${UMDES5PATH} + done diff --git a/modules/@angular/license-banner.txt b/modules/@angular/license-banner.txt new file mode 100644 index 0000000000..499492cef0 --- /dev/null +++ b/modules/@angular/license-banner.txt @@ -0,0 +1,5 @@ +/** + * @license AngularJS v$$ANGULAR_VERSION$$ + * (c) 2010-2016 Google, Inc. https://angular.io/ + * License: MIT + */ diff --git a/publish-packages.sh b/publish-packages.sh index fdda247494..0a1c1384e7 100755 --- a/publish-packages.sh +++ b/publish-packages.sh @@ -16,6 +16,7 @@ fi 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" for PACKAGE in \ core \