Skip to content

Commit 1846315

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular/cli): correct scope cache command
Currently, this was being shown available as a global command which shouldn't be the case.
1 parent ea1f2ce commit 1846315

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/angular/cli/src/commands/cache/clean/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class CacheCleanModule extends CommandModule implements CommandModuleImpl
1919
command = 'clean';
2020
describe = 'Deletes persistent disk cache from disk.';
2121
longDescriptionPath: string | undefined;
22-
static override scope: CommandScope.In;
22+
static override scope = CommandScope.In;
2323

2424
builder(localYargs: Argv): Argv {
2525
return localYargs.strict();

packages/angular/cli/src/commands/cache/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CacheCommandModule extends CommandModule implements CommandModuleIm
2626
command = 'cache';
2727
describe = 'Configure persistent disk cache and retrieve cache statistics.';
2828
longDescriptionPath = join(__dirname, 'long-description.md');
29-
static override scope: CommandScope.In;
29+
static override scope = CommandScope.In;
3030

3131
builder(localYargs: Argv): Argv {
3232
const subcommands = [

packages/angular/cli/src/commands/cache/info/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class CacheInfoCommandModule extends CommandModule implements CommandModu
2222
command = 'info';
2323
describe = 'Prints persistent disk cache configuration and statistics in the console.';
2424
longDescriptionPath?: string | undefined;
25-
static override scope: CommandScope.In;
25+
static override scope = CommandScope.In;
2626

2727
builder(localYargs: Argv): Argv {
2828
return localYargs.strict();

packages/angular/cli/src/commands/cache/settings/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class CacheDisableModule extends CommandModule implements CommandModuleIm
1919
aliases = 'off';
2020
describe = 'Disables persistent disk cache for all projects in the workspace.';
2121
longDescriptionPath: string | undefined;
22-
static override scope: CommandScope.In;
22+
static override scope = CommandScope.In;
2323

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

4040
builder(localYargs: Argv): Argv {
4141
return localYargs;

0 commit comments

Comments
 (0)