diff --git a/tooling/build-env/src/executors/bootstrap/executor.ts b/tooling/build-env/src/executors/bootstrap/executor.ts index 1e4be584..a9ac5b14 100644 --- a/tooling/build-env/src/executors/bootstrap/executor.ts +++ b/tooling/build-env/src/executors/bootstrap/executor.ts @@ -18,7 +18,7 @@ export default async function runBootstrapExecutor( options ); logger.info( - `Execute @org/build-env:build with options: ${JSON.stringify( + `Execute @org/build-env:bootstrap with options: ${JSON.stringify( options, null, 2 @@ -41,6 +41,6 @@ export default async function runBootstrapExecutor( return Promise.resolve({ success: true, - command: 'Bootstraped environemnt successfully.', + command: 'Bootstraped environment successfully.', } satisfies BootstrapExecutorOutput); } diff --git a/tooling/build-env/src/executors/setup/executor.ts b/tooling/build-env/src/executors/setup/executor.ts index 615331ee..2b336530 100644 --- a/tooling/build-env/src/executors/setup/executor.ts +++ b/tooling/build-env/src/executors/setup/executor.ts @@ -1,6 +1,10 @@ -import { type ExecutorContext, logger, readJsonFile } from '@nx/devkit'; +import { + type ExecutorContext, + logger, + readJsonFile, +} from '@nx/devkit'; import { join } from 'node:path'; -import runBuildExecutor from '../bootstrap/executor'; +import runBootstrapExecutor from '../bootstrap/executor'; import runKillProcessExecutor from '../kill-process/executor'; import { executeProcess } from '../../internal/utils/execute-process'; import { objectToCliArgs } from '../../internal/utils/terminal'; @@ -28,7 +32,7 @@ export default async function runSetupEnvironmentExecutor( const { options: normalizedOptions } = normalizedContext; try { - await runBuildExecutor( + await runBootstrapExecutor( { ...normalizedOptions, }, @@ -65,6 +69,10 @@ export default async function runSetupEnvironmentExecutor( ); logger.info(`Verdaccio server kept running under : ${url}`); } + return { + success: true, + command: 'Environment setup complete.', + } satisfies ExecutorOutput; } catch (error) { // nx build-env cli-e2e logger.error(error); @@ -73,9 +81,4 @@ export default async function runSetupEnvironmentExecutor( command: error, }; } - - return Promise.resolve({ - success: true, - command: 'Environment setup complete.', - } satisfies ExecutorOutput); }