Skip to content

Commit

Permalink
fix: create a new object from the provided configuration to ensure th…
Browse files Browse the repository at this point in the history
…e reference (package.json) is not augmented.
  • Loading branch information
Joe Bottigliero authored and Joe Bottigliero committed Feb 19, 2019
1 parent 26f2e72 commit 4734c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = function standardVersion (argv) {
})
let newVersion
let defaults = require('./defaults')
const packageConfiguration = getConfigurationFromArguments(argv)
const packageConfiguration = Object.assign({}, getConfigurationFromArguments(argv))
// the `modules` key is reserved for submodule configurations.
const moduleConfigurations = packageConfiguration.modules || {}
// module specific configurations are *not* passed as part of `standard-version`s arguments.
Expand Down

0 comments on commit 4734c70

Please sign in to comment.