Skip to content

Commit bb4834c

Browse files
committed
fix(completion): Fix filtering files on completion
1 parent 00f21d3 commit bb4834c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/commands/completion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const CompletionCommand = Command.extend({
7878
commandOptions.all = !commandOptions.bash && !commandOptions.zsh;
7979

8080
const commandFiles = fs.readdirSync(__dirname)
81-
.filter(file => file.match(/\.ts$/) && !file.match(/\.run.ts$/))
81+
.filter(file => file.match(/\.(j|t)s$/) && !file.match(/\.d.ts$/))
8282
.map(file => path.parse(file).name)
8383
.filter(file => {
8484
return commandsToIgnore.indexOf(file) < 0;

0 commit comments

Comments
 (0)