build(docs-infra): fixed i18n broken stackblitz example (#42001)

This commit fixes the broken stackblitz example of i18n.

Closes #41838.

PR Close #42001
This commit is contained in:
iRealNirmal 2021-05-08 14:21:21 +05:30 committed by Alex Rickabaugh
parent 8e232e6d88
commit e071e3b507
4 changed files with 7 additions and 4 deletions

View File

@ -8,5 +8,6 @@
"**/*.xlf"
],
"file": "src/app/app.component.ts",
"tags": ["Angular", "i18n", "internationalization"]
"tags": ["Angular", "i18n", "internationalization"],
"devDependencies": ["@angular/compiler-cli", "typescript"]
}

View File

@ -19,5 +19,6 @@
"src/**/*.spec.ts"
],
"main": "src/index-specs.html",
"tags": ["testing"]
"tags": ["testing"],
"devDependencies": ["jasmine-core", "jasmine-marbles"]
}

View File

@ -14,5 +14,6 @@
"!src/**/*.spec.ts"
],
"tags": ["testing"]
"tags": ["testing"],
"devDependencies": ["jasmine-core", "jasmine-marbles"]
}

View File

@ -48,7 +48,7 @@ class StackblitzBuilder {
// Add unit test packages from devDependencies for unit test examples
const devDependencies = packageJson.devDependencies;
['jasmine-core', 'jasmine-marbles'].forEach(dep => exampleDependencies[dep] = devDependencies[dep]);
(config.devDependencies || []).forEach(dep => exampleDependencies[dep] = devDependencies[dep]);
postData.dependencies = JSON.stringify(exampleDependencies);
}