Skip to content

Prevent updating dependencies in affected package.json #87

@nfantone

Description

@nfantone

Issue type

  • bug report
  • idea
  • question
  • other

Expected behavior

We would like multi-semantic-release to provide the option to avoid updating cross-references between interdependent packages with the next release version. This is particularly useful when using yarn workspace: refs as versions in package.json, which yarn pack already takes care of resolving.

  • Before multi-semantic-release:
{
  "dependencies": {
    "@myorg/packageA": "workspace:^",
    "@myorg/packageB": "workspace:^",
    "express-winston": "^5.0.0"
  }
}
  • After multi-semantic-release:
{
  "dependencies": {
    "@myorg/packageA": "1.2.3",
    "@myorg/packageB": "2.4.1",
    "express-winston": "^5.0.0"
  }
}

Ideally, both @myorg/packageA and @myorg/packageB should continue pointing to workspace:^ after a full release.

Actual behavior

Versions of affected dependents always get overridden by multi-semantic-release removing workspace: references and, ultimately, pushing changes to the repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions