build(common): don't generate tsickle re-export file for locales package (#19135)

PR Close #19135
This commit is contained in:
Olivier Combe 2017-09-11 10:53:35 +02:00 committed by Igor Minar
parent cfd9ca0d6f
commit 6e1896b333
2 changed files with 5 additions and 5 deletions

View File

@ -228,10 +228,12 @@ compilePackage() {
echo "====== [${3}]: COMPILING: ${NGC} -p ${1}/tsconfig-build.json"
local package_name=$(basename "${2}")
$NGC -p ${1}/tsconfig-build.json
if [[ "${package_name}" != "locales" ]]; then
echo "====== Create ${1}/../${package_name}.d.ts re-export file for tsickle"
echo "$(cat ${LICENSE_BANNER}) ${N} export * from './${package_name}/${package_name}'" > ${2}/../${package_name}.d.ts
echo "{\"__symbolic\":\"module\",\"version\":3,\"metadata\":{},\"exports\":[{\"from\":\"./${package_name}/${package_name}\"}],\"flatModuleIndexRedirect\":true}" > ${2}/../${package_name}.metadata.json
fi
fi
for DIR in ${1}/* ; do
[ -d "${DIR}" ] || continue

View File

@ -16,8 +16,6 @@
"exclude": [
"node_modules/@angular/bazel/**",
"node_modules/@angular/compiler-cli/**",
// Workaround bug introduced by 079d884
"node_modules/@angular/common/locales.d.ts",
"node_modules/@angular/common/locales/**",
"node_modules/@angular/tsc-wrapped/**"
]