Skip to content

Commit

Permalink
fix: fix pkgOptions resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 28, 2020
1 parent fbc57d0 commit 2a2f0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/multiSemanticRelease.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { dirname } = require("path");
const semanticRelease = require("semantic-release");
const { uniq } = require("lodash");
const { uniq, omit } = require("lodash");
const { check } = require("./blork");
const getLogger = require("./getLogger");
const getSynchronizer = require("./getSynchronizer");
Expand Down Expand Up @@ -136,7 +136,7 @@ async function getPackage(path, { options: globalOptions, env, cwd, stdout, stde
});

// Load the package-specific options.
const { options: pkgOptions } = await getConfig(dir);
const pkgOptions = omit(await getConfig(dir), "plugins", "tagFormat");

// The 'final options' are the global options merged with package-specific options.
// We merge this ourselves because package-specific options can override global options.
Expand Down

0 comments on commit 2a2f0cf

Please sign in to comment.