Skip to content

Commit

Permalink
[meta] add version scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 23, 2019
1 parent 2e443ef commit 52005e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "Does this JS environment support the `name` property on functions?",
"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)\")\"",
"lint": "eslint .",
"pretest": "npm run lint",
"tests-only": "node test",
Expand All @@ -30,7 +32,14 @@
"homepage": "https://github.com/ljharb/functions-have-names#readme",
"devDependencies": {
"@ljharb/eslint-config": "^13.1.1",
"auto-changelog": "^1.14.1",
"eslint": "^5.16.0",
"tape": "^4.11.0"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false
}
}

0 comments on commit 52005e3

Please sign in to comment.