UNPKG

conventional-changelog

Version:
36 lines (34 loc) 2.55 kB
#!/usr/bin/env node import meow from 'meow'; import { ConventionalChangelog } from '../index.js'; import { flags, runProgram } from './cli.js'; const cli = meow(` Usage conventional-changelog Example conventional-changelog -i changelog -o CHANGELOG.md Options -i, --infile Read the CHANGELOG from this file (default: CHANGELOG.md) -o, --outfile Write the CHANGELOG to this file (default: infile) --stdout Output the result to stdout -p, --preset Name of the preset you want to use -k, --pkg A filepath of where your package.json is located (default: closest package.json) -a, --append Should the newer release be appended to the older release (default: false) -f, --first-release Generate the CHANGELOG for the first time -r, --release-count How many releases to be generated from the latest (default: 1) If 0, the whole changelog will be regenerated and the outfile will be overwritten --skip-unstable If given, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2 -u, --output-unreleased Output unreleased changelog -v, --verbose Verbose output. Use this for debugging (default: false) -n, --config A filepath of your config script -c, --context A filepath of a json that is used to define template variables -l, --lerna-package Generate a changelog for a specific lerna package (:pkg-name@1.0.0) -t, --tag-prefix Tag prefix to consider when reading the tags --commit-path Generate a changelog scoped to a specific directory `, { importMeta: import.meta, booleanDefault: undefined, flags }); await runProgram(new ConventionalChangelog(process.cwd()), cli.flags); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY2xpL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLElBQUksTUFBTSxNQUFNLENBQUE7QUFDdkIsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ25ELE9BQU8sRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNYLE1BQU0sVUFBVSxDQUFBO0FBRWpCLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztDQXlCaEIsRUFBRTtJQUNELFVBQVUsRUFBRSxNQUFNLENBQUMsSUFBSTtJQUN2QixjQUFjLEVBQUUsU0FBUztJQUN6QixLQUFLO0NBQ04sQ0FBQyxDQUFBO0FBRUYsTUFBTSxVQUFVLENBQ2QsSUFBSSxxQkFBcUIsQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMsRUFDeEMsR0FBRyxDQUFDLEtBQUssQ0FDVixDQUFBIn0=