|
23 | 23 | "prepack": "npmignore --auto --commentLines=autogenerated",
|
24 | 24 | "prepublishOnly": "safe-publish-latest",
|
25 | 25 | "prepublish": "not-in-publish || npm run prepublishOnly",
|
| 26 | + "prelint": "evalmd README.md", |
| 27 | + "lint": "eslint --ext=js,mjs .", |
26 | 28 | "pretest": "npm run --silent lint",
|
27 | 29 | "test": "npm run tests-only && npm run test:harmony",
|
28 | 30 | "tests-only": "nyc tape test",
|
29 | 31 | "test:harmony": "nyc node --harmony --es-staging test",
|
30 | 32 | "posttest": "npx aud --production",
|
31 |
| - "prelint": "evalmd README.md", |
32 |
| - "lint": "eslint --ext=js,mjs ." |
| 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)\")\"" |
33 | 35 | },
|
34 | 36 | "repository": {
|
35 | 37 | "type": "git",
|
|
65 | 67 | "devDependencies": {
|
66 | 68 | "@ljharb/eslint-config": "^21.0.0",
|
67 | 69 | "aud": "^2.0.1",
|
| 70 | + "auto-changelog": "^2.4.0", |
68 | 71 | "eslint": "=8.8.0",
|
69 | 72 | "evalmd": "^0.0.19",
|
70 | 73 | "in-publish": "^2.0.1",
|
|
98 | 101 | "engines": {
|
99 | 102 | "node": ">= 0.4"
|
100 | 103 | },
|
| 104 | + "auto-changelog": { |
| 105 | + "output": "CHANGELOG.md", |
| 106 | + "template": "keepachangelog", |
| 107 | + "unreleased": false, |
| 108 | + "commitLimit": false, |
| 109 | + "backfillLimit": false, |
| 110 | + "hideCredit": true, |
| 111 | + "startingVersion": "1.1.10" |
| 112 | + }, |
101 | 113 | "publishConfig": {
|
102 | 114 | "ignore": [
|
103 | 115 | ".github/workflows"
|
|
0 commit comments