Skip to content

Commit cbe7e39

Browse files
ocombealxhub
authored andcommitted
build(common): don't generate .d.ts & .metadata.json files for i18n locales
Fixes angular#20880
1 parent 6d57cb0 commit cbe7e39

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ do
476476

477477
if [[ ${PACKAGE} == "common" ]]; then
478478
echo "====== Copy i18n locale data"
479-
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/locales/ ${NPM_DIR}/locales
479+
rsync -a ${OUT_DIR}/locales/ ${NPM_DIR}/locales
480480
fi
481481
else
482482
echo "====== Copy ${PACKAGE} node tool"

packages/common/locales/tsconfig-build.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4-
"declaration": true,
4+
"declaration": false,
55
"stripInternal": true,
66
"experimentalDecorators": true,
77
"module": "es2015",
@@ -21,6 +21,7 @@
2121
"./closure-locale.ts"
2222
],
2323
"angularCompilerOptions": {
24-
"skipTemplateCodegen": true
24+
"skipTemplateCodegen": true,
25+
"skipMetadataEmit": true
2526
}
2627
}

0 commit comments

Comments
 (0)