Skip to content

Commit

Permalink
fix(core): bring back setWorkspaceRoot util (#18811)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Aug 24, 2023
1 parent 138ffd6 commit a146fcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nx/src/utils/workspace-root.ts
Expand Up @@ -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
Expand Down

1 comment on commit a146fcc

@vercel
Copy link

@vercel vercel bot commented on a146fcc Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx.dev
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.