Skip to content

Commit d66bdea

Browse files
committed
[meta] add auto-changelog
1 parent d64c486 commit d66bdea

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.npmrc

Lines changed: 2 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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).
7+
8+
<!-- auto-changelog-above -->
9+
110
1.3.0 / 2022-04-11
211
=================
312
* [New] `shim`/`auto`: add `flatMap` to `Symbol.unscopables`

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"tests-only": "nyc tape 'test/**/*.js'",
3030
"prelint": "evalmd README.md",
3131
"lint": "eslint --ext=js,mjs .",
32-
"postlint": "es-shim-api --bound"
32+
"postlint": "es-shim-api --bound",
33+
"version": "auto-changelog && git add CHANGELOG.md",
34+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
3335
},
3436
"repository": {
3537
"type": "git",
@@ -93,6 +95,15 @@
9395
"engines": {
9496
"node": ">= 0.4"
9597
},
98+
"auto-changelog": {
99+
"output": "CHANGELOG.md",
100+
"template": "keepachangelog",
101+
"unreleased": false,
102+
"commitLimit": false,
103+
"backfillLimit": false,
104+
"hideCredit": true,
105+
"startingVersion": "1.3.1"
106+
},
96107
"publishConfig": {
97108
"ignore": [
98109
".github/workflows"

0 commit comments

Comments
 (0)