Skip to content

Commit 476a68d

Browse files
committed
fix(@angular-devkit/build-angular): add output location in build stats
This can be used by users to determine where the output path is located without needing to read the angular.json.
1 parent 7c522aa commit 476a68d

File tree

1 file changed

+9
-2
lines changed
  • packages/angular_devkit/build_angular/src/builders/application

1 file changed

+9
-2
lines changed

packages/angular_devkit/build_angular/src/builders/application/index.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,15 @@ export async function* buildApplicationInternal(
8787
const result = await executeBuild(normalizedOptions, context, rebuildState);
8888

8989
const buildTime = Number(process.hrtime.bigint() - startTime) / 10 ** 9;
90-
const status = result.errors.length > 0 ? 'failed' : 'complete';
91-
logger.info(`Application bundle generation ${status}. [${buildTime.toFixed(3)} seconds]`);
90+
const hasError = result.errors.length > 0;
91+
92+
if (writeToFileSystem && !hasError) {
93+
logger.info(`Output location: ${normalizedOptions.outputOptions.base}\n`);
94+
}
95+
96+
logger.info(
97+
`Application bundle generation ${hasError ? 'failed' : 'complete'}. [${buildTime.toFixed(3)} seconds]`,
98+
);
9299

93100
return result;
94101
},

0 commit comments

Comments
 (0)