MCPcopy Create free account
hub / github.com/angular/dev-infra / builder

Function builder

ng-dev/release/snapshot-publish/cli.ts:14–27  ·  view source on GitHub ↗

Yargs command builder for configuring the `ng-dev release publish-snapshots` command.

(argv: Argv)

Source from the content-addressed store, hash-verified

12
13/** Yargs command builder for configuring the `ng-dev release publish-snapshots` command. */
14function builder(argv: Argv): Argv<SnapshotPublishOptions> {
15 return addGithubTokenOption(argv)
16 .option('skip-non-affected-snapshots' as 'skipNonAffectedSnapshots', {
17 type: 'boolean',
18 description:
19 'Whether to skip publishing snapshots for packages that are not affected by the current changes.',
20 default: false,
21 })
22 .option('dry-run' as 'dryRun', {
23 type: 'boolean',
24 description: 'Whether to perform a dry run.',
25 default: false,
26 });
27}
28
29/** CLI command module for publishing snapshot releases. */
30export const ReleasePublishSnapshotsCommandModule: CommandModule<{}, SnapshotPublishOptions> = {

Callers

nothing calls this directly

Calls 1

addGithubTokenOptionFunction · 0.90

Tested by

no test coverage detected