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 committed Nov 28, 2018
1 parent a6a0109 commit e6033a5
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 @@ -39,7 +39,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 e6033a5

Please sign in to comment.