fix(misc): calculate cwd relative path correctly for generators and executors (#18933)
This commit is contained in:
parent
0fa0c4ba35
commit
ace8f8cf97
@ -57,6 +57,6 @@ export function readTargetOptions<T = any>(
|
|||||||
targetConfiguration,
|
targetConfiguration,
|
||||||
schema,
|
schema,
|
||||||
defaultProject,
|
defaultProject,
|
||||||
relative(context.cwd, context.root)
|
relative(context.root, context.cwd)
|
||||||
) as T;
|
) as T;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -364,7 +364,7 @@ export async function generate(cwd: string, args: { [k: string]: any }) {
|
|||||||
projectsConfigurations,
|
projectsConfigurations,
|
||||||
nxJsonConfiguration
|
nxJsonConfiguration
|
||||||
),
|
),
|
||||||
relative(cwd, workspaceRoot),
|
relative(workspaceRoot, cwd),
|
||||||
verbose
|
verbose
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -150,7 +150,7 @@ async function runExecutorInternal<T extends { success: boolean }>(
|
|||||||
targetConfig,
|
targetConfig,
|
||||||
schema,
|
schema,
|
||||||
project,
|
project,
|
||||||
relative(cwd, root),
|
relative(root, cwd),
|
||||||
isVerbose
|
isVerbose
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user