Skip to content

Commit 31f1f2c

Browse files
committed
[meta] add auto-changelog
1 parent 9c7b806 commit 31f1f2c

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

Diff for: .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

Diff for: 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).

Diff for: package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"pretest": "npm run lint",
2222
"tests-only": "nyc tape 'test/**/*.js'",
2323
"test": "npm run tests-only --",
24-
"posttest": "aud --production"
24+
"posttest": "aud --production",
25+
"version": "auto-changelog && git add CHANGELOG.md",
26+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
2527
},
2628
"repository": {
2729
"type": "git",
@@ -43,11 +45,20 @@
4345
"devDependencies": {
4446
"@ljharb/eslint-config": "^17.5.1",
4547
"aud": "^1.1.4",
48+
"auto-changelog": "^2.2.1",
4649
"es-value-fixtures": "^1.2.1",
4750
"eslint": "^7.21.0",
4851
"for-each": "^0.3.3",
4952
"nyc": "^10.3.2",
5053
"object-inspect": "^1.9.0",
5154
"tape": "^5.2.2"
55+
},
56+
"auto-changelog": {
57+
"output": "CHANGELOG.md",
58+
"template": "keepachangelog",
59+
"unreleased": false,
60+
"commitLimit": false,
61+
"backfillLimit": false,
62+
"hideCredit": true
5263
}
5364
}

0 commit comments

Comments
 (0)