Skip to content

Commit

Permalink
[meta] use auto-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 23, 2024
1 parent 8586801 commit 1255cd7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
package-lock=false
allow-same-version=true
message=v%s
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- auto-changelog-above -->

2.16.0 / 2020-06-30
==================
* [New] add `predicate` validator
Expand Down
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@babel/register": "^7.23.7",
"airbnb-browser-shims": "^3.3.0",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",
"babel-plugin-istanbul": "^5.2.0",
"babel-plugin-transform-replace-object-assign": "^2.0.0",
"babel-preset-airbnb": "^3.3.2",
Expand Down Expand Up @@ -69,7 +70,9 @@
"precoverage": "NODE_ENV=test npm run build",
"coverage": "npm run --quiet cover:clean && npm run --silent cover:run",
"mocha": "mocha --recursive build-test/helpers/_failTestsOnErrors",
"react": "enzyme-adapter-react-install 16"
"react": "enzyme-adapter-react-install 16",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
Expand All @@ -95,5 +98,14 @@
"homepage": "https://github.com/ljharb/prop-types-tools#readme",
"engines": {
"node": ">= 0.10"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "2.17.0"
}
}

0 comments on commit 1255cd7

Please sign in to comment.