From 715bf6aa1e9029a28638094574c36199512030fc Mon Sep 17 00:00:00 2001 From: Patrick Mowrer Date: Tue, 7 Jul 2020 15:58:31 -0400 Subject: [PATCH] fix: plugin options weren't being parsed correctly [Closes #51] --- package.json | 6 +++--- src/index.js | 4 +++- yarn.lock | 23 ++++------------------- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 2cf3314..aec30ae 100644 --- a/package.json +++ b/package.json @@ -25,15 +25,15 @@ "github": "^13.0.0", "parse-github-url": "^1.0.2", "ramda": "^0.26.1", - "read-pkg": "^5.2.0" + "read-pkg": "^5.2.0", + "semantic-release-plugin-decorators": "^3.0.0" }, "devDependencies": { "husky": "^4.2.1", "jest": "^25.1.0", "lint-staged": "^10.0.3", "prettier": "^1.19.1", - "semantic-release": "^17.0.0", - "semantic-release-plugin-decorators": "^2.1.0" + "semantic-release": "^17.0.0" }, "husky": { "hooks": { diff --git a/src/index.js b/src/index.js index 6dd1d13..02ce8e0 100644 --- a/src/index.js +++ b/src/index.js @@ -64,5 +64,7 @@ const generateNotes = async (pluginConfig, context) => { module.exports = { verifyConditions: '@semantic-release/github', analyzeCommits: appendStep('analyzeCommits', decoratePlugin(analyzeCommits)), - generateNotes: appendStep('generateNotes', decoratePlugin(generateNotes)), + generateNotes: appendStep('generateNotes', decoratePlugin(generateNotes), { + defaultReturn: '', + }), }; diff --git a/yarn.lock b/yarn.lock index fff5008..6c7f519 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2973,13 +2973,6 @@ import-fresh@^3.1.0: parent-module "^1.0.0" resolve-from "^4.0.0" -import-from@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" - integrity sha1-M1238qev/VOqpHHUuAId7ja387E= - dependencies: - resolve-from "^3.0.0" - import-from@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" @@ -5929,11 +5922,6 @@ resolve-cwd@^3.0.0: dependencies: resolve-from "^5.0.0" -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha1-six699nWiBvItuZTM17rywoYh0g= - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" @@ -6071,13 +6059,10 @@ saxes@^3.1.9: dependencies: xmlchars "^2.1.1" -semantic-release-plugin-decorators@^2.1.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/semantic-release-plugin-decorators/-/semantic-release-plugin-decorators-2.1.2.tgz#dea3bd8e4f4d1cb0b3e6f92aa68b9c029cfc6343" - integrity sha512-WSWll7XFIfk2mguataWCxANllyN7mst9NajIgjW5I9504gRSxi6ccZiZXCFAAB1kW2+HA49DWb8V5/Yx41qovg== - dependencies: - import-from "^2.1.0" - lodash "^4.17.15" +semantic-release-plugin-decorators@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/semantic-release-plugin-decorators/-/semantic-release-plugin-decorators-3.0.0.tgz#b4cbe9cda7e9e2198caf8103cf56de9742d6f5e4" + integrity sha512-BIUUe9gUwH+N5k/fr9KEin/2cU80r62kLBPLS/o9Dl/TK3gNsu4CJgb7SAJyWvoothDRbWLZSgTS3Qz8UJuT/Q== semantic-release@^17.0.0: version "17.1.1"