We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d6e93 commit 65fd45fCopy full SHA for 65fd45f
index.js
@@ -1,4 +1,4 @@
1
-const {castArray} = require('lodash');
+const {defaultTo, castArray} = require('lodash');
2
const verifyChangelog = require('./lib/verify');
3
const prepareChangelog = require('./lib/prepare');
4
@@ -10,7 +10,7 @@ async function verifyConditions(pluginConfig, {options}) {
10
const preparePlugin =
11
castArray(options.prepare).find(config => config.path && config.path === '@semantic-release/changelog') || {};
12
13
- pluginConfig.changelogFile = pluginConfig.changelogFile || preparePlugin.changelogFile;
+ pluginConfig.changelogFile = defaultTo(pluginConfig.changelogFile, preparePlugin.changelogFile);
14
}
15
await verifyChangelog(pluginConfig);
16
verified = true;
0 commit comments