diff --git a/aio/content/examples/i18n/stackblitz.json b/aio/content/examples/i18n/stackblitz.json index 8326f3902b..d00974aa1d 100644 --- a/aio/content/examples/i18n/stackblitz.json +++ b/aio/content/examples/i18n/stackblitz.json @@ -8,5 +8,6 @@ "**/*.xlf" ], "file": "src/app/app.component.ts", - "tags": ["Angular", "i18n", "internationalization"] + "tags": ["Angular", "i18n", "internationalization"], + "devDependencies": ["@angular/compiler-cli", "typescript"] } diff --git a/aio/content/examples/testing/specs.stackblitz.json b/aio/content/examples/testing/specs.stackblitz.json index adba3c62bf..33ccc83047 100644 --- a/aio/content/examples/testing/specs.stackblitz.json +++ b/aio/content/examples/testing/specs.stackblitz.json @@ -19,5 +19,6 @@ "src/**/*.spec.ts" ], "main": "src/index-specs.html", - "tags": ["testing"] + "tags": ["testing"], + "devDependencies": ["jasmine-core", "jasmine-marbles"] } diff --git a/aio/content/examples/testing/stackblitz.json b/aio/content/examples/testing/stackblitz.json index 5575ff8511..3264b6dd99 100644 --- a/aio/content/examples/testing/stackblitz.json +++ b/aio/content/examples/testing/stackblitz.json @@ -14,5 +14,6 @@ "!src/**/*.spec.ts" ], - "tags": ["testing"] + "tags": ["testing"], + "devDependencies": ["jasmine-core", "jasmine-marbles"] } diff --git a/aio/tools/stackblitz-builder/builder.js b/aio/tools/stackblitz-builder/builder.js index d24a559ce8..78d937807f 100644 --- a/aio/tools/stackblitz-builder/builder.js +++ b/aio/tools/stackblitz-builder/builder.js @@ -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); }