File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/@apphosting/adapter-angular/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ export async function checkBuildConditions(opts: BuildOptions): Promise<void> {
9494 logger . warn ( "failed to determine angular builder from the workspace api: " , error ) ;
9595 try {
9696 const root = process . cwd ( ) ;
97- const angularJSON = JSON . parse ( readFileSync ( join ( root , "angular.json" ) ) ) . toString ( ) ;
97+ const angularJSON = JSON . parse ( readFileSync ( join ( root , "angular.json" ) ) . toString ( ) ) ;
9898 const apps : string [ ] = [ ] ;
9999 Object . keys ( angularJSON . projects ) . forEach ( ( projectName ) => {
100100 const project = angularJSON . projects [ projectName ] ;
101101 if ( project [ "projectType" ] === "application" ) apps . push ( projectName ) ;
102102 } ) ;
103103 const project = apps [ 0 ] ;
104- if ( apps . length > 1 || ! project ) throw new Error (
105- "Unable to determine the application to deploy" ) ;
104+ if ( apps . length > 1 || ! project )
105+ throw new Error ( "Unable to determine the application to deploy" ) ;
106106 angularBuilder = angularJSON . projects [ project ] . architect . build . builder ;
107107 } catch ( error ) {
108108 logger . warn ( "failed to determine angular builder from parsing angular.json: " , error ) ;
You can’t perform that action at this time.
0 commit comments