@@ -27,7 +27,7 @@ import type { BuildWatcher } from '../../utils/watcher';
2727import { BuilderState } from './builder-state' ;
2828import type { ExecutionResult } from './execution-result' ;
2929import { normalizeLibraryOptions } from './options' ;
30- import type { BuildActionContext , buildAction } from './pipeline/build-action' ;
30+ import type { BuildActionContext } from './pipeline/build-action' ;
3131import { updateWatchedEntryPoints } from './pipeline/entry-points' ;
3232import { loadPackageJson } from './pipeline/utils' ;
3333import type { Schema as LibraryBuilderOptions } from './schema' ;
@@ -182,7 +182,7 @@ export async function* executeLibraryBuilder(
182182 * @param logger The Architect logger API.
183183 * @param withProgress Progress wrapper function (`withSpinner` or `withNoProgress`).
184184 * @param watcher Optional file watcher for watch mode.
185- * @param buildActionFn The library build action function to execute.
185+ * @param buildAction The library build action function to execute.
186186 * @returns A promise resolving to the Architect `BuilderOutput`.
187187 */
188188async function executeBuild (
@@ -191,13 +191,13 @@ async function executeBuild(
191191 logger : logging . LoggerApi ,
192192 withProgress : typeof withSpinner ,
193193 watcher : BuildWatcher | undefined ,
194- buildActionFn : typeof buildAction ,
194+ buildAction : typeof import ( './pipeline/build-action' ) . buildAction ,
195195) : Promise < BuilderOutput > {
196196 const startTime = process . hrtime . bigint ( ) ;
197197 const { buildState, isWatchMode, options } = actionContext ;
198198
199199 try {
200- const result = await withProgress ( message , ( ) => buildActionFn ( actionContext ) ) ;
200+ const result = await withProgress ( message , ( ) => buildAction ( actionContext ) ) ;
201201 logMessages ( logger , result ) ;
202202
203203 const { output } = result ;
@@ -233,7 +233,7 @@ async function executeBuild(
233233 * @param logger The Architect logger API.
234234 * @param withProgress Progress wrapper function (`withSpinner` or `withNoProgress`).
235235 * @param buildState The state preserved across incremental builds.
236- * @param buildActionFn The library build action function to execute.
236+ * @param buildAction The library build action function to execute.
237237 * @param signal Abort signal to terminate the watch loop.
238238 * @returns An async iterator yielding builder output results.
239239 */
@@ -244,7 +244,7 @@ async function* runWatchLoop(
244244 logger : logging . LoggerApi ,
245245 withProgress : typeof withSpinner ,
246246 buildState : BuilderState ,
247- buildActionFn : typeof buildAction ,
247+ buildAction : typeof import ( './pipeline/build-action' ) . buildAction ,
248248 signal : AbortSignal ,
249249) : AsyncIterableIterator < BuilderOutput > {
250250 const { collectAssetsToEmit } = await import ( './pipeline/assets' ) ;
@@ -336,7 +336,7 @@ async function* runWatchLoop(
336336 logger ,
337337 withProgress ,
338338 watcher ,
339- buildActionFn ,
339+ buildAction ,
340340 ) ;
341341 }
342342}
0 commit comments