mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
The E2E schematic will now (as it did previously) skip adding dependencies if they already exist within the `package.json` regardless of the specifier. This is accomplished with the `existing` option for the `addDependency` rule which allows defining the behavior for when a dependency already exists. Currently the two option behaviors are skip and replace with replace being the default to retain behavior for existing rule usages.
22 lines
614 B
TypeScript
22 lines
614 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
// Workspace related rules and types
|
|
export {
|
|
ProjectDefinition,
|
|
TargetDefinition,
|
|
WorkspaceDefinition,
|
|
getWorkspace as readWorkspace,
|
|
updateWorkspace,
|
|
writeWorkspace,
|
|
} from './workspace';
|
|
export { Builders as AngularBuilder } from './workspace-models';
|
|
|
|
// Package dependency related rules and types
|
|
export { DependencyType, ExistingBehavior, InstallBehavior, addDependency } from './dependency';
|