Skip to content

Commit 1d8ea59

Browse files
committed
fixup! fix(@angular/build): enhance build logs and output location for library builder
1 parent 145bfe8 commit 1d8ea59

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎packages/angular/build/src/builders/library/builder.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,17 @@ export async function* executeLibraryBuilder(
148148
watcher,
149149
buildAction,
150150
);
151+
152+
if (isWatchMode && progress) {
153+
logger.info('Watch mode enabled. Watching for file changes...');
154+
}
155+
151156
yield initialResult;
152157

153158
if (!isWatchMode || !watcher) {
154159
return;
155160
}
156161

157-
if (progress) {
158-
logger.info('Watch mode enabled. Watching for file changes...');
159-
}
160-
161162
yield* runWatchLoop(
162163
watcher,
163164
normalizedOptions,

‎packages/angular/build/src/builders/library/tests/behavior/build_spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describeLibraryBuilder(executeLibraryBuilder, LIBRARY_BUILDER_INFO, (harness) =>
173173
...BASE_OPTIONS,
174174
});
175175

176-
const { result, logs } = await harness.executeOnce();
176+
const { result, logs } = await harness.executeOnce({ outputLogsOnFailure: false });
177177
expect(result?.success).toBeFalse();
178178
expect(logs).toContain(
179179
jasmine.objectContaining({

0 commit comments

Comments
 (0)