{"_id":"@anteriovieira/conventional-changelog","_rev":"1-780e5036d936322ef10381c45951917f","name":"@anteriovieira/conventional-changelog","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@anteriovieira/conventional-changelog","version":"0.0.1","description":"conventional-changelog preset","main":"index.js","scripts":{"lint":"eslint --fix .","test":"mocha --timeout 30000 && npm run-script lint","test-windows":"mocha --timeout 30000"},"repository":{"type":"git","url":"git+https://github.com/anteriovieira/conventional-changelog.git"},"keywords":["conventional-changelog","preset"],"author":{"name":"Antério Vieira","email":"anteriovieira@gmail.com"},"engines":{"node":">=6.9.0"},"license":"ISC","bugs":{"url":"https://github.com/anteriovieira/conventional-changelog/issues"},"homepage":"https://github.com/anteriovieira/conventional-changelog","devDependencies":{"better-than-before":"^1.0.0","conventional-changelog-core":"^3.1.0","git-dummy-commit":"^1.2.0","shelljs":"^0.8.0","through2":"^2.0.0"},"dependencies":{"compare-func":"^1.3.1","q":"^1.5.1"},"gitHead":"b5c9a1c3cb072159a491899eaa3895174ab55a7c","_id":"@anteriovieira/conventional-changelog@0.0.1","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"anteriovieira","email":"anteriovieira@gmail.com"},"dist":{"integrity":"sha512-6471dOmfB4eUfapILXHKj3LIQd2xXyIRpgm+R9WHCwNRKkjW/KVJSAQh2Za0NhYgK0jdUfLNq5amQ+D7dC+COg==","shasum":"4cdaa3a027eaf9d74fe5f32221363de903cbb98b","tarball":"https://registry.npmjs.org/@anteriovieira/conventional-changelog/-/conventional-changelog-0.0.1.tgz","fileCount":13,"unpackedSize":9912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboPzVCRA9TVsSAnZWagAAlS0P/3GfwKzUV7xTRisBdvEd\ndLvQlsqwYaZYq+6Hzf/8aveH0SGa3L3lBqM8Ehxnc3NTAMpv2BC9q+vZHaD6\nIgGFBIgP4RZCyPmnJRo+aXpj57ux+zBqdMPZnoSp9BlYq6OnqdaYiIecKGWs\n2Z3YgC2SRcMeoCxQDCF9dUIu0RociDne9dnQloBqrlxTQ+YQlIGDP2oyzk1t\niWcJdviMPxcBRMUxURwyoZhNcIihyt4KdHg2vSdV5i19WenjrWGlHnmkF8Tv\nGZFVlRhohUUR9TLYELL/8YpfekGhirDoNpFiqYeHxRSU4oe6GhQXK5ZFUF8W\nZ7PeTCzbEde3eoT3E+VYS1u8LsY3h7zU7QuE/2Ql4cXMhT8fGLkKeFDD9xDk\nt3dYwLTHolAKp933ofuZBLCdfTECiUmn/fybhtw6N32AVP7QD2ze3GO9yAe8\nFUScBo5hf9nO/6zZfrQpkWarvDGRwd4RLANHt8g9tSxehjllTGDk0aRp0Ke1\npmjwEvx2d4Cpb5Ngtvzjv5pMN6JznUTLa1o7qGLmDIAxrlvyYyb90w/dzfPR\nQRh/UNvyOj+3+An7IwuBOEc9/uZri+dXM0wTWRIjbkDNnCU69+Jh+R98RyTy\n8D7ZzYIrUwDSobNRKNOk5UPHGcYIOJtsWOgwU3EsfIpWsGfrQ2c1aMUHrqwG\n2UR+\r\n=Xrl4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsBckcTePQ5/mlPORAtoQMXy6A8+LMUODMv+guh0gDdAIgbAIU5pany8Q0pG3PsK/TLTv+eJkJMdQvpowFd80aZWU="}]},"maintainers":[{"name":"anteriovieira","email":"anteriovieira@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/conventional-changelog_0.0.1_1537277140453_0.7484969494004452"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-18T13:25:40.292Z","0.0.1":"2018-09-18T13:25:40.583Z","modified":"2022-04-04T14:21:24.132Z"},"maintainers":[{"name":"anteriovieira","email":"anteriovieira@gmail.com"}],"description":"conventional-changelog preset","homepage":"https://github.com/anteriovieira/conventional-changelog","keywords":["conventional-changelog","preset"],"repository":{"type":"git","url":"git+https://github.com/anteriovieira/conventional-changelog.git"},"author":{"name":"Antério Vieira","email":"anteriovieira@gmail.com"},"bugs":{"url":"https://github.com/anteriovieira/conventional-changelog/issues"},"license":"ISC","readme":"## Conventional Changelog Preset\n\nCustom preset for conventional-changelog \n\n### Install\n\n`yarn add -D @anteriovieira/conventional-changelog`\n\n### Usage\n\n```js\n// changelog.js\nconst execa = require('execa')\nconst cc = require('conventional-changelog')\nconst custom = require('@anteriovieira/conventional-changelog')\n\nconst gen = module.exports = version => {\n  const fileStream = require('fs').createWriteStream(`CHANGELOG.md`)\n\n  cc({\n    config: custom,\n    pkg: {\n      transform (pkg) {\n        pkg.version = `v${version}`\n        return pkg\n      }\n    }\n  }).pipe(fileStream).on('close', async () => {\n    delete process.env.PREFIX\n    await execa('git', ['add', '-A'], { stdio: 'inherit' })\n    await execa('git', ['commit', '-m', `chore: ${version} changelog`], { stdio: 'inherit' })\n  })\n}\n\ngen(require('./package.json').version)\n```\n\n`$ node changelog.js`\n","readmeFilename":"README.md"}