Module workspace_node_tools::changes 
source · Expand description
§Changes
This module is responsible for managing the changes in the monorepo.
The changes are stored in a .changes.json file in the root of the project.
§Example
{
  "message": "chore(release): release new version",
  "gitUserName": "Git Bot",
  "gitUserEmail": "git.bot@domain.com",
  "changes": {
      "BRANCH-NAME": [{
          "package": "xxx",
          "releaseAs": "patch",
          "deploy": ["int"]
      }],
  }
}
Structs§
- Data structure to store a change
- Data structure to store changes
- Data structure to store changes file
- Options to initialize the changes file
Functions§
- Add a change to the changes file in the root of the project.
- Check if a change exists in the changes file in the root of the project.
- Check if a changes file exists in the root of the project.
- Get all changes for a specific branch from the changes file in the root of the project.
- Get all changes from the changes file in the root of the project.
- Initialize the changes file. If the file does not exist, it will create it with the default message. If the file exists, it will return the content of the file.
- Remove a change from the changes file in the root of the project.