build(common): don't generate tsickle re-export file for locales package (#19135)
PR Close #19135
This commit is contained in:
parent
cfd9ca0d6f
commit
6e1896b333
8
build.sh
8
build.sh
|
@ -228,9 +228,11 @@ compilePackage() {
|
||||||
echo "====== [${3}]: COMPILING: ${NGC} -p ${1}/tsconfig-build.json"
|
echo "====== [${3}]: COMPILING: ${NGC} -p ${1}/tsconfig-build.json"
|
||||||
local package_name=$(basename "${2}")
|
local package_name=$(basename "${2}")
|
||||||
$NGC -p ${1}/tsconfig-build.json
|
$NGC -p ${1}/tsconfig-build.json
|
||||||
echo "====== Create ${1}/../${package_name}.d.ts re-export file for tsickle"
|
if [[ "${package_name}" != "locales" ]]; then
|
||||||
echo "$(cat ${LICENSE_BANNER}) ${N} export * from './${package_name}/${package_name}'" > ${2}/../${package_name}.d.ts
|
echo "====== Create ${1}/../${package_name}.d.ts re-export file for tsickle"
|
||||||
echo "{\"__symbolic\":\"module\",\"version\":3,\"metadata\":{},\"exports\":[{\"from\":\"./${package_name}/${package_name}\"}],\"flatModuleIndexRedirect\":true}" > ${2}/../${package_name}.metadata.json
|
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
|
fi
|
||||||
|
|
||||||
for DIR in ${1}/* ; do
|
for DIR in ${1}/* ; do
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules/@angular/bazel/**",
|
"node_modules/@angular/bazel/**",
|
||||||
"node_modules/@angular/compiler-cli/**",
|
"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/common/locales/**",
|
||||||
"node_modules/@angular/tsc-wrapped/**"
|
"node_modules/@angular/tsc-wrapped/**"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue