From 11e8375486a7c3930b92c1c2f4ad27594db98653 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:37:01 +0100 Subject: [PATCH] Preview / verification --- src/cli.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index f6bf4e1..0695b7f 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -13,7 +13,7 @@ yargs(process.argv.slice(2)) .scriptName('release') .command( 'prepare', - `Edits the package.json and changelog files to prepare for release.`, + `Edits the package.json and changelog files to prepare for release. This generates the .release-plan.json file.`, (yargs) => fromStdin(yargs).option('singlePackage', { type: 'string', @@ -31,6 +31,12 @@ yargs(process.argv.slice(2)) process.stdout.write(`\nSuccessfully prepared released\n`); }, ) + .command( + 'apply-release-plan', + 'Applies the .release-plan.json file across your repo. This behavior is included in prepare, but this command is useful when manually editing the .release-plan, and you want to update the package.jsons and CHANGELOG.', + (yargs) => {}, + async function (opts) {}, + ) .command( 'publish', `Publishes an already-prepared released by tagging, pushing tags, creating GitHub release, and publishing to NPM.`,