Skip to content

Commit

Permalink
fix(@angular/cli): correct scope cache command
Browse files Browse the repository at this point in the history
Currently, this was being shown available as a global command which shouldn't be the case.

(cherry picked from commit 1846315)
  • Loading branch information
alan-agius4 authored and clydin committed Jun 3, 2022
1 parent 52ba901 commit 66a1d6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/cache/clean/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class CacheCleanModule extends CommandModule implements CommandModuleImpl
command = 'clean';
describe = 'Deletes persistent disk cache from disk.';
longDescriptionPath: string | undefined;
static override scope: CommandScope.In;
static override scope = CommandScope.In;

builder(localYargs: Argv): Argv {
return localYargs.strict();
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/cache/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class CacheCommandModule extends CommandModule implements CommandModuleIm
command = 'cache';
describe = 'Configure persistent disk cache and retrieve cache statistics.';
longDescriptionPath = join(__dirname, 'long-description.md');
static override scope: CommandScope.In;
static override scope = CommandScope.In;

builder(localYargs: Argv): Argv {
const subcommands = [
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/src/commands/cache/info/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CacheInfoCommandModule extends CommandModule implements CommandModu
command = 'info';
describe = 'Prints persistent disk cache configuration and statistics in the console.';
longDescriptionPath?: string | undefined;
static override scope: CommandScope.In;
static override scope = CommandScope.In;

builder(localYargs: Argv): Argv {
return localYargs.strict();
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/cli/src/commands/cache/settings/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class CacheDisableModule extends CommandModule implements CommandModuleIm
aliases = 'off';
describe = 'Disables persistent disk cache for all projects in the workspace.';
longDescriptionPath: string | undefined;
static override scope: CommandScope.In;
static override scope = CommandScope.In;

builder(localYargs: Argv): Argv {
return localYargs;
Expand All @@ -35,7 +35,7 @@ export class CacheEnableModule extends CommandModule implements CommandModuleImp
aliases = 'on';
describe = 'Enables disk cache for all projects in the workspace.';
longDescriptionPath: string | undefined;
static override scope: CommandScope.In;
static override scope = CommandScope.In;

builder(localYargs: Argv): Argv {
return localYargs;
Expand Down

0 comments on commit 66a1d6b

Please sign in to comment.