diff --git a/.npmrc b/.npmrc index 43c97e7..eacea13 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,3 @@ package-lock=false +allow-same-version=true +message=v%s diff --git a/package.json b/package.json index bfee2b3..6fc64f2 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.", "main": "index.js", "scripts": { + "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)\")\"", + "prepublish": "safe-publish-latest", "pretest": "npm run lint", "lint": "eslint .", "tests-only": "node test", @@ -33,11 +36,20 @@ "homepage": "https://github.com/inspect-js/is-map#readme", "devDependencies": { "@ljharb/eslint-config": "^15.0.1", + "auto-changelog": "^1.16.2", "es5-shim": "^4.5.13", "es6-shim": "^0.35.5", "eslint": "^6.6.0", "for-each": "^0.3.3", "object-inspect": "^1.7.0", + "safe-publish-latest": "^1.1.4", "tape": "^4.11.0" + }, + "auto-changelog": { + "output": "CHANGELOG.md", + "template": "keepachangelog", + "unreleased": false, + "commitLimit": false, + "backfillLimit": false } }