fix(core): bring back setWorkspaceRoot util (#18811)
This commit is contained in:
parent
138ffd6205
commit
a146fcc690
@ -6,6 +6,11 @@ import { fileExists } from './fileutils';
|
||||
*/
|
||||
export let workspaceRoot = workspaceRootInner(process.cwd(), process.cwd());
|
||||
|
||||
// Required for integration tests in projects which depend on Nx at runtime, such as lerna and angular-eslint
|
||||
export function setWorkspaceRoot(root: string): void {
|
||||
workspaceRoot = root;
|
||||
}
|
||||
|
||||
export function workspaceRootInner(
|
||||
dir: string,
|
||||
candidateRoot: string | null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user