({ skipInstall }: SSROptions, isUsingApplicationBuilder: boolean)
| 307 | } |
| 308 | |
| 309 | function addDependencies({ skipInstall }: SSROptions, isUsingApplicationBuilder: boolean): Rule { |
| 310 | const install = skipInstall ? InstallBehavior.None : InstallBehavior.Auto; |
| 311 | |
| 312 | const rules: Rule[] = [ |
| 313 | addDependency('express', latestVersions['express'], { |
| 314 | type: DependencyType.Default, |
| 315 | install, |
| 316 | existing: ExistingBehavior.Replace, |
| 317 | }), |
| 318 | addDependency('@types/express', latestVersions['@types/express'], { |
| 319 | type: DependencyType.Dev, |
| 320 | install, |
| 321 | existing: ExistingBehavior.Replace, |
| 322 | }), |
| 323 | ]; |
| 324 | |
| 325 | if (!isUsingApplicationBuilder) { |
| 326 | rules.push( |
| 327 | addDependency('browser-sync', latestVersions['browser-sync'], { |
| 328 | type: DependencyType.Dev, |
| 329 | install, |
| 330 | }), |
| 331 | ); |
| 332 | } |
| 333 | |
| 334 | return chain(rules); |
| 335 | } |
| 336 | |
| 337 | function addServerFile( |
| 338 | projectSourceRoot: string, |
no test coverage detected