Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/schematics/angular/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ function addDependencies(skipInstall: boolean | undefined): Rule {
const install = skipInstall ? InstallBehavior.None : InstallBehavior.Auto;

return chain([
addDependency('@angular/ssr', latestVersions.AngularSSR, {
type: DependencyType.Default,
install,
}),
addDependency('@angular/platform-server', coreDep.version, {
type: DependencyType.Default,
install,
Expand All @@ -154,7 +158,7 @@ function addDependencies(skipInstall: boolean | undefined): Rule {
}

export default function (options: ServerOptions): Rule {
return async (host: Tree, context: SchematicContext) => {
return async (host: Tree) => {
const workspace = await getWorkspace(host);
const clientProject = workspace.projects.get(options.project);
if (clientProject?.extensions.projectType !== 'application') {
Expand Down
4 changes: 0 additions & 4 deletions packages/schematics/angular/ssr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ function addDependencies({ skipInstall }: SSROptions, isUsingApplicationBuilder:
const install = skipInstall ? InstallBehavior.None : InstallBehavior.Auto;

const rules: Rule[] = [
addDependency('@angular/ssr', latestVersions.AngularSSR, {
type: DependencyType.Default,
install,
}),
addDependency('express', latestVersions['express'], {
type: DependencyType.Default,
install,
Expand Down