diff --git a/scripts/determine-pkg-versions.js b/scripts/determine-pkg-versions.js index 1f6683d3a61..977d239b05c 100644 --- a/scripts/determine-pkg-versions.js +++ b/scripts/determine-pkg-versions.js @@ -122,7 +122,7 @@ function determineVersion(pkg, commitInfos) { } return commitInfos.reduce(pickBestVersionInfo(pkg), { - version: currentVersion, + version: semver.inc(currentVersion, 'patch'), changeType: 'patch', causedByCommit: '(dependency update - part of packages to be updated but no explicit commits referencing it)', }); diff --git a/scripts/lib/get-updated-pkgs.js b/scripts/lib/get-updated-pkgs.js index e6d80bc0917..2380af9b4ab 100644 --- a/scripts/lib/get-updated-pkgs.js +++ b/scripts/lib/get-updated-pkgs.js @@ -25,6 +25,7 @@ const Repository = require('lerna/lib/Repository'); const UpdatedPackagesCollector = require('lerna/lib/UpdatedPackagesCollector'); const lernaLogger = require('lerna/lib/logger'); const progressBar = require('lerna/lib/progressBar'); +const lernaJson = require('../../lerna.json'); module.exports = function() { const repository = new Repository(); @@ -32,8 +33,7 @@ module.exports = function() { const origBarDescriptor = Object.getOwnPropertyDescriptor(progressBar, 'bar'); const lernaCommand = { repository, - getOptions: () => ({}), - publishConfig: {}, + getOptions: () => lernaJson.publishConfig, }; const collector = new UpdatedPackagesCollector(lernaCommand);