diff --git a/dev-infra/ng-dev.js b/dev-infra/ng-dev.js index 2f99989ca84..692a5300fe0 100755 --- a/dev-infra/ng-dev.js +++ b/dev-infra/ng-dev.js @@ -6619,10 +6619,9 @@ var CompletionState; CompletionState[CompletionState["MANUALLY_ABORTED"] = 2] = "MANUALLY_ABORTED"; })(CompletionState || (CompletionState = {})); class ReleaseTool { - constructor(_config, _github, _githubToken, _projectRoot) { + constructor(_config, _github, _projectRoot) { this._config = _config; this._github = _github; - this._githubToken = _githubToken; this._projectRoot = _projectRoot; /** The singleton instance of the GitClient. */ this._git = GitClient.getAuthenticatedInstance(); @@ -6782,13 +6781,13 @@ function builder$8(argv) { return addGithubTokenOption(argv); } /** Yargs command handler for staging a release. */ -function handler$8(args) { +function handler$8() { return tslib.__awaiter(this, void 0, void 0, function* () { const git = GitClient.getInstance(); const config = getConfig(); const releaseConfig = getReleaseConfig(config); const projectDir = git.baseDir; - const task = new ReleaseTool(releaseConfig, config.github, args.githubToken, projectDir); + const task = new ReleaseTool(releaseConfig, config.github, projectDir); const result = yield task.run(); switch (result) { case CompletionState.FATAL_ERROR: diff --git a/dev-infra/release/publish/cli.ts b/dev-infra/release/publish/cli.ts index b156a065bea..3d1af584599 100644 --- a/dev-infra/release/publish/cli.ts +++ b/dev-infra/release/publish/cli.ts @@ -27,12 +27,12 @@ function builder(argv: Argv): Argv { } /** Yargs command handler for staging a release. */ -async function handler(args: Arguments) { +async function handler() { const git = GitClient.getInstance(); const config = getConfig(); const releaseConfig = getReleaseConfig(config); const projectDir = git.baseDir; - const task = new ReleaseTool(releaseConfig, config.github, args.githubToken, projectDir); + const task = new ReleaseTool(releaseConfig, config.github, projectDir); const result = await task.run(); switch (result) { diff --git a/dev-infra/release/publish/index.ts b/dev-infra/release/publish/index.ts index 63b46b75aec..2f6e14552e5 100644 --- a/dev-infra/release/publish/index.ts +++ b/dev-infra/release/publish/index.ts @@ -35,7 +35,7 @@ export class ReleaseTool { constructor( protected _config: ReleaseConfig, protected _github: GithubConfig, - protected _githubToken: string, protected _projectRoot: string) {} + protected _projectRoot: string) {} /** Runs the interactive release tool. */ async run(): Promise {