-
Notifications
You must be signed in to change notification settings - Fork 794
/
defaults.js
43 lines (37 loc) · 1.1 KB
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const spec = require('conventional-changelog-config-spec')
const defaults = {
infile: 'CHANGELOG.md',
firstRelease: false,
sign: false,
noVerify: false,
commitAll: false,
silent: false,
tagPrefix: 'v',
scripts: {},
skip: {},
dryRun: false,
gitTagFallback: true,
preset: require.resolve('conventional-changelog-conventionalcommits')
}
/**
* Merge in defaults provided by the spec
*/
Object.keys(spec.properties).forEach(propertyKey => {
const property = spec.properties[propertyKey]
defaults[propertyKey] = property.default
})
/**
* Sets the default for `header` (provided by the spec) for backwards
* compatibility. This should be removed in the next major version.
*/
defaults.header = '# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n'
defaults.packageFiles = [
'package.json',
'bower.json',
'manifest.json'
]
defaults.bumpFiles = defaults.packageFiles.concat([
'package-lock.json',
'npm-shrinkwrap.json'
])
module.exports = defaults