Put auto-changelog configuration in package.json
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 31 May 2021 17:02:50 +0000 (19:02 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 31 May 2021 17:02:50 +0000 (19:02 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.release-it.json
package.json

index 4b3575ef6b43ef2810872980b029c731c3fd36c8..f3daa45c513b495614059063d332e56ff2bae6f2 100644 (file)
@@ -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"
   }
 }
index 37b4c6ec93210bf89a8c13e6538bd9970427c81c..623900c46b463dbbc5adc7cebb2f65b585f7d262 100644 (file)
     }
   ],
   "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",