Skip to content

Commit

Permalink
fix(release): ensure default release group has projects on windows (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Sep 16, 2024
1 parent 2546082 commit 581f2fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/nx/src/command-line/release/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { findMatchingProjects } from '../../../utils/find-matching-projects';
import { output } from '../../../utils/output';
import { PackageJson } from '../../../utils/package-json';
import { workspaceRoot } from '../../../utils/workspace-root';
import { normalizePath } from '../../../utils/path';
import { resolveChangelogRenderer } from '../utils/resolve-changelog-renderer';
import { resolveNxJsonConfigErrorMessage } from '../utils/resolve-nx-json-error-message';
import { DEFAULT_CONVENTIONAL_COMMITS_CONFIG } from './conventional-commits';
Expand Down Expand Up @@ -924,7 +925,11 @@ function isProjectPublic(
const projectNode = projectGraph.nodes[project];
const packageJsonPath = join(projectNode.data.root, 'package.json');

if (!projectFileMap[project]?.find((f) => f.file === packageJsonPath)) {
if (
!projectFileMap[project]?.find(
(f) => f.file === normalizePath(packageJsonPath)
)
) {
return false;
}

Expand Down

0 comments on commit 581f2fd

Please sign in to comment.