Skip to content

Commit ab9ce44

Browse files
committed
[meta] add auto-changelog
1 parent f4defca commit ab9ce44

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock=false
2+
allow-same-version=true
3+
message=v%s

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
]
1313
},
1414
"scripts": {
15+
"version": "auto-changelog && git add CHANGELOG.md",
16+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
1517
"lint": "eslint .",
1618
"pretest": "npm run lint",
1719
"tests-only": "tape test",
@@ -41,12 +43,21 @@
4143
"devDependencies": {
4244
"@ljharb/eslint-config": "^17.1.0",
4345
"aud": "^1.1.2",
46+
"auto-changelog": "^2.2.0",
4447
"eslint": "^7.6.0",
4548
"for-each": "^0.3.3",
4649
"object-inspect": "^1.8.0",
4750
"tape": "^5.0.1"
4851
},
4952
"dependencies": {
5053
"es-abstract": "^1.17.6"
54+
},
55+
"auto-changelog": {
56+
"output": "CHANGELOG.md",
57+
"template": "keepachangelog",
58+
"unreleased": false,
59+
"commitLimit": false,
60+
"backfillLimit": false,
61+
"hideCredit": true
5162
}
5263
}

0 commit comments

Comments
 (0)