refactor: changelog generation for tags

This commit is contained in:
Rainer Killinger
2023-01-17 13:33:10 +01:00
parent 96f1bb0429
commit b1e460314e
2 changed files with 3 additions and 5 deletions

View File

@@ -5,10 +5,9 @@
"scripts": {
"build": "npm run lint && npm run compile",
"compile": "rimraf lib && tsc --outDir lib && prepend lib/cli.js '#!/usr/bin/env node\n'",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \"docs: update changelog\"",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"documentation": "typedoc --out docs --readme README.md --includeVersion --listInvalidSymbolLinks --entryPointStrategy expand src",
"prepublishOnly": "npm ci && npm run build",
"postversion": "npm run changelog",
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"test": "echo \"Error: no test specified\" && exit 1",

View File

@@ -732,10 +732,9 @@ export function getRules(configuration: Configuration): Rules {
// expected scripts
const scripts: {[k: string]: string} = {
'changelog':
"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
'version': 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md',
'check-configuration': 'openstapps-configuration',
'preversion': 'npm run prepublishOnly && npm run changelog',
'preversion': 'npm run prepublishOnly',
'push': 'git push && git push origin "v$npm_package_version"',
'lint': 'eslint --ext .ts src/',
};