Skip to content

Commit

Permalink
fix(core): local plugins should work on windows (#13801)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Dec 13, 2022
1 parent a1d9c46 commit 75c34c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/utils/nx-plugin.ts
Expand Up @@ -21,6 +21,7 @@ import {
createProjectRootMappingsFromProjectConfigurations,
findProjectForPath,
} from '../project-graph/utils/find-project-for-path';
import { normalizePath } from './path';

export type ProjectTargetConfigurator = (
file: string
Expand Down Expand Up @@ -195,7 +196,7 @@ function findNxProjectForImportPath(
): string | null {
const tsConfigPaths: Record<string, string[]> = readTsConfigPaths(root);
const possiblePaths = tsConfigPaths[importPath]?.map((p) =>
path.relative(root, path.join(root, p))
normalizePath(path.relative(root, path.join(root, p)))
);
if (possiblePaths?.length) {
const projectRootMappings =
Expand Down

1 comment on commit 75c34c3

@vercel
Copy link

@vercel vercel bot commented on 75c34c3 Dec 13, 2022

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-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.