jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
719 stars 83 forks source link

targetDependencies is removed in Nx 16+ #733

Closed bencat-sixense closed 9 months ago

bencat-sixense commented 10 months ago

Hi there !

As you may know, targetDependencies was removed from Nx 16, so we need to use targetDefaults I would like to know what's the new way to add version in nx.json ?

I'm talking about this part of the README: https://github.com/jscutlery/semver#tracking-dependencies

I'm not sure about my understanding and I'm a bit lost since yesterday...

Thanks everyone !

bencat-sixense commented 10 months ago

I did this, and it seems to work:

"targetDefaults": {
    ...
    "versioning": {
      "dependsOn": [
        {
          "target": "versioning",
          "projects": "dependencies"
        }
      ]
    }
  }

Am I right ?

Thanks :)

edbzn commented 9 months ago

Hey @bencat-sixense, yeah the correct usage would be:

{
  "targetDefaults": {
    "versioning": {
      "dependsOn": [
        "^versioning"
      ]
    }
}

I will update the documentation.