From d22589b3543c990500a04be179088a4a3a7be7cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 31 May 2021 19:02:50 +0200 Subject: [PATCH] Put auto-changelog configuration in package.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .release-it.json | 4 ++-- package.json | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.release-it.json b/.release-it.json index 4b3575ef..f3daa45c 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,6 +1,6 @@ { "git": { - "changelog": "npx auto-changelog --stdout --commit-limit false --commit-url https://github.com/sap-labs-france/ev-simulator/commit/{id} --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs", + "changelog": "npx auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs", "pushRepo": "upstream" }, "npm": { @@ -10,6 +10,6 @@ "release": true }, "hooks": { - "after:bump": "npx auto-changelog -p --compare-url https://github.com/sap-labs-france/ev-simulator/compare/{from}...{to} --commit-url https://github.com/sap-labs-france/ev-simulator/commit/{id}" + "after:bump": "npx auto-changelog -p -u" } } diff --git a/package.json b/package.json index 37b4c6ec..623900c4 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,12 @@ } ], "main": "dist/start.js", + "auto-changelog": { + "commitUrl": "https://github.com/sap-labs-france/ev-simulator/commit/{id}", + "issueUrl": "https://github.com/sap-labs-france/ev-simulator/issues/{id}", + "mergeUrl": "https://github.com/sap-labs-france/ev-simulator/pull/{id}", + "compareUrl": "https://github.com/sap-labs-france/ev-simulator/compare/{from}...{to}" + }, "scripts": { "prestart": "npm run build", "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js", -- 2.34.1