build(common): don't generate .d.ts & .metadata.json files for i18n locales

Fixes #20880
This commit is contained in:
Olivier Combe 2017-12-11 15:41:43 +01:00 committed by Alex Rickabaugh
parent 6d57cb04f6
commit cbe7e39bbe
2 changed files with 4 additions and 3 deletions

View File

@ -476,7 +476,7 @@ do
if [[ ${PACKAGE} == "common" ]]; then if [[ ${PACKAGE} == "common" ]]; then
echo "====== Copy i18n locale data" echo "====== Copy i18n locale data"
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/locales/ ${NPM_DIR}/locales rsync -a ${OUT_DIR}/locales/ ${NPM_DIR}/locales
fi fi
else else
echo "====== Copy ${PACKAGE} node tool" echo "====== Copy ${PACKAGE} node tool"

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"declaration": true, "declaration": false,
"stripInternal": true, "stripInternal": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"module": "es2015", "module": "es2015",
@ -21,6 +21,7 @@
"./closure-locale.ts" "./closure-locale.ts"
], ],
"angularCompilerOptions": { "angularCompilerOptions": {
"skipTemplateCodegen": true "skipTemplateCodegen": true,
"skipMetadataEmit": true
} }
} }