open-index/open-npm huggingface dataset:
npm package: @rpidanny/semantic-release-update-package.json
Description: A Semantic Release plugin to update package.json version
Author: Abhishek
Latest version: 1.0.0

# semantic-release-update-package.json

[![codecov](https://codecov.io/gh/rpidanny/semantic-release-update-package.json/graph/badge.svg?token=VOAyVWHLzq)](https://codecov.io/gh/rpidanny/semantic-release-update-package.json)

[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin that updates `package.json` with the new release version.

This tool is especially useful when using [semantic-release-plus](https://github.com/semantic-release-plus/semantic-release-plus) with mono-repo frameworks like [nx](https://nx.dev/).

## Install

```bash
$ npm i --save-dev @rpidanny/semantic-release-update-package.json
```

## Usage

The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):

```json
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "@rpidanny/semantic-release-update-package.json",
      {
        "packageJsonPath": "./packages/core/package.json"
      }
    ]
  ]
}
```

With this example, for each release, the `package.json` at `./packages/core/package.json` will be updated with the latest release version.

## Configuration

### Options

| Options           | Description                                 | Type     | Required |
| ----------------- | ------------------------------------------- | -------- | -------- |
| `packageJsonPath` | Path where the `package.json` is stored at. | `string` | `true`   |

### Examples

When used with the [@semantic-release/git](https://github.com/semantic-release/git) plugins the `@rpidanny/semantic-release-update-package.json` plugin must be called first in order to update the `package.json` file so the [@semantic-release/git](https://github.com/semantic-release/git) plugin can include it in the release commit.

```json
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "@rpidanny/semantic-release-update-package.json",
      {
        "packageJsonPath": "./packages/core/package.json"
      }
    ],
    [
      "@semantic-release/npm",
      {
        "npmPublish": false
      }
    ],
    "@semantic-release/github",
    [
      "@semantic-release/git",
      {
        "assets": [
          "CHANGELOG",
          "package.json",
          "package-lock.json",
          "./packages/core/package.json"
        ],
        "message": "chore(release): ${nextRelease.version} [skip-ci]\n\n${nextRelease.notes}"
      }
    ]
  ]
}
```
npm package: @rpidanny/typescript-package-template
Description: Typescript package boilerplate template
Author: Abhishek
Latest version: 1.6.0

# typescript-package-template

![gh-actions](https://github.com/rpidanny/typescript-package-template/workflows/Release/badge.svg) [![codecov](https://codecov.io/gh/rpidanny/typescript-package-template/branch/main/graph/badge.svg?token=UCCA6D6JCB)](https://codecov.io/gh/rpidanny/typescript-package-template)

A boilerplate for typescript packages pre-filled with awesome goodies like:

* semantic-release
* commitlint
* husky
* jest
* Github Actions