conventional-changelog.js 311 B

123456789101112
  1. 'use strict'
  2. const Q = require('q')
  3. const parserOpts = require('./parser-opts')
  4. const writerOpts = require('./writer-opts')
  5. module.exports = function (config) {
  6. return Q.all([parserOpts(config), writerOpts(config)])
  7. .spread((parserOpts, writerOpts) => {
  8. return { parserOpts, writerOpts }
  9. })
  10. }