Skip to content

fix(config-nx-scopes): restore compatibility with nx 17.2.0 and higher#3855

Merged
escapedcat merged 1 commit intoconventional-changelog:masterfrom
mattlewis92:nx-17.2-compat
Jan 17, 2024
Merged

fix(config-nx-scopes): restore compatibility with nx 17.2.0 and higher#3855
escapedcat merged 1 commit intoconventional-changelog:masterfrom
mattlewis92:nx-17.2-compat

Conversation

@mattlewis92
Copy link
Copy Markdown
Contributor

Description

Updates logic to get nx projects list to use nx helper that works with newer nx versions

Fixes #3820

Motivation and Context

Using with nx 17.2.0 and higher fails with Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.

Usage examples

// commitlint.config.js
module.exports = {extends: ['@commitlint/config-nx-scopes']};
echo "your commit message here" | commitlint # fails/passes

How Has This Been Tested?

Existing tests pass for each nx version

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@escapedcat escapedcat merged commit 1e08a17 into conventional-changelog:master Jan 17, 2024
@escapedcat
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

bug: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available after upgrading to NX v17.2.0 (@commitlint/config-nx-scopes)

2 participants