Debian Codegraph @

docs/integrations/nodejs.md

raw
1 During the release process it is likely you want to update your package json to
2 use the new version.
3 This can be handled automatically by Changie using the
4 [replacements configuration](../config/index.md#config-replacements), which occur when you
5 run `changie merge`.
6
7 Below is how you could configure it for NodeJS.
8
9 ```yaml
10 replacements:
11 - path: package.json
12 find: ' "version": ".*",'
13 replace: ' "version": "{{.VersionNoPrefix}}",'
14 ```
15
16 Note: If you do not use any `v` prefixes on your versions ( `1.3.4` instead of `v1.3.4` )
17 you can just use `{{.Version}}`.