File: nodejs.md

package info (click to toggle)
changie 1.24.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,068 kB
  • sloc: makefile: 40; ruby: 38; javascript: 32
file content (17 lines) | stat: -rw-r--r-- 574 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
During the release process it is likely you want to update your package json to
use the new version.
This can be handled automatically by Changie using the
[replacements configuration](../config/index.md#config-replacements), which occur when you
run `changie merge`.

Below is how you could configure it for NodeJS.

```yaml
replacements:
  - path: package.json
    find: '  "version": ".*",'
    replace: '  "version": "{{.VersionNoPrefix}}",'
```

Note: If you do not use any `v` prefixes on your versions ( `1.3.4` instead of `v1.3.4` )
you can just use `{{.Version}}`.