Skip to content

Commit 6d12f6c

Browse files
author
John Doe
committed
refactor: wip
1 parent a58cfee commit 6d12f6c

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

packages/nx-plugin/src/executors/cli/executor.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '../internal/cli.js';
77
import { normalizeContext } from '../internal/context.js';
88
import type { AutorunCommandExecutorOptions } from './schema.js';
9-
import { mergeExecutorOptions, parseAutorunExecutorOptions } from './utils.js';
9+
import { parseAutorunExecutorOptions } from './utils.js';
1010

1111
export type ExecutorOutput = {
1212
success: boolean;
@@ -19,15 +19,11 @@ export default async function runAutorunExecutor(
1919
context: ExecutorContext,
2020
): Promise<ExecutorOutput> {
2121
const normalizedContext = normalizeContext(context);
22-
const mergedOptions = mergeExecutorOptions(
23-
context.target?.options,
24-
terminalAndExecutorOptions,
25-
);
2622
const cliArgumentObject = parseAutorunExecutorOptions(
27-
mergedOptions,
23+
terminalAndExecutorOptions,
2824
normalizedContext,
2925
);
30-
const { dryRun, verbose, command, bin } = mergedOptions;
26+
const { dryRun, verbose, command, bin } = terminalAndExecutorOptions;
3127
const commandString = createCliCommandString({
3228
command,
3329
args: cliArgumentObject,

packages/nx-plugin/src/executors/cli/utils.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('parseAutorunExecutorOptions', () => {
107107
);
108108

109109
expect(osAgnosticPath(executorOptions.persist?.outputDir ?? '')).toBe(
110-
osAgnosticPath('{projectRoot}/.code-pushup'),
110+
osAgnosticPath('workspaceRoot/.code-pushup/my-app'),
111111
);
112112
});
113113

0 commit comments

Comments
 (0)