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

Method constructor

ng-dev/release/publish/index.ts:49–61  ·  view source on GitHub ↗
(
    protected _git: AuthenticatedGitClient,
    config: ReleaseConfig,
    protected _github: GithubConfig,
    protected _projectRoot: string,
    protected _flags: ReleaseToolFlags,
  )

Source from the content-addressed store, hash-verified

47 private previousGitBranchOrRevision = this._git.getCurrentBranchOrRevision();
48 /** The release configuration for the release tool run. */
49 protected _config: ReleaseConfig;
50
51 constructor(
52 protected _git: AuthenticatedGitClient,
53 config: ReleaseConfig,
54 protected _github: GithubConfig,
55 protected _projectRoot: string,
56 protected _flags: ReleaseToolFlags,
57 ) {
58 if (_flags.publishRegistry !== undefined) {
59 this._config = {
60 ...config,
61 // Explicitly passed `--publishRegistry` overrides config and bypasses OSS Exit Gate.
62 publishRegistry: _flags.publishRegistry,
63 exitGate: undefined,
64 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected