feat(build): optionally build an ES2015 distro (#13471)

PR Close #13471
This commit is contained in:
Alex Eagle
2017-01-12 17:35:02 -08:00
committed by Miško Hevery
parent f816319e41
commit be6c95ad03
2 changed files with 18 additions and 2 deletions

View File

@ -68,7 +68,11 @@ function publishRepo {
# Publish all individual packages from packages-dist.
function publishPackages {
for dir in dist/packages-dist/*/ dist/tools/@angular/tsc-wrapped
PKGS_DIST=dist/packages-dist
if [[ -n "${EXPERIMENTAL_ES2015_DISTRO}" ]]; then
PKGS_DIST=dist/packages-dist-es2015
fi
for dir in $PKGS_DIST/*/ dist/tools/@angular/tsc-wrapped
do
COMPONENT="$(basename ${dir})"