UNPKG

standard-changelog

Version:
36 lines (34 loc) 2.55 kB
#!/usr/bin/env node import meow from 'meow'; import { flags, runProgram } from 'conventional-changelog'; import { StandardChangelog } from './index.js'; const cli = meow(` Usage standard-changelog Example standard-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 (default: angular) -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 StandardChangelog(process.cwd()), cli.flags); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBQ3ZCLE9BQU8sRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNYLE1BQU0sd0JBQXdCLENBQUE7QUFDL0IsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sWUFBWSxDQUFBO0FBRTlDLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztDQXlCaEIsRUFBRTtJQUNELFVBQVUsRUFBRSxNQUFNLENBQUMsSUFBSTtJQUN2QixjQUFjLEVBQUUsU0FBUztJQUN6QixLQUFLO0NBQ04sQ0FBQyxDQUFBO0FBRUYsTUFBTSxVQUFVLENBQ2QsSUFBSSxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUMsRUFDcEMsR0FBRyxDQUFDLEtBQUssQ0FDVixDQUFBIn0=