File tree 2 files changed +8
-9
lines changed
packages/schematics/angular
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,9 @@ export default function (options: E2eOptions): Rule {
119
119
validateProjectName ( options . name ) ;
120
120
121
121
const workspace = getWorkspace ( host ) ;
122
- let newProjectRoot = workspace . newProjectRoot ;
123
- let appDir = `${ newProjectRoot } /${ options . name } ` ;
124
-
125
-
126
- if ( options . projectRoot !== undefined ) {
127
- newProjectRoot = options . projectRoot ;
128
- appDir = newProjectRoot ;
129
- }
122
+ const appDir = options . projectRoot !== undefined
123
+ ? options . projectRoot
124
+ : `${ workspace . newProjectRoot } /${ options . name } ` ;
130
125
131
126
return chain ( [
132
127
addAppToWorkspaceFile ( options , workspace ) ,
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ export interface BrowserBuilderOptions extends BrowserBuilderBaseOptions {
53
53
extractLicenses ?: boolean ;
54
54
vendorChunk ?: boolean ;
55
55
buildOptimizer ?: boolean ;
56
+ budgets ?: {
57
+ type : string ;
58
+ maximumWarning ?: string ;
59
+ maximumError ?: string ;
60
+ } [ ] ;
56
61
}
57
62
58
63
export interface ServeBuilderOptions {
@@ -119,7 +124,6 @@ export interface WorkspaceSchema extends experimental.workspace.WorkspaceSchema
119
124
} ;
120
125
}
121
126
122
- // tslint:disable-next-line:no-any
123
127
export interface WorkspaceProject < TProjectType extends ProjectType = ProjectType . Application >
124
128
extends experimental . workspace . WorkspaceProject {
125
129
/**
You can’t perform that action at this time.
0 commit comments