Skip to content

Commit

Permalink
fix: replace build by boostrap
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Sep 14, 2024
1 parent 095ae2a commit d714b48
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tooling/build-env/src/executors/bootstrap/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,6 +41,6 @@ export default async function runBootstrapExecutor(

return Promise.resolve({
success: true,
command: 'Bootstraped environemnt successfully.',
command: 'Bootstraped environment successfully.',
} satisfies BootstrapExecutorOutput);
}
19 changes: 11 additions & 8 deletions tooling/build-env/src/executors/setup/executor.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -28,7 +32,7 @@ export default async function runSetupEnvironmentExecutor(
const { options: normalizedOptions } = normalizedContext;

try {
await runBuildExecutor(
await runBootstrapExecutor(
{
...normalizedOptions,
},
Expand Down Expand Up @@ -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);
Expand All @@ -73,9 +81,4 @@ export default async function runSetupEnvironmentExecutor(
command: error,
};
}

return Promise.resolve({
success: true,
command: 'Environment setup complete.',
} satisfies ExecutorOutput);
}

0 comments on commit d714b48

Please sign in to comment.