Skip to content

Commit

Permalink
fix(angular): dont add .angular/cache to prettier again if existing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Sep 15, 2023
1 parent 8beb70e commit cfa9a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function addPrettierIgnoreEntry(tree: Tree, entry: string): void {
}

let content = tree.read('.prettierignore', 'utf-8');
if (/^\.angular$/gm.test(content)) {
if (/^\.angular(\/cache)?$/gm.test(content)) {
return;
}

Expand Down

0 comments on commit cfa9a91

Please sign in to comment.