Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(misc): using normalizePath for tailwindcss config generation #13936

Merged
merged 1 commit into from Dec 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/workspace/src/utilities/generate-globs.ts
@@ -1,4 +1,4 @@
import { joinPathFragments, logger } from '@nrwl/devkit';
import { joinPathFragments, logger, normalizePath } from '@nrwl/devkit';
import { workspaceRoot } from 'nx/src/utils/workspace-root';
import { dirname, join, relative, resolve } from 'path';
import { readCachedProjectGraph } from 'nx/src/project-graph/project-graph';
Expand Down Expand Up @@ -30,7 +30,9 @@ export function createGlobPatternsForDependencies(
fileGlobPattern: string
): string[] {
let ig = configureIgnore();
const filenameRelativeToWorkspaceRoot = relative(workspaceRoot, dirPath);
const filenameRelativeToWorkspaceRoot = normalizePath(
relative(workspaceRoot, dirPath)
);
const projectGraph = readCachedProjectGraph();
const projectRootMappings = createProjectRootMappings(projectGraph.nodes);

Expand Down