sync-npm-version-to-jsr
Version:
sync package.json version to jsr.json
44 lines (30 loc) • 2.21 kB
Markdown
# sync-npm-version-to-jsr
[](https://www.npmjs.com/package/sync-npm-version-to-jsr)
[](https://www.npmjs.com/package/sync-npm-version-to-jsr)
[](https://github.com/node-modules/sync-npm-version-to-jsr/blob/master/LICENSE)
[](https://jsr.io/@nm/sync-npm-version-to-jsr)
[](https://jsr.io/@nm/sync-npm-version-to-jsr)
[](https://codecov.io/gh/node-modules/sync-npm-version-to-jsr)
[](https://github.com/node-modules/sync-npm-version-to-jsr/actions/workflows/ci.yml?query=branch%3Amaster)
[](https://makeapullrequest.com)

sync package.json version to jsr.json
## Usage
```bash
npx sync-npm-version-to-jsr
```
Use `postversion` hook on [semantic-release](https://github.com/semantic-release/semantic-release/blob/fdc35bda3c00a5ae79234ea4e2e6ed05ef4ac501/docs/support/FAQ.md?plain=1#L61)
> the `postversion` hook so it will be executed during the `prepare` step of `@semantic-release/npm`, which allow for example to update files before committing them with the [`@semantic-release/git`](https://github.com/semantic-release/git) plugin
```json
// package.json
{
"scripts": {
"postversion": "npx sync-npm-version-to-jsr && git add jsr.json"
}
}
```
## License
[MIT](./LICENSE)
## Contributors
[](https://github.com/node-modules/sync-npm-version-to-jsr/graphs/contributors)
Made with [contributors-img](https://contrib.rocks).