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,
|
||||
schema,
|
||||
defaultProject,
|
||||
relative(context.cwd, context.root)
|
||||
relative(context.root, context.cwd)
|
||||
) as T;
|
||||
}
|
||||
|
||||
@ -364,7 +364,7 @@ export async function generate(cwd: string, args: { [k: string]: any }) {
|
||||
projectsConfigurations,
|
||||
nxJsonConfiguration
|
||||
),
|
||||
relative(cwd, workspaceRoot),
|
||||
relative(workspaceRoot, cwd),
|
||||
verbose
|
||||
);
|
||||
|
||||
|
||||
@ -150,7 +150,7 @@ async function runExecutorInternal<T extends { success: boolean }>(
|
||||
targetConfig,
|
||||
schema,
|
||||
project,
|
||||
relative(cwd, root),
|
||||
relative(root, cwd),
|
||||
isVerbose
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user