diff --git a/README.md b/README.md index a56961d43..8714ce08b 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ The location of your "package.json". Type: `function` Default: pass through -A function that takes `package.json` data as the argument and returns the modified data. Note this is performed on the normalized package.json data. Useful when you need to add a leading 'v' to your version, etc. +A function that takes `package.json` data as the argument and returns the modified data. Note this is performed before normalizing package.json data. Useful when you need to add a leading 'v' to your version or modify your repository url, etc. ##### append diff --git a/test/test.js b/test/test.js index a98319d21..3409acd3d 100644 --- a/test/test.js +++ b/test/test.js @@ -89,7 +89,7 @@ describe('conventionalChangelog', function() { path: __dirname + '/fixtures/_short.json', transform: function(pkg) { pkg.version = 'v' + pkg.version; - pkg.repository.url = 'https://github.com/a/b.git'; + pkg.repository = 'a/b'; return pkg; } }